Sonatype Nexus Security Advisory:
Date: April 22, 2021
Affected Versions: All Nexus Repository Manager 3 OSS/Pro versions between 3.23 and 3.30
Fixed in Version: Nexus Repository Manager OSS/Pro version 3.30.1
Risk: Medium - 5.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N)
Summary:
A cross-site scripting (XSS) vulnerability has been discovered in Nexus Repository Manager 3.
An attacker with a local account can create entities with specially crafted properties that, when viewed by an administrator, can execute arbitrary JavaScript in the context of the NXRM application. We have fixed the issue by ensuring the values are properly encoded. This advisory provides the pertinent information needed to properly address this vulnerability, along with the details on how to reach us if you have any further questions or concerns.
We are not aware of any active exploits taking advantage of this issue. However, we strongly encourage all users of NXRM to immediately take the steps outlined in this advisory.
The identified vulnerability allows arbitrary JavaScript to run in an NXRM user's browser in the context of the application. In regards to XSS, it is common that the injected JavaScript could forge requests on behalf of the user, redirect the user to another site or modify the page content.
Recommendation:
We are highly recommending all affected instances of NXRM be upgraded to NXRM 3.30.1 or later.
For detailed information on upgrading, please see:
Upgrading Nexus Repository Manager 3.1.0 and Newer
Credit:
This issue was discovered and reported by Roberto Zanga
Support:
If you run into any problems or have any questions/concerns, please contact us by filing a ticket at https://support.sonatype.com.
Frequently Asked Questions:
Q: What is the risk associated with this vulnerability?
A: An attacker with a local account can create entities with specially crafted properties which when viewed would execute arbitrary JavaScript within the context of the application leading to the compromise of the confidentiality and integrity of data.
Q: What preconditions must be met in order to be vulnerable?
A: An attacker must have a local account and another user must view malicious entities.
Q: Are there implications associated with this advisory itself?
A: Disclosure unfortunately means bad actors may try to take advantage. While we have initially limited the information to the minimum details necessary for users to affect an appropriate fix, this merely slows down a would be attacker. As such, we are advising all organizations utilizing NXRM to immediately assess their individual impact and take appropriate action in response.
Q: Where can I obtain more information associated with the vulnerability?
A: At this time, and in the interest of best protecting our user community, we are limiting the information released to that absolutely required in order to assess impact and affect remediation. Please contact support for more information.
Q: Why is Sonatype making this information available?
A: This is part of a responsible disclosure process. Given NXRM is an open source project with widespread usage, notifying the user base will invariably lead to broad dissemination. We are taking a concerted and proactive approach in our outreach activities and an effort to achieve the most rapid remediation possible.