GHSL-2020-015: Remote Code Execution - Bypass of CVE-2018-16621 mitigations in Nexus Repository Manager
The mitigation for CVE-2018-16621, which stripped Java EL delimiters from user input, could be bypassed because Hibernate-Validation and Java EL bugs allow EL expressions without standard delimiters. This could lead to remote code execution by high-privilege users.
Originally disclosed on GitHub Security Lab
CVE-2020-10204
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 input sanitisation only removed standard EL delimiters, but alternative EL syntaxes allowed by Hibernate-Validation and Java EL bypassed the filter.
Impact
This issue may lead to Remote Code execution by high-privilege users.
What the attacker needed
High-privilege user account
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.
Java EL (Expression Language) is a way to embed dynamic expressions in Java applications. The previous fix removed the usual ${...} markers to stop malicious expressions, but other syntaxes can still trigger expression evaluation. An attacker with high privileges could exploit this to run their own code on the server.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.