Skip to content
XSS Write-up Intermediate

The Bug I’m Proudest Of Is the One I Deleted

ScribbleMaps stored raw HTML in map popup fields, allowing stored XSS in a CSP-less widget origin for any viewer. A separate unauthenticated SSRF in the KML import endpoint was initially thought to reach Azure metadata, but timing tests showed no sensitive impact.

medium.com

Published on medium.com

The finding I’m proudest of from this engagement never made it into the report. It was a server-side request forgery that, for about four glorious hours, I was certain reached Azure’s cloud metadata service — the kind of sentence that turns a Low into a “we should hop on a call.” Then I ran a test designed…

anshh.bohara, on medium.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 server stored user-supplied HTML without output encoding, and the KML import endpoint lacked an egress allow-list.

Impact

Arbitrary JavaScript executes in a trusted, CSP-less origin for every viewer of a public or unlisted map, enabling phishing overlays, defacement, or forced redirects; account takeover was blocked by HttpOnly cookies, email confirmation, CORS restrictions, and SameSite=Lax.

What the attacker needed

A free ScribbleMaps account; victim views a public or unlisted map; victim may be anonymous or logged in

How it was found

  1. Create a map and add a shape or marker with a description containing HTML.
  2. Save the map; the server stores the raw HTML despite client-side encoding.
  3. View the map in the widget origin; the stored HTML executes for any viewer.

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 map tool let people type HTML into a description, and the editor showed it as harmless text. But the server saved the raw HTML, so when anyone viewed the map, the code ran in their browser. Separately, a feature that fetches a file from a URL could be pointed at internal addresses, but tests showed it did not reach sensitive cloud metadata.

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.