Aim Stored Cross-site Scripting Vulnerability
The Aim application renders terminal output logs in the runs logs-tab using React's dangerouslySetInnerHTML, which does not escape HTML. An attacker who can write to those logs can inject script that executes in the browser of anyone who views the logs-tab.
aim
Originally disclosed on huntr
A stored cross-site scripting (XSS) vulnerability exists in aimhubio/aim version 3.19.3. The vulnerability arises from the improper neutralization of input during web page generation, specifically in the logs-tab for runs. The terminal output logs are displayed using the dangerouslySetInnerHTML function in React, which is susceptible to XSS attacks. An attacker can exploit this vulnerability by injecting malicious scripts into the logs, which will be executed when a user views the logs-tab.
From the GitHub Advisory Database (GHSA-p9f2-jg9w-cx69, CC BY 4.0).
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The application inserts untrusted log content into the DOM as raw HTML via React's dangerouslySetInnerHTML without sanitising it.
Impact
An attacker could execute arbitrary script in the browser of a user who views the affected logs-tab, which may lead to actions performed as that user.
What the attacker needed
Ability to write to run logs; victim views the logs-tab
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 report has not been written yet. The Original tab links to the source.
When a web page shows text from a user, it must treat that text as plain text, not as code. Here the application puts log text directly into the page as HTML, so any HTML or script inside the log is treated as part of the page. That lets an attacker run their own code in the browser of someone who opens the log view.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.