Skip to content
RCE Advisory Beginner CVE-2023-33965

GHSL-2023-024: Drive-by command injection in Brook's tproxy server - CVE-2023-33965

The tproxy server's /start endpoint passes the args parameter directly to a shell command, allowing an attacker to execute arbitrary commands. An attacker could run commands on the victim's machine by tricking them into visiting a malicious page that sends a request to the local service.

Alvaro Muñoz Follow

Originally disclosed on GitHub Security Lab

The tproxy server is vulnerable to command injection. An attacker may send a request to the /start endpoint containing any commands to be executed as part of the args request parameter.

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 application passes user-controlled input directly to a shell command without sanitisation or validation.

Impact

This issue may lead to Remote Code Execution (RCE).

What the attacker needed

Tproxy service running; victim visits malicious page

How it was found

  1. Start the tproxy server with the web interface listening on a port.
  2. Send a request to the /start endpoint with a crafted args parameter that contains a shell command.

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 tproxy server takes a user-supplied string and runs it as a shell command without checking it. This means an attacker can make the server run any command they want, like deleting files or installing malware. Even if the server only listens on the local machine, a malicious website can send requests to it from the victim's browser.

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.