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.
Originally disclosed on Mozilla
- Fixed in 5 months
- Paid in 5 months
- Disclosed after 5 months
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.
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
- Enable the FlyWeb preference in the browser.
- Open the attacker's test page.
- Press a button on the page to start a FlyWeb service.
- 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.