Authentication Bypass in Nexus manager (version 3.37.3–02)
The Sonatype Nexus Manager login page could be bypassed by intercepting the authentication response and changing the HTTP status code from 403 Forbidden to 200 OK. An attacker could then gain administrative access to the application.
today I’m sharing a vulnerability that I found a while ago, which I believe is quite interesting and very simple.
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the client-side application relied on the HTTP status code of the login response to decide whether authentication succeeded, instead of the server enforcing access control on subsequent requests.
Impact
An attacker could gain administrative access to the Nexus Manager instance, though the report does not show whether server-side actions were actually authorised after the manipulated response.
What the attacker needed
Network access to the login page; ability to intercept and modify HTTP responses
How it was found
- Find the Nexus Manager login page on a subdomain.
- Try default credentials, which do not work.
- Enter admin:admin and intercept the login request.
- Change the response status from 403 Forbidden to 200 OK.
- Observe that the application logs you in as admin.
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 write-up has not been written yet. The Original tab links to the source.
When you log in, the server checks your password and sends back a message saying whether you are allowed in. Here, the server sent a 'no' message, but the attacker used a tool to change that message to 'yes' before the browser saw it. The application trusted the changed message and let the attacker in as an administrator.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.