GHSL-2020-013: Remote Code Execution - Dynamic Code Evaluation via Scripts in Nexus Repository Manager
A user with the right permissions could create and run Groovy or JavaScript scripts, leading to remote code execution. The report notes this may lead to remote code execution by high-privilege users.
Originally disclosed on GitHub Security Lab
It is possible for a user with the right permissions to execute arbitrary groovy or javascript scripts resulting in remote code execution.
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
Impact
This issue may lead to remote code execution by high-privilege users.
What the attacker needed
High-privilege user with script add and run permissions
How it was found
- Create a script using the script creation endpoint with the required add permission.
- Execute the script using the script run endpoint with the required run permission.
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.
The software lets users with special permissions write and run small programs (scripts) on the server. If someone has those permissions, they can make the server run any code they want, which is called remote code execution. This is dangerous because it gives full control of the server to that user.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.