Unauthenticated code execution via unrestricted PHP upload
Published Oct 3, 2022 · Updated Aug 3, 2024
Unrestricted file upload in CreativeDream PHP File Uploader 0.3 allows remote attackers to execute PHP code through the example endpoint. The bundled examples/upload.php passes attacker-controlled files to Uploader::upload with the extensions allowlist set to null, so PHP payloads are stored beneath the web root. No authentication is required; code execution occurs when the uploaded PHP file is requested through a PHP-enabled web server.
Summary
What happened
Unrestricted file upload in CreativeDream PHP File Uploader 0.3 allows remote attackers to execute PHP code through the example endpoint. The bundled examples/upload.php passes attacker-controlled files to Uploader::upload with the extensions allowlist set to null, so PHP payloads are stored beneath the web root. No authentication is required; code execution occurs when the uploaded PHP file is requested through a PHP-enabled web server.
The record
- CVE
- CVE-2022-40721
- Published
- Oct 3, 2022
- Updated
- Aug 3, 2024
- Vendor
- CreativeDream
- Product
- PHP File Uploader
- Classifications
- CWE-434, CAPEC-1, T1505.003
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Oct 3, 2022CVE publishedPublication date reported by the CVE source.
- Aug 3, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=v0.3
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- CreativeDream executable PHP upload proof of conceptproof of concept · unverified
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo