Skip to content
XSS Write-up Beginner

Stored XSS Critical or NOT?

A stored cross-site scripting flaw existed in the prefix field of a name, allowing an attacker to inject a script that exfiltrated a super admin's session cookie when the admin viewed the contacts list. The attacker then used that cookie to log in as the super admin, achieving account takeover.

mrro0o0tt Follow

Published on medium.com

Sorry for killing your time! You are not gonna getting any valuable insights here!

Whoami, 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 application failed to sanitise or encode user input in the name prefix field before rendering it in the contacts list.

Impact

An attacker could take over a super admin account by stealing the session cookie, though the text notes the platform did not consider it critical.

What the attacker needed

A project manager account; victim (super admin) visits contacts list

The fix

The application should sanitise or encode user input in the prefix field before rendering it, and the text states the earlier similar bug was fixed.

How it was found

  1. Create a contact as a project manager and add a malicious script payload to the vulnerable prefix field.
  2. Wait for a super admin to visit the contacts list endpoint.
  3. Observe the session cookie arriving at the attacker's Burp Collaborator server.
  4. Reload the project manager dashboard, intercept the request, and replace the cookie with the admin's cookie.
  5. Access the application as the super admin.

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 website lets an attacker sneak in code that runs in other users' browsers. Here, a name field accepted a script, and when an administrator looked at the contacts list, the script sent the administrator's login cookie to the attacker. The attacker then used that cookie to pretend to be the administrator.

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 mrro0o0tt

View all

1 more disclosed report, 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.