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

ElementsKit and ElementsKit Pro < 2.2.0 - Contributor+ Stored XSS

Description

The Elements kit lite and Elements kit pro WordPress Plugins < 2.2.0 have a number of widgets that are vulnerable to stored Cross-Site Scripting (XSS) by lower-privileged users such as contributors, all via a similar method.

The “fun fact” widget accepts an “ekit_funfact_title_size” parameter. Although the element control lists a fixed set of possible html tags, it is possible to send a ‘save_builder’ request containing JavaScript in the ‘ekit_funfact_title_size’ parameter, which is not filtered and is output without escaping. This JavaScript will then be executed when the saved page is viewed or previewed.

The heading widget (includes/widgets/heading.php) accepts ‘ekit_heading_title_tag’ and ‘ekit_heading_sub_title_tag’ parameters. When sending a ‘save_builder’ request, these parameters can be set to ‘script’ and combined with the ‘ekit_heading_title’ or ‘ekit_heading_sub_title’ parameters containing JavaScript - although the ‘ekit_heading_sub_title’ parameter is escaped, this is trivial to overcome since the actual scripting tags are added in the ‘ekit_heading_sub_title_tag’.

The icon box (includes/widgets/icon-box.php) widget accepts a ‘ekit_icon_box_title_size’ parameter. It is possible to send a modified ‘save_builder’ request containing JavaScript in the ‘ekit_icon_box_title_size’ parameter for this widget,  which is not filtered and is output without escaping. 

Similarly, the image box (widgets/image-box/image-box.php) widget accepts an ‘ekit_image_box_title_size’ parameter. It is possible to send a modified ‘save_builder’ request containing JavaScript in the ‘ekit_image_box_title_size’ parameter for this widget,  which is not filtered and is output without escaping. 

The pricing (widgets/pricing/pricing.php) widget accepts a ‘ekit_pricing_title_size’ parameter. When sending a ‘save_builder’ request, it is possible to set the ‘ekit_pricing_title_size’ parameter to ‘script’ and populate the ‘ekit_pricing_table_title’ parameter with Javascript - although the ‘ekit_pricing_table_title’ parameter is escrped, this is trivial to overcome since the actual script tag is added in the ‘ekit_pricing_title_size’ parameter.

Finally, impacting the pro version only, the motion text (widgets/motion-text/motion-text.php) widget accepts a ‘ekit_motion_text_sub_title_tag’ parameter. It is possible to send a ‘save_builder’ request containing JavaScript in the ‘ekit_motion_text_sub_title_tag’ parameter, which is not filtered and is output without escaping. 

Each of these issues can be abused by a lower-privileged user, such as a contributor, to add malicious JavaScript to a post, which would then be executed in the browser of any user previewing that post. It is common for administrators or editors to preview the posts of users without publishing permissions before publishing their content.

Affects Plugins

elementskit-lite
Fixed in version 2.2.0
elementskit
Fixed in version 2.2.0

References

CVE
CVE-2021-24258
URL
https://www.wordfence.com/blog/2021/04/recent-patches-rock-the-elementor-ecosystem/

Classification

Type

XSS

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

Miscellaneous

Original Researcher

Ramuel Gall

Submitter

Ramuel Gall

Submitter twitter
ramuelgall
Verified

Yes

WPVDB ID
47b47b86-899b-4de3-8a3c-2d5d1774298f

Timeline

Publicly Published

2021-04-13 (about 1 years ago)

Added

2021-04-14 (about 1 years ago)

Last Updated

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