0.0.0.0 Day: Exploiting Localhost APIs from the Browser
Browsers did not treat the address [redacted] as a private network target, so a public website could send requests to services listening on the visitor's localhost. An attacker could reach local services that lack authentication or CSRF protection and, in some cases, achieve remote code execution.
oligo.security
Published on oligo.security
Oligo Security's research team recently disclosed the “0.0.0.0 Day” vulnerability. This vulnerability allows malicious websites to bypass browser security and interact with services running on an organization’s local network, potentially leading to unauthorized access and remote code execution on local services by…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the browser's Private Network Access checks did not include [redacted] in the list of private or local addresses, so requests to it were not blocked.
Impact
Public websites could send requests to any open port on a visitor's machine and, against vulnerable local services such as Ray or Selenium Grid, could achieve remote code execution; the response itself was not readable due to CORS.
What the attacker needed
Victim visits a malicious website; a vulnerable service listens on localhost; service lacks auth or CSRF checks; macOS or Linux (Windows not impacted)
The fix
Browsers were changed to block [redacted] as a target address, and developers should add PNA headers, verify the Host header, and require authorisation and CSRF tokens even on localhost.
How it was found
- Run a dummy HTTP server on localhost ([redacted]).
- From an external domain, use JavaScript to send a request to 0.0.0.0.
- Observe that the request reaches the local server.
- Note that the browser blocks the response from reaching JavaScript due to CORS, but the request was still delivered.
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 write-up has not been written yet. The Original tab links to the source.
When you visit a website, your browser normally stops that site from talking to programs running on your own computer. This research found that by using a special address, [redacted], a malicious site could still send requests to those local programs. If a local program trusted anything coming from the same machine, the website could make it do harmful things.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.