mailing list archives
STG Security Advisory: [SSA-20041215-15] Vulnerability of uploading files with multiple extensions in MoniWiki
From: "SSR Team" <advisory () stgsecurity com>
Date: Wed, 15 Dec 2004 20:08:04 +0900
-----BEGIN PGP SIGNED MESSAGE-----
STG Security Advisory: [SSA-20041215-15] Vulnerability of uploading files
with multiple extensions in MoniWiki
Date Published: 2004-12-15 (KST)
Last Update: 2004-12-15
Disclosed by SSR Team (advisory () stgsecurity com)
MoniWiki is a wiki web application used by many Korean Linux users. However,
an input validation flaw can cause malicious attackers to run arbitrary
commands with the privilege of the HTTPD process, which is typically run as
the nobody user.
Implementation Error: Input validation flaw
High : arbitrary command execution.
MoniWiki 220.127.116.11 and prior.
Vendor Status: FIXED
2004-12-08 Vulnerability found.
2004-12-08 MoniWiki developer notified.
2004-12-09 First patch updated in CVS but didn't solve the problem.
2004-12-09 Second patch updated in CVS.
2004-12-15 Official release.
MoniWiki doesn't implemented in "UploadFile.php" to check multiple
extensions of uploaded files, e.g. attack.php.hwp, so malicious attackers
can upload arbitrary script files (php, pl, cgi, etc) to a web server. This
is originated from a feature of Apache MIME module (mod_mime), which regards
attack.php.hwp as a normal PHP file and execute the file through mod_php
module with the privilege of the HTTPD process.
cf. http://httpd.apache.org/docs/mod/mod_mime.html - "Files with Multiple
Extensions" : it's a feature, not a bug.
Update to patched version of UploadFile.php
Jeremy Bae at STG Security
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0
-----END PGP SIGNATURE-----
Full-Disclosure - We believe in it.
- STG Security Advisory: [SSA-20041215-15] Vulnerability of uploading files with multiple extensions in MoniWiki SSR Team (Dec 22)