Zero-day vulnerability in PhpWiki

Unrestricted file upload

Harold Hallikainen has reported that the upload page fails to properly check extension of uploaded files. This vulnerability was exploited along with CVE-2007-2025.

Vulnerability details

Advisory: SB2007040801 - Arbitrary file upload in phpWiki

Vulnerable component: PhpWiki

CVE-ID: CVE-2007-2024

CVSSv3 score: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:F/RL:O/RC:C

CWE-ID: CWE-434 - Unrestricted Upload of File with Dangerous Type


The vulnerability allows a remote attacker to execute arbitrary OS commands on vulnerable system.

The vulnerability exists due to insufficient sanitization of filename extension in lib/plugin/UpLoad.php when uploading files via UpLoad feature. A remote attacker can use php3, php4, or php5 extension to bypass implemented protection mechanism, upload and execute malicious PHP file on vulnerable system.

Successful exploitation of the vulnerability may allow an attacker to execute arbitrary OS commands vulnerable system with privileges of the web server account.

Note: this vulnerability is being actively exploited.