Skip to content
XSS Write-up Beginner

XSS in google code jam

A reflected cross-site scripting (XSS) vulnerability existed in the Google Code Jam scoreboard URL path, where an attacker could inject a script that executes in the victim's browser. This could allow the attacker to access the victim's Code Jam account and read or edit profile information.

Thomas Orlita Follow

Published on websecblog.com

Also, it seems like you have to open the homepage (https://codejam.withgoogle.com/2018/challenges/) at least once before visiting other pages there.

Thomas Orlita, on websecblog.com

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 application failed to sanitise user input in the URL path before reflecting it into a toast message.

Impact

An attacker could access the victim's Code Jam account and read or edit their profile information, but the XSS only fires in browsers that do not support CSP (e.g., Internet Explorer).

What the attacker needed

Victim clicks a crafted link; victim uses a browser without CSP support; victim has visited the homepage at least once

The fix

The vulnerability was fixed.

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) is a flaw where a website displays user input without properly cleaning it, so an attacker can sneak in malicious code that runs in another user's browser. Here, the attacker could craft a special link that, when clicked, would run code in the victim's browser and let the attacker take over their Code Jam account.

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 Thomas Orlita

View all

7 more disclosed reports, best first.

More from Google

View all

The newest disclosed reports for this program.

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.