Skip to content
Open redirect Disclosed report Intermediate

The uiUrl option of navigator.publishServer allows to launch arbitrary URL

The uiUrl option of navigator.publishServer accepted arbitrary URL schemes such as chrome:, file: and about:, so a rogue FlyWeb service could present a spoofed address to anyone on the same local network who connected to it. The reporter also showed that an about:reader URL could be used for address bar spoofing.

Muneaki Nishimura Follow

Originally disclosed on Mozilla

  • Fixed in 5 months
  • Paid in 5 months
  • Disclosed after 5 months
Text
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/602.3.12 (KHTML, like Gecko) Version/10.0.2 Safari/602.3.12

Steps to reproduce:

1) Enable FlyWeb (dom.flyweb.enabled=true)
2) Open http://mallory.csrf.jp/flyweb.html
3) Push one of the button to activate a FlyWeb service
4) Launch nearby FlyWeb service called 'foo' from FlyWeb menu on Nightly


Actual results:

'uiUrl' option of navigator.publishServer allows to set an arbitrary URL including chrome:, file:, and about:.
That URL is shown when a victim or other persons in the same local network as the victim try to connect the rogue FlyWeb service.

The 3rd button of the above PoC exploits an address bar spoofing vector in about:reader by accessing following URL.
about:reader?url=http://cnn.example.com%26story=[address removed]/
The current implementation of about:reader is not unsafe but it's prone to similar kind of attacks.


Expected results:

URL with http: or https: schema should be allowed to be set.

The original report as published on Mozilla's Bugzilla, by Muneaki Nishimura. 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

Root cause

Likely the uiUrl value was not restricted to http: and https: schemes before being displayed to connecting users.

Impact

A rogue service could show a spoofed or browser-internal URL to victims on the same local network, which could mislead them about where they are; the reporter notes about:reader itself is not unsafe but is prone to similar attacks.

What the attacker needed

FlyWeb enabled in the browser; Victim on the same local network; Victim opens the rogue service

How it was found

  1. Enable the FlyWeb preference in the browser.
  2. Open the attacker's test page.
  3. Press a button on the page to start a FlyWeb service.
  4. Open the nearby FlyWeb service named 'foo' from the FlyWeb menu.

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.

FlyWeb was an experimental browser feature that let a web page advertise a small local service to other devices on the same network. When someone opened that service, the browser displayed a URL supplied by the page. The page could supply a special browser-internal URL instead of a normal web address, which made the address bar show something misleading.

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 Muneaki Nishimura

View all

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