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

Redux Framework < 4.1.21 - CSRF Nonce Validation Bypass

Description

The plugin did not properly validate some nonces, only checking them if their value was set. As a result, CSRF attacks could still be performed by not submitting the nonce in the request, bypassing the protection they are supposed to provide.

Proof of Concept

Just don't send the parameters: $_POST['nonce'] or $_REQUEST['nonce']

=================================

File: redux-core/inc/classes/class-redux-admin-notices.php

if ( isset( $_POST['nonce'] ) && ! wp_verify_nonce( sanitize_key( wp_unslash( $_POST['nonce'] ) ), $id . $userid . 'nonce' ) ) {
	die( 0 );
}

=================================

File: redux-core/inc/classes/class-redux-ajax-save.php

Content: 

if ( isset( $_REQUEST['nonce'] ) && ! wp_verify_nonce( sanitize_key( wp_unslash( $_REQUEST['nonce'] ) ), 'redux_ajax_nonce' . $this->args['opt_name'] ) ) {
	echo wp_json_encode(...

	die();
} 

Affects Plugins

redux-framework
Fixed in version 4.1.21

References

URL
https://security.devsoftin.com/blog/2020/11/23/exploiting-vulnerability-in-logical-operators-isset-anything/
URL
https://plugins.trac.wordpress.org/changeset/2395813/redux-framework/trunk/redux-core/inc/classes/class-redux-admin-notices.php
URL
https://plugins.trac.wordpress.org/changeset/2395813/redux-framework/trunk/redux-core/inc/classes/class-redux-ajax-save.php
URL
https://github.com/reduxframework/redux-framework-4/pull/160/files

Classification

Type

CSRF

OWASP top 10
A2: Broken Authentication and Session Management
CWE
CWE-352

Miscellaneous

Original Researcher

Lenon Leite - DevSoftIn

Submitter

Lenon Leite

Submitter website
https://security.devsoftin.com/blog/2020/11/23/exploiting-vulnerability-in-logical-operators-isset-anything/
Submitter twitter
lenonleite
Verified

Yes

WPVDB ID
5d52b68f-faca-4572-bb84-ecb733eecbe7

Timeline

Publicly Published

2020-12-15 (about 2 years ago)

Added

2020-12-15 (about 2 years ago)

Last Updated

2020-12-16 (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