Skip to content
RCE Disclosed report Intermediate CVE-2024-0521

Code Injection in paddlepaddle

The url parameter is inserted into a command string without validation, allowing an attacker to inject malicious commands. This could lead to code execution if the url comes from an untrusted source.

paddlepaddle

Originally disclosed on huntr

Critical View original

The vulnerability arises from the way the url parameter is incorporated into the command string without proper validation or sanitization. If the url is constructed from untrusted sources, an attacker could potentially inject malicious commands.

From the GitHub Advisory Database (GHSA-chj7-w3f6-cvfj, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

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

An attacker could potentially execute arbitrary commands on the system if they can control the url parameter.

What the attacker needed

Control over the url parameter; url comes from an untrusted source

The fix

The url parameter should be validated and sanitised, or the command should be built without a shell, to prevent injection.

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.

When a program builds a system command by gluing together text, any part of that text that comes from a user can contain extra commands. Here, the url value is placed into a command without checking it, so an attacker who controls the url could make the program run their own commands.

What is RCE?

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

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.