Google VRP XSS
A job board allowed HTML snippets in job descriptions and stored company and department names inside a script tag without escaping. An attacker could inject script that ran in the browser of anyone viewing the public job page.
Published on sites.google.com
Besides the blind XSS that I found against a Googler, I also found multiple stored XSS that executed on hire.withgoogle.com. Following are the vulnerabilities that I found:
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
Impact
Script ran in the context of hire.withgoogle.com for anyone viewing the affected job or company page, which could let an attacker act as the site towards visitors.
What the attacker needed
An account able to create jobs; victim views the public job page
How it was found
- Create a job and add a description containing a hyperlink.
- Intercept the request and add an HTML script snippet to the description.
- Publish the job and open it, which runs the script.
- Change the company name to a snippet that closes the existing script tag and opens a new one.
- View the public job page, which runs the injected script.
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 website sometimes takes text you type and puts it straight into the page's code. If that text can include code, the browser runs it as if the site itself wrote it. Here the job description and company name fields let the author slip in script, so it ran for visitors.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.