Lucene search

K
wpexploitNicoloWPEX-ID:98E050CF-5686-4216-BAD1-575DECF3EAA7
HistoryApr 03, 2024 - 12:00 a.m.

Better Comments < 1.5.6 - Admin+ Stored XSS

2024-04-0300:00:00
Nicolo
16
stored xss
better comments
update by april 17

5.7 Medium

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

8.9%

Description The plugin does not sanitise and escape some of its settings, which could allow high privilege users such as admin to perform Stored Cross-Site Scripting attacks even when the unfiltered_html capability is disallowed (for example in multisite setup)

1. From the WordPress menu on the left, go to Better Comments menu.
2. Under the "Form" menu, scroll down until "Form Options".
3. Enable "Add comment policy", set "Position" attribute to "after comment box (all users)" and set the "Comment policy" to the payload:
<img src=x onerror="prompt('XSS')">
4. Click "Save Changes" on the top right.
5. Open a WordPress post and notice the payload being executed.

5.7 Medium

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

8.9%

Related for WPEX-ID:98E050CF-5686-4216-BAD1-575DECF3EAA7