Skip to content
XSS Write-up Intermediate

Simple Data Exfiltration Through XSS

A stored XSS vulnerability in a work item submission allowed a low-privilege user to execute JavaScript in a higher-privilege user's browser when they opened the submission. The attacker could then use the victim's session to fetch sensitive data and exfiltrate it to an attacker-controlled server.

trustedsec.com

Published on trustedsec.com

During a recent engagement, I found a cross-site scripting (XSS) vulnerability in a legal document management application and created a quick and dirty document exfiltration payload. Unfortunately, this discovery and coding happened on the final day of the engagement (cough reportingbonus hackingday), and I didn’t…

The author, on trustedsec.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 application failed to properly sanitise user-supplied input in work item submissions, allowing script injection.

Impact

The attacker could exfiltrate sensitive data accessible to the higher-privilege user, potentially leading to data breach.

What the attacker needed

Low-privilege user account; higher-privilege user opens submission; attacker-controlled server

How it was found

  1. A low-privilege user submits a work item containing a stored XSS payload that loads a remote JavaScript file.
  2. The higher-privilege user opens the submission to start the approval process, causing the payload to execute in their browser.
  3. The JavaScript fetches a sensitive page using the victim's session and sends the data to an attacker-controlled server in chunks via image requests.

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 runs code an attacker injected. Here, a low-privilege user could put a script into a work item, and when a more privileged user opened it, that script ran in their browser. The script then used the privileged user's access to read secret data and send it out.

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.