Skip to content
RCE Write-up Intermediate

CVE-2025–62429: Authenticated RCE via PHP Code Injection in Cli

An authenticated administrator can inject arbitrary PHP code through the type parameter in update_launch.php, because the application concatenates that input into a generated PHP script that is then run via the PHP CLI. An attacker with an admin session could deploy a web shell and run commands on the server.

Redpoc Follow

Published on medium.com

An authenticated administrator can inject arbitrary PHP code via the type parameter in updatelaunch.php, leading to Remote Code Execution (RCE). This can be used to deploy a web shell and gain full system access.

Redpoc, on medium.com

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 write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

User input is concatenated directly into dynamically generated PHP code that is then executed, allowing the input to break out of the string context.

Impact

Successful exploitation leads to full system compromise, including arbitrary command execution, web shell deployment and persistent access, though an admin session is required.

What the attacker needed

Valid admin session; access to admin panel endpoint

The fix

The code should avoid generating executable code from user input, or strictly validate the type value against an allowlist.

How it was found

  1. Send a crafted POST request to the admin update_launch endpoint with an admin session cookie and a type value that breaks out of the string.
  2. The application writes the generated PHP file and executes it via the PHP CLI.
  3. The injected code writes a web shell file into the application directory.
  4. Request the web shell with a command parameter to run system commands.
  5. Start a listener and use the web shell to open a reverse shell back to the attacker.

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 write-up has not been written yet. The Original tab links to the source.

The application builds a small PHP program by pasting in text the user sends, then runs that program on the server. Because the pasted text is not cleaned, someone can add their own PHP instructions, and the server will run them. This requires already being logged in as an administrator.

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 Redpoc

View all

2 more disclosed reports, best first.

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.