Skip to content
RCE Advisory Advanced CVE-2021-32826

GHSL-2021-053: Remote code execution in Proxyee-Down - CVE-2021-32826

Proxyee-Down uses the Nashorn JavaScript engine to run extension scripts but its sandboxing is insufficient, allowing a script to escape the ClassFilter and execute arbitrary system commands. An attacker who can supply a malicious extension or perform a man-in-the-middle attack could run code on the victim's machine.

Alvaro Muñoz Follow

Originally disclosed on GitHub Security Lab

An attacker being able to provide an extension script (eg: through a MiTM attack or by hosting a malicious extension) may be able to run arbitrary commands on the system running Proxyee-Down.

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

Root cause

The Nashorn script engine's ClassFilter only blocks direct Java class access but does not prevent scripts from reaching the underlying engine object and using it to evaluate arbitrary Java code.

Impact

An attacker could run arbitrary commands on the system running Proxyee-Down, leading to remote code execution.

What the attacker needed

Victim runs Proxyee-Down; attacker can supply a malicious extension; or attacker can perform a MiTM attack

How it was found

  1. Create a malicious extension script that uses the exposed engine object to evaluate Java code.
  2. Deliver the extension to the victim, for example by hosting it or through a man-in-the-middle attack.
  3. When Proxyee-Down loads and runs the extension, the script executes arbitrary commands on the system.

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.

Proxyee-Down is a download manager that lets people add small programs called extensions to change how it works. The program tried to stop those extensions from doing dangerous things by blocking direct access to Java, but the block was incomplete. A malicious extension could still trick the system into running any command, like deleting files or installing malware.

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.