CVE-2025–63645: Stored Cross-Site Scripting (XSS) Vulnerability
A stored cross-site scripting flaw existed in the message compose input field, allowing an attacker to store script content in a sent message. When the recipient opened the message, the script executed in their browser, enabling session compromise and data disclosure.
Rudransh Singh Rajpurohit Follow
Published on medium.com
During testing of the application’s messaging subsystem I discovered a persistent (stored) Cross-Site Scripting (XSS) vulnerability in the Message Compose → Message Input Field. An attacker can store script content in a sent message which executes when the recipient opens that message enabling payload execution in the…
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 server stored user-supplied message content and rendered it without proper output encoding or sanitisation, relying only on client-side encoding.
Impact
An attacker could execute script in a victim's session, leading to session hijack, account takeover, data exfiltration, and actions on behalf of the victim, including against admins who view the message.
What the attacker needed
Two accounts or sessions; attacker can send a message to victim; victim opens the message
The fix
The server should sanitise or encode all user-supplied message content when rendering it, rather than relying on client-side encoding.
How it was found
- Open two browser sessions and log in to the admin panel in both.
- Navigate to Users → Admin → Users → Browse in each browser.
- Copy the user-action link URL for a target user, paste it in both browsers, change the final numeric identifier to 17 in the left and 2 in the right, then load both pages.
- In the left browser, go to Messages → Compose, set the recipient to the user signed in on the right (ID 2), enter a crafted message, and click Send.
- Capture the outgoing request with an intercepting proxy or server logs, note any encoding, decode and tamper with the payload if needed, then forward the request.
- In the right browser, go to Messages → Inbox and open the message from user 17 to observe the stored content executing.
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 JavaScript code into a page that other people view. Here, the message system saved whatever was typed into a message and showed it to the recipient without making it safe, so the code ran in the recipient's browser. That could let the attacker act as the victim or steal information from the page.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.