Skip to content
XSS Write-up Intermediate

Day 3: Account Takeover via XSS in E-Signature Feature (Worth $2500)

An XSS vulnerability in the name field of an e-signature feature allowed an attacker to execute JavaScript in an admin's session. By stealing session tokens from localStorage, the attacker could take over the victim's account and access connected cloud storage.

danielbelay Follow

Published on medium.com

For Day 3 of my 100-day ATO challenge, I read a fascinating write-up by Gökhan Güzelkokar, where he discovered an XSS vulnerability in an e-signature feature that led to a full account takeover (ATO).

dani3l, 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 insufficient input validation and output encoding in the name field, allowing script injection, combined with storing sensitive session tokens in localStorage.

Impact

An unauthenticated attacker could execute JavaScript in an admin's session, steal session tokens, and achieve full account takeover, potentially accessing all signed documents and connected cloud storage accounts.

What the attacker needed

Victim visits a page with the injected payload; attacker can inject into name field

The fix

The application should properly validate and encode user input to prevent XSS, and avoid storing sensitive session tokens in localStorage.

How it was found

  1. Inject an XSS payload into the name field.
  2. Observe that the payload is reflected and JavaScript executes.
  3. Modify the payload to trigger an alert on the admin page.
  4. Craft a payload to steal session tokens from localStorage and send them to an attacker-controlled server.

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) lets an attacker inject malicious JavaScript into a web page that other users view. Here, the name field didn't properly clean up input, so a script ran in the admin's browser. The script then stole the admin's session tokens (like a digital key) from the browser's local storage, allowing the attacker to log in as the admin.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by danielbelay

View all

7 more disclosed reports, best first.

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.