Skip to content
XSS Write-up Intermediate

CVE-2025–63416: The Admin Panel Heist — Stored XSS to Privilege Escalation

A stored cross-site scripting (XSS) vulnerability in a chat feature allowed a low-privileged user to inject a script that executed when an administrator viewed the message. The script could then perform actions with the administrator's privileges, such as reading admin-only data and creating new admin accounts.

Rohit Chaudhary Follow

Published on rohitchaudhary045.medium.com

When a stored XSS vulnerability becomes a vehicle for privilege escalation, the entire security model collapses. This is the story of how a low-privileged user weaponized a chat message to hijack administrative sessions and steal the entire user database.

Rohit Chaudhary, on rohitchaudhary045.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 stored chat messages without sanitising HTML and rendered them without output encoding, and it also lacked server-side authorisation checks on admin endpoints.

Impact

An attacker could escalate from a normal user to administrative access, steal sensitive data such as user records and configuration secrets, and install persistent backdoors.

What the attacker needed

A low-privileged user account; an administrator views the chat

The fix

The application should sanitise user input on the server, encode output based on context, enforce server-side authorisation checks on all admin endpoints, and deploy a strict Content Security Policy.

How it was found

  1. A low-privileged user sends a chat message containing a malicious script.
  2. The message is stored in the database without sanitisation.
  3. An administrator views the chat room, causing the script to execute in the admin's browser.
  4. The script makes requests to admin-only endpoints using the admin's session.
  5. The script exfiltrates the retrieved data 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.

This report describes a stored cross-site scripting (XSS) bug. XSS lets an attacker inject a script into a web page that other users will see. Here, a normal user put a script into a chat message. When an administrator opened the chat, the script ran in the admin's browser and could do things only an admin should be able to do, like view all users or create new admin accounts.

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 Rohit Chaudhary

View all

2 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.