Skip to content
Info disclosure Disclosed report Intermediate CVE-2020-12408

URL spoof: RTL character in URL flips domain and path if domain contains no directional characters (e.g. ip address)

A URL containing a right-to-left (RTL) character can be displayed in the status bar with the domain and path visually reversed, so a link to an IP address appears to point to a different domain. An attacker could use this to trick users into believing they are visiting a trusted site.

Anonymous Follow

Originally disclosed on Mozilla

  • Fixed in 38 days
  • Paid in 2 months
  • Disclosed after 38 days
Text
Created attachment 9134657
URL Spoofing.png

User Agent: Mozilla/5.0 (Windows NT 6.1; rv:74.0) Gecko/20100101 Firefox/74.0

Steps to reproduce:

1) Post the following link in the status bar: 127.0.0.1/ا/http://attack.com





Actual results:

You would notice that the URL has been flipped from Right to left and the status bar dispays http://attack.com/‭ا/127.0.0.1 while it displays the content from the IP address.


Expected results:

Ip address should be shown first.

The original report as published on Mozilla's Bugzilla, by Anonymous. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Impact

An attacker could craft a link that appears to point to a trusted domain while actually directing the user to a different site, potentially facilitating phishing.

What the attacker needed

Victim views the link in the status bar

The fix

The browser should be updated to properly handle bidirectional characters in URLs, for example by isolating or escaping them so the visual order matches the actual URL.

How it was found

  1. Post a link containing an RTL character and an IP address in the status bar.
  2. Observe that the status bar shows the domain and path in reversed order.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Some characters in text are read right-to-left (like Arabic). Browsers use these to display URLs correctly, but if a URL contains such a character, the browser may show the parts in a different order than they actually are. This can make a malicious link look like it goes to a trusted site when it really goes to an attacker's site.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by Anonymous

View all

2,270 more disclosed reports, best first.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.