Skip to content
Open redirect Disclosed report Intermediate

e10s - Address bar spoof using privileged URI schemes in drag n drop

Dragging and dropping a link with a privileged URI scheme such as wyciwyg into the address bar leaves the spoofed URL visible without navigating, allowing an attacker to fake the address bar contents. The reporter notes that long wyciwyg URLs can hide the scheme prefix, making the spoof more convincing.

Abdulrahman Alqabandi Follow

Originally disclosed on Mozilla

  • Fixed in 15 months
  • Paid in 15 months
  • Disclosed after 15 months
Text
Created attachment 8810016
wut.html

User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.87 Safari/537.36

Steps to reproduce:

Note: This is similar to Bug 791597 however I assume the method here is different since that one uses non existent ports/long response time.

Drag n drop the anchor tag in attached PoC. Do the same with the others to see different types.




Actual results:

Since wyciwyg urls are not loaded, they seem to stay in the addressbar and nothing happens even if you hit enter within the addressbar after drag and dropping. (Which is why I find wyciwyg ideal since both about and data uris try to load when you hit enter after dropping)

If the wyciwyg is long enough we end up being able to obfuscate the 'wyciwyg:' part of the url which helps in selling the spoof more. This may not work for you since my resolution is different but I'm sure this part could be modified with the users resolution taken into account.

I also noticed similar behavior with data URI scheme, except if a user were to hit enter after drag and dropping they would end up going to the data uri.


Expected results:

With chrome if you attempt to drag n drop privileged URI schemes it will show you about:blank, so something similar to this would be enough.

The original report as published on Mozilla's Bugzilla, by Abdulrahman Alqabandi. 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 make the address bar display a misleading URL, which may help convince a user they are on a legitimate site, though the report only demonstrates the spoofing behaviour and does not show further exploitation.

What the attacker needed

Victim drags a crafted link into the address bar

The fix

The browser should clear or replace the address bar text when a privileged URI scheme is dropped and fails to load, similar to how Chrome shows about:blank.

How it was found

  1. Drag the anchor tag from the attached proof-of-concept file into the address bar.
  2. Repeat with other anchor tags to see different URI scheme types.
  3. Observe that the wyciwyg URL remains in the address bar and does not navigate even if Enter is pressed.

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.

The address bar is meant to show the real web address you are visiting. Here, if you drag a specially crafted link into the address bar, the browser shows that fake address but does not actually go there, so a user could be tricked into thinking they are on a trusted site. This is called address bar spoofing.

What is Open redirect?

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.

More by Abdulrahman Alqabandi

View all

33 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.

Open redirect

The lesson behind this report.

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.