question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] Potential origin spoofing because address bar truncates "facebook.com.evil.com" to "facebook.com..." instead of "...evil.com"

See original GitHub issue

Steps to reproduce

  1. Open http://facebook.com.facebook.com.evil.com/
  2. Look at the portion of the URL visible in the address bar.

I originally filed this bug against desktop Firefox. On desktop, Firefox, Chrome, Edge, and Safari all do the wrong thing (show “facebook.com”):

https://bugzilla.mozilla.org/show_bug.cgi?id=1598175

Expected behavior

The URL standard says:

When the full host cannot be rendered, browsers should elide domain labels starting from the lowest-level domain label. For example, examplecorp.com.evil.com should be elided as ...com.evil.com, not examplecorp.com…`.

Fennec and Chrome on Android do the right thing: they show ...ook.com.facebook.com.evil.com and facebook.com.evil.com, respectively.

Actual behavior

Fenix shows http://facebook.com.facebook... without showing evil.com.

Device information

  • Android device: Moto G5
  • Fenix version: 2.3.0

┆Issue is synchronized with this Jira Task

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:4
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
Mugurellcommented, Jan 11, 2021

image

Opera resolves this interestingly. The domain is shown but the subdomains and pages are elided.

0reactions
stale[bot]commented, Nov 19, 2022

See: https://github.com/mozilla-mobile/fenix/issues/17373 This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

966532 - Address bar spoofing combined with hidden page ...
The main problem is that the address bar in Firefox for Android doesn't display the current URL after the page was loaded. And...
Read more >
Clean URL display · Issue #7077 · mozilla-mobile/fenix - GitHub
[Bug] Potential origin spoofing because address bar truncates "facebook.com.evil.com" to "facebook.com..." instead of "...evil.com" #6762.
Read more >
Bug List - Bugzilla - allizom.org
1598175 · Potential origin spoofing because address bar truncates "facebook.com.evil.com" to "facebook.com..." instead of "...evil.com", Firefox ...
Read more >
Evilginx - Advanced Phishing with Two-factor Authentication ...
I'm releasing my latest Evilginx project, which is a man-in-the-middle attack framework for remotely capturing credentials and session cookies ...
Read more >
Intrusion Detection: Use and Misuse
Another strategy: analyze all possible interpretations rather than assuming one. • E.g., analyze raw URL, hex-escaped URL, doubly-escaped URL …
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found