Reflected cross-site scripting (XSS) vulnerability
A reflected cross-site scripting vulnerability exists in the @keystone-6/auth package, allowing an attacker to execute scripts when a user follows an untrusted link to the signin or init page. This could enable a targeted attack, possibly via phishing or chained with another vulnerability.
keystonejs/keystone
Originally disclosed on huntr
This security advisory relates to a capability for an attacker to exploit a reflected cross-site scripting vulnerability when using the @keystone-6/auth package.
Impact
The vulnerability can impact users of the administration user interface when following an untrusted link to the signin or init page.
This is a targeted attack and may present itself in the form of phishing and or chained in conjunction with some other vulnerability.
Vulnerability mitigation
Please upgrade to @keystone-6/auth >= 1.0.2, where this vulnerability has been closed.
If you are using @keystone-next/auth, we strongly recommend you upgrade to @keystone-6.
Workarounds
If for some reason you cannot upgrade the dependencies in software, you could alternatively
- disable the administration user interface, or
- if using a reverse-proxy, strip query parameters when accessing the administration interface
References
https://owasp.org/www-community/attacks/xss/
Thanks to Shivansh Khari (@Shivansh-Khari) for discovering and reporting this vulnerability
From the GitHub Advisory Database (GHSA-hrgx-7j6v-xj82, 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 reflects user-controlled input from the URL into the signin or init page without proper encoding or validation.
Impact
An attacker could execute scripts in the context of the administration interface, potentially leading to account compromise or further attacks, though the text notes it is a targeted attack and may be chained with other vulnerabilities.
What the attacker needed
Victim clicks a crafted link; access to admin UI
The fix
The vulnerability was fixed in @keystone-6/auth version 1.0.2 and later; users should upgrade.
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.
Cross-site scripting (XSS) is a flaw where a website shows attacker-supplied code as if it were its own. Here, a crafted link to the login or setup page could run harmful code in the victim's browser, letting the attacker act as that user. The victim must click the link for the attack to work.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.