Skip to content
XSS Write-up Intermediate

Intigriti Feb 2026: Cooking the CSP with a Side of JSONP

The InkDrop app stored unsanitised Markdown, allowing script tags to persist. A same-origin JSONP endpoint reflected a callback parameter, letting an attacker bypass a script-src 'self' CSP and exfiltrate the admin bot's non-httpOnly cookie.

medium.com

Published on medium.com

The February Intigriti challenge was a whole vibe. We went from a simple Markdown input to full-on administrative cookie exfiltration.

Gaurav Jha, 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 combination of unsanitised Markdown storage and a JSONP endpoint that reflects the callback parameter without validation, undermining the script-src 'self' CSP.

Impact

An attacker could steal the admin bot's session cookie and likely take over the administrative account, since the cookie was not httpOnly.

What the attacker needed

Ability to post Markdown; admin bot visits the post; JSONP endpoint reflects callback

How it was found

  1. Post Markdown containing a script tag pointing to the JSONP endpoint with a callback that exfiltrates cookies.
  2. View the post and confirm the JSONP request and webhook ping in the network tab.
  3. Use the Report to Moderator button to make the admin bot visit the post.
  4. The admin bot executes the script and the flag cookie is sent to the webhook.

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.

The app let users write Markdown and saved it without cleaning out dangerous HTML, so a script could be stored and run for anyone viewing the post. The site's security rule only allowed scripts from its own domain, but a helper endpoint on that domain echoed back whatever code was passed to it, so the attacker's code looked like it came from the site itself. When an admin viewed the post, their cookie was sent to the attacker.

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.