⚡Critical XSS in DeepSeek AI
A reflected cross-site scripting (XSS) vulnerability was found in DeepSeek AI's chat platform. An attacker could execute JavaScript in a victim's browser, potentially stealing session cookies and leading to account takeover.
medium.com
Published on medium.com
Hey guys! 👋 In today’s brief write-up, I’ll walk you through a critical reflected XSS vulnerability discovered in the newly launched DeepSeek AI. This bug was reported by Muhammad Saud, and I came across the PoC on LinkedIn, so I thought of sharing how it was performed.
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 insufficient input sanitisation and output encoding allowed a crafted input to be rendered as executable JavaScript.
Impact
An attacker could steal session cookies, leading to session hijacking and account takeover, and potentially extract sensitive data.
What the attacker needed
Victim interacts with crafted input
The fix
The vulnerability should be fixed by implementing proper input validation, output encoding, a Content Security Policy, secure cookie attributes, and using trusted sanitisation libraries.
How it was found
- Inject a simple XSS payload to test filtering.
- Modify the approach to evade filters by asking the AI to display the image tag.
- Successfully execute JavaScript, triggering an alert with session cookies.
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 a flaw where a website shows user input as code, letting an attacker run their own script in a victim's browser. Here, the chat platform apparently allowed a script to run, which could steal the victim's login cookie and let the attacker take over their account.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.