Skip to content
RCE Advisory Intermediate

GHSL-2020-014: Remote Code execution - Dynamic Code Evaluation via Scheduled Tasks in Nexus Repository Manager

A user with the nx-tasks-create or nx-tasks-update permission could create or update a scheduled task to execute arbitrary Groovy or JavaScript code, leading to remote code execution. The issue may lead to remote code execution by high-privilege users.

Alvaro Muñoz Follow

Originally disclosed on GitHub Security Lab

GHSL-2020-014 - Remote Code execution - Dynamic Code Evaluation via Scheduled Tasks

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 task create/update permission

How it was found

  1. Have a user account with the nx-tasks-create or nx-tasks-update permission.
  2. Create a new scheduled task or update an existing one, supplying Groovy or JavaScript code.
  3. The server evaluates the supplied code, resulting in remote code execution.

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.

Nexus Repository Manager lets users schedule tasks. If a user has permission to create or change tasks, they can put code in a task that the server then runs. This means someone with those permissions can run their own code on the server, which is called remote code execution.

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.