WPScan
How it worksPricing
Vulnerabilities
WordPressPluginsThemesStatsSubmit vulnerabilities
For developers
StatusAPI detailsCLI scanner
Contact
WPScan
How it worksPricing
Vulnerabilities
WordPressPluginsThemesStatsSubmit vulnerabilities
For developers
StatusAPI detailsCLI scanner
Contact

Themes Vulnerabilities

Greenmart < 2.4.3 - Reflected Cross-Site Scripting (XSS)

Description

The greenmart_autocomplete_search AJAX action, available to both authenticated and unauthenticated users does not properly sanitise the callback parameter passed to it, resulting in a reflected Cross-Site Scripting issue.

Edit (WPScanTeam):
The vendor 'fixed' the issue for authenticated users by adding a nonce rather than escaping the callback parameter. However, the issue still remains for unauthenticated users, the vendor has been notified via Envato and another advisory will be released with the details once fixed. 

Proof of Concept

http://localhost/wp-admin/admin-ajax.php?callback=--%3e%27%22%3e%3csvg/onload=alert(/XSS/)%3e&action=greenmart_autocomplete_search&term=defaultText 

Affects Themes

greenmart
Fixed in version 2.4.3

References

CVE
CVE-2020-16140
URL
https://cybersecurityworks.com/zerodays/cve-2020-16140-thembay.html
URL
https://themeforest.net/item/greenmart-organic-food-woocommerce-wordpress-theme/20754270

Classification

Type

XSS

OWASP top 10
A7: Cross-Site Scripting (XSS)
CWE
CWE-79

Miscellaneous

Original Researcher

Cyber Security Works Pvt. Ltd

Verified

Yes

WPVDB ID
1793361e-3eec-44ff-bf2e-a5ceb48591ec

Timeline

Publicly Published

2020-10-28 (about 2 years ago)

Added

2020-10-28 (about 2 years ago)

Last Updated

2020-10-31 (about 2 years ago)

Our Other Services

WPScan WordPress Security Plugin
WPScan

Vulnerabilities

WordPressPluginsThemesOur StatsSubmit vulnerabilities

About

How it worksPricingWordPress pluginNewsContact

For Developers

StatusAPI detailsCLI scanner

Other

PrivacyTerms of serviceSubmission termsDisclosure policyPrivacy Notice for California Users
jetpackIn partnership with Jetpack
githubtwitterfacebook
Angithubendeavor
Work With Us