Skip to content
XSS Write-up Beginner

✨$500 HTML Injection in Snapchat

The search page of Snapchat's Newsroom site reflected the q parameter without sanitising it, so arbitrary HTML was rendered on the page. An attacker could craft a link that displayed a fake offer banner linking to a malicious site, potentially used for phishing.

cybersecuritywriteups.com

Published on cybersecuritywriteups.com

🔗Free Article Link: Click Here

Abhijeet kumawat, on cybersecuritywriteups.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 search parameter was written into the page without encoding or sanitising the user input.

Impact

An attacker could alter the look of the Newsroom page and show fake offers or links to trick users, though the report rates severity as low and notes no script execution.

What the attacker needed

No account needed; victim opens a crafted link

How it was found

  1. Open the Newsroom search endpoint for a country code.
  2. Put HTML markup into the q parameter of the URL.
  3. Load the crafted URL in a browser and the injected HTML is rendered on the page.

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 search page normally shows back what you typed. Here the site put the typed text straight into the page as if it were part of the website's own code, so a link could carry hidden markup that draws a fake banner. Because the link is on the real Snapchat domain, a victim may trust the fake offer and click through to a scam site.

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.