Skip to content
RCE Advisory Intermediate

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.

Alvaro Muñoz Follow

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.

pwntester, on GitHub Security Lab

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

  1. Create a script using the script creation endpoint with the required add permission.
  2. 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.

More by Alvaro Muñoz

View all

132 more disclosed reports, best first.

More from GitHub Security Lab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.