Skip to content
XSS Write-up Beginner

XSS in Google Local

A cross-site scripting flaw existed in Google Local's add form because single quotes were not filtered in a YouTube link field, allowing an attacker to inject script. An attacker could run arbitrary JavaScript in a victim's browser when the crafted content was viewed.

yappare Follow

Published on blog.yappare.com

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 application inserted user input into an HTML attribute without escaping single quotes, so a single quote could terminate the attribute and allow script injection.

Impact

An attacker could execute arbitrary JavaScript in a victim's browser in the context of Google Local, though the report does not demonstrate a full attack chain.

What the attacker needed

Access to the Google Local add form

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.

Cross-site scripting (XSS) lets an attacker slip their own JavaScript into a page that other people view. Here, a form field that builds a YouTube link did not block single quotes, so the attacker could break out of the link and add code. When someone loaded the page, that code ran as if it came from Google.

What is XSS?

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

More by yappare

View all

14 more disclosed reports, best first.

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.