YouPHPTube Encoder base64Url multiple command injections
Multiple command injection vulnerabilities exist in YouPHPTube Encoder 2.3 via the base64Url parameter in several PHP scripts. An unauthenticated attacker could execute arbitrary commands on the server, potentially leading to database or credential exfiltration and full system compromise.
Originally disclosed on Cisco Talos
Exploitable unauthenticated command injections exist in YouPHPTube Encoder 2.3 a plugin for providing encoder functionality in YouPHPTube. Specially crafted web requests can cause commands to be executed on the server.
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
Likely, the application passes the base64Url parameter directly into a shell command without sanitisation, allowing command injection.
Impact
An unauthenticated attacker could execute arbitrary commands, potentially exfiltrating the database or user credentials or compromising the underlying operating system.
What the attacker needed
No authentication required; network access to the server
The fix
The vulnerabilities were fixed by the vendor on 2019-10-16.
How it was found
- Send a GET request to /objects/getImage.php with a crafted base64Url parameter.
- Send a GET request to /objects/getImageMP4.php with a crafted base64Url parameter.
- Send a GET request to /objects/getSpiritsFromVideo.php with a crafted base64Url parameter.
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.
Command injection is when a program passes user input to a system shell without proper filtering, letting an attacker run their own commands. Here, the base64Url parameter is used in a shell command, so an attacker can include extra commands that the server executes. This can give an attacker control over the server.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.