Skip to content
XSS Disclosed report Beginner CVE-2024-8556

AgentScope stored cross-site scripting (XSS) vulnerability

A stored cross-site scripting vulnerability exists in the run detail view of AgentScope, where a user-controllable run ID is rendered as HTML. An attacker could execute arbitrary JavaScript in a victim's browser.

modelscope/agentscope

Originally disclosed on huntr

A stored cross-site scripting (XSS) vulnerability exists in modelscope/agentscope, as of the latest commit 21161fe on the main branch. The vulnerability occurs in the view for inspecting detailed run information, where a user-controllable string (run ID) is appended and rendered as HTML. This allows an attacker to execute arbitrary JavaScript code in the context of the user's browser.

From the GitHub Advisory Database (GHSA-6mf6-7j75-2m6f, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

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

Impact

An attacker could execute arbitrary JavaScript in the context of the user's browser.

What the attacker needed

Ability to set a run ID; victim views the run detail page

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 inserts user-supplied text directly into its HTML without cleaning it, an attacker can include code that runs in the browser of anyone who views that page. Here, the run ID is shown without being made safe, so a malicious run ID can run JavaScript. This is called stored cross-site scripting because the harmful value is saved and later displayed.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More from modelscope/agentscope

View all

The newest disclosed reports for this program.

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.