Skip to content
XSS Write-up Advanced

Map browser to precise GPS coordinates via router XSS without promting the user.

A cross-site scripting flaw in a Verizon FiOS router let a malicious page read the router's MAC address through AJAX. That address could then be sent to Google Location Services to derive the user's approximate GPS coordinates without any prompt.

samy.pl

Published on samy.pl

home page || follow my twitter || blog || email me || samy kamkar

The author, on samy.pl

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 router's web interface reflected user-supplied input into a page without sanitising it, allowing script injection.

Impact

An attacker could learn a victim's approximate physical location without any user prompt, though Google later blocked the tool and changed its system, and the author says it remains exploitable.

What the attacker needed

Victim visits a malicious site; victim logged into the router; specific router model/firmware

How it was found

  1. Visit a malicious website.
  2. The site silently exploits an XSS flaw in the visitor's router.
  3. The injected script reads the router's MAC address via AJAX.
  4. The MAC address is sent to the attacker.
  5. The attacker submits the MAC address to Google Location Services.
  6. The returned coordinates are displayed on a map.

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.

A router's admin page had a scripting flaw, so a website you visit could quietly run code inside that page. That code read the router's hardware identifier, which Google's location service maps to a rough physical position, so the attacker learns where you are without asking you.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.