Skip to content
XSS Write-up Intermediate

Discovering a Blind XSS Vulnerability in the Platform AI

An AI platform failed to sanitise code it generated when asked to produce an XSS payload, so the payload executed in a context the author could not see directly. The author proved this by having the generated payload call back to a server they controlled, confirming blind cross-site scripting.

Saeiez Follow

Published on medium.com

I discovered an interesting Blind XSS bug in an AI platform that I want to share with you.

Saeiez, 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 platform rendered AI-generated output as HTML without sanitising it, so a payload produced by the model executed in a viewer's browser.

Impact

An attacker could get code generated by the AI to run in another user's browser, potentially acting on their behalf, though the text gives no detail on who views the output or what limits apply.

What the attacker needed

Access to the AI platform; attacker-controlled callback server; victim views the generated output

How it was found

  1. Type an XSS payload directly into the platform and observe that it does not execute.
  2. Ask the AI to generate the same payload instead.
  3. Send a payload that calls back to a server you control.
  4. Observe the incoming request, confirming the blind XSS executed.

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 when a site lets attacker-supplied code run in a visitor's browser. 'Blind' means the attacker cannot see the result directly, so they make the code phone home to a server they control to confirm it ran. Here the AI platform echoed back a payload it had generated, and that payload ran somewhere the author could not watch.

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.