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).
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.