GHSL-2020-016: Persistent Cross-Site scripting in Nexus Repository Manager
An attacker with elevated privileges could create a content selector with a crafted name via the REST API, bypassing UI restrictions, which when viewed by another user would execute arbitrary JavaScript in the context of the Nexus Repository Manager application.
Originally disclosed on GitHub Security Lab
An attacker with elevated privileges can create content selectors with a specially crafted name using the REST API (not allowed by the UI) which when viewed by another user can execute arbitrary JavaScript in the context of the NXRM application.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
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 front-end did not escape content selector names when rendering them, allowing injected script to execute.
Impact
The injected JavaScript could forge requests on behalf of the user, redirect the user to another site, or modify the page content.
What the attacker needed
Elevated privileges to use REST API; victim views the crafted selector
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.
This is a stored cross-site scripting (XSS) bug. A user with high permissions could save a name containing malicious code, and when another user later views that name, the code runs in their browser as if it were part of the legitimate site. That could let the attacker act as the victim, redirect them, or change what they see.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.