[Bug] Potential origin spoofing because address bar truncates "facebook.com.evil.com" to "facebook.com..." instead of "...evil.com"
See original GitHub issueSteps to reproduce
- Open http://facebook.com.facebook.com.evil.com/
- 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:
- Created 4 years ago
- Reactions:4
- Comments:12 (6 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Opera resolves this interestingly. The domain is shown but the subdomains and pages are elided.
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.