Lucene search

K
wpexploitMarc MontpasWPEX-ID:31596FC5-4203-40C4-9B0A-E8A37FAAFDDD
HistorySep 25, 2023 - 12:00 a.m.

PageLayer < 1.7.7 - Unauthenticated Stored XSS

2023-09-2500:00:00
Marc Montpas
27
unauthenticated
xss
pagelayer
stored
proof of concept

0.001 Low

EPSS

Percentile

30.1%

Description The plugin doesn’t prevent unauthenticated attackers from updating a post’s header or footer code on scheduled posts.

# Unauthenticated attacker Proof of Concept

1) As a legitimate administrator, schedule a post to be published in a few minutes. 

2) Close every window to that site (to prevent accidentally publishing the post!), and wait for the scheduled time to pass. You may need to schedule it for an hour in the future.

3) Once the scheduled time has passed, ping the site using the following command:

curl --url 'http://vulnerable.site/wp-cron.php?is_pagelayer_editor=1&pagelayer_header_code=</textarea><script>alert(1);</script>'


# Contributor Proof of Concept
- As a user with Contributor capabilities, create a new post draft
- Save it, then edit it using the PageLayer page builder
- Navigate to the "Advanced" tab, and then the " Header, Body and Footer" section
- Enter `</textarea><script>alert(1);</script>` in the Header, Body and Footer code text areas, and save. 
- Preview the resulting post should make the alert prompts go off.

0.001 Low

EPSS

Percentile

30.1%

Related for WPEX-ID:31596FC5-4203-40C4-9B0A-E8A37FAAFDDD