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

Reflected Cross-Site Scripting (XSS) in zenml

The survey redirect parameter in zenml 0.57.1 was not validated, allowing an attacker to inject JavaScript that runs in the victim's browser. This could let an attacker steal cookies and potentially take over accounts.

zenml-io/zenml

Originally disclosed on huntr

A reflected Cross-Site Scripting (XSS) vulnerability was identified in zenml-io/zenml version 0.57.1. The vulnerability exists due to improper neutralization of input during web page generation, specifically within the survey redirect parameter. This flaw allows an attacker to redirect users to a specified URL after completing a survey, without proper validation of the 'redirect' parameter. Consequently, an attacker can execute arbitrary JavaScript code in the context of the user's browser session. This vulnerability could be exploited to steal cookies, potentially leading to account takeover.

From the GitHub Advisory Database (GHSA-3434-hc3m-8mmm, 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

Root cause

Likely the application inserted the redirect parameter into the page without validating or encoding it, so script could be reflected back.

Impact

An attacker could run arbitrary JavaScript in the victim's browser session and steal cookies, potentially leading to account takeover.

What the attacker needed

Victim clicks a crafted link

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 takes a value from the address bar and puts it directly into the page without cleaning it, an attacker can put code there instead of a normal value. That code then runs as if the website itself had written it, so it can read things like login cookies. Here the value was a redirect address used after a survey.

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 zenml-io/zenml

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.