Skip to content

Arbitrary PHP code execution (administrator privileges required)

High
MacWarrior published GHSA-3x4g-x3gv-rjmq Oct 20, 2025

Package

No package listed

Affected versions

<= 5.5.2 - #146

Patched versions

>= 5.5.2 - #147

Description

Summary

In /upload/admin_area/actions/update_launch.php, the "type" parameter from a POST request is embedded into PHP tags and executed. Proper sanitization is not performed, and by injecting malicious code an attacker can execute arbitrary PHP code. This allows an attacker to achieve RCE.

Details

The attacker requires administrator privileges.
The attacker uses the administrator's PHPSESSID and runs a curl command like the following.

curl -v -s -b "PHPSESSID=aef60bb41816691c8cf55df70e96691a" \
  --data-urlencode "type=core';shell_exec('touch /tmp/malicious.txt');//" \
  'http://localhost:8080/admin_area/actions/update_launch.php'

As a result, a shell command is executed on PHP, and /tmp/malicious.txt is created on the web server.

This occurs because the application constructs a string containing a PHP tag in the variable $data by inserting $_POST['type'] without sanitization, and that string is ultimately executed via shell_exec($cmd).
Because type can be freely set by the client, the server must properly sanitize it.

PoC

PoC_RCE.mp4

Impact

An attacker can insert arbitrary PHP code, which enables RCE.

Severity

High

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
High
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

CVE ID

CVE-2025-62429

Weaknesses

Improper Control of Generation of Code ('Code Injection')

The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. Learn more on MITRE.

Credits