Lucene search

K
wpvulndbErwan LR (WPScan)WPVDB-ID:3061F85E-A70E-49E5-BCCF-AE9240F51178
HistoryOct 26, 2023 - 12:00 a.m.

WP Hotel Booking < 2.0.9 - Contributor+ Arbitrary Post Deletion

2023-10-2600:00:00
Erwan LR (WPScan)
wpscan.com
6
authorization
deletion
security flaw

6.3 Medium

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

13.5%

Description The plugin does not have proper authorisation when deleting a package, allowing Contributor and above roles to delete posts that do no belong to them

PoC

Run the below command in the developer console of the web browser while being on the blog as a Contributor user. This will put the post with ID 1 in the trash (change this ID to a post the user should not be able to delete, like one created by an admin). Run it again to 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&nonce;=’ + hotel_settings[‘nonce’],“method”: “POST”});

CPENameOperatorVersion
eq2.0.9

6.3 Medium

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

13.5%

Related for WPVDB-ID:3061F85E-A70E-49E5-BCCF-AE9240F51178