Skip to content
XSS Write-up Advanced

[HackerNotes Ep. 188] DEF CON War Stories: Chat XSS to Spyware, Token Shuffles, and Camera Hijacks

A chat application built in React let a message set a component prop that rendered raw HTML, giving stored, wormable cross-site scripting in every recipient's page. Because the product also shipped an Electron desktop client, the same script could reach IPC handlers to persist itself, list processes and capture screenshots of the victim's desktop.

blog.criticalthinkingpodcast.io

Published on blog.criticalthinkingpodcast.io

Aituglo ‎ August 20, 2026

Aituglo ‎, on blog.criticalthinkingpodcast.io

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 rich poll feature allowed a user-supplied prop to reach dangerouslySetInnerHTML, so message content was rendered as HTML instead of being escaped.

Impact

One chat message could persist in the desktop client and repeatedly leak the victim's screens and process list; the report notes the program paid it as a low despite the chain.

What the attacker needed

Ability to send a chat message; victim views the message; victim uses the Electron desktop client

How it was found

  1. Send a chat message whose poll props include the raw HTML value.
  2. The message renders as stored XSS in every viewer's page.
  3. Use an IPC method that sets the app's default start page to point at the public message holding the payload.
  4. Use another IPC call to open a hidden window that keeps the script running while the main app looks normal.
  5. From that context, list processes, screenshot the desktop and each window, and run JS as the victim.

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 chat app let a sender control a setting that told the page to treat part of a message as raw HTML rather than plain text. That means a message could carry a small script, which runs in the browser of everyone who views the chat. In the desktop version of the app, that script could also talk to the app's own internal commands, so it could keep itself running and take pictures of the screen.

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.