XSS in Google MapMaker
The comment form on Google MapMaker did not properly sanitise user input, allowing an attacker to inject script that would run in the browser of anyone viewing the comment. This could let the attacker act as the victim within the MapMaker site.
The original lives on blog.yappare.com
We do not hold its text, 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 comment form filtered some common script patterns but missed at least one variant, so user-supplied text reached the page without proper output encoding.
Impact
An attacker could run script in the browser of anyone who viewed the crafted comment, though the report does not describe any specific action taken with that access.
What the attacker needed
A Google account able to edit maps; victim views the comment
How it was found
- Find a place on the map that you want to edit.
- Open the comment form and enter a script payload.
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 comment box on a map-editing tool accepted text that browsers treat as code. When another person opened the page, their browser ran that code as if the site itself had sent it. This is called cross-site scripting, and it lets an attacker do things in the victim's session.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.