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.
Ramuel Gall
Ramuel Gall
Yes
2021-04-13 (about 1 years ago)
2021-04-14 (about 1 years ago)
2021-04-18 (about 1 years ago)