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 Vulnerabilities

WordPress < 5.4.2 - Authenticated Stored XSS via Theme Upload

Description

An authenticated user could upload a purposely broken theme and then change the theme's directory name with a Cross-Site Scripting (XSS) payload. When WordPress warns the user about the broken theme, the XSS payload is then executed.

This vulnerability would be difficult to exploit by an attacker in the real world, as the attacker would need to be able to upload themes and be able to modify directory names on the server.

One possible attack scenario is an attacker social engineering a victim to perform these actions, which is very unlikely.

Affects WordPress

5.4.1
Fixed in version 5.4.2
5.4
Fixed in version 5.4.2
5.3.3
Fixed in version 5.3.4
5.3.2
Fixed in version 5.3.4
5.3.1
Fixed in version 5.3.4
5.3
Fixed in version 5.3.4
5.2.6
Fixed in version 5.2.7
5.2.5
Fixed in version 5.2.7
5.2.4
Fixed in version 5.2.7
5.2.3
Fixed in version 5.2.7

References

CVE
CVE-2020-4049
URL
https://wordpress.org/news/2020/06/wordpress-5-4-2-security-and-maintenance-release/
URL
https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-87h4-phjv-rm6p
URL
https://hackerone.com/reports/406289
ExploitDB
48770

Classification

Type

XSS

OWASP top 10
A7: Cross-Site Scripting (XSS)
CWE
CWE-79

Miscellaneous

Original Researcher

Nrimo Ing Pandum

Verified

No

WPVDB ID
d8addb42-e70b-4439-b828-fd0697e5d9d4

Timeline

Publicly Published

2020-06-11 (about 2 years ago)

Added

2020-06-11 (about 2 years ago)

Last Updated

2020-08-28 (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