Skip to content
XSS Write-up Beginner

*CVE-2024–39626 :WordPress Pretty Simple Popup Builder Plugin <= 1.0.9-Stored Cross Site Scripting (XSS)*

The WordPress Pretty Simple Popup Builder plugin (versions up to 1.0.9) stores administrator-supplied input without proper sanitisation and later outputs it via esc_attr(), leading to stored cross-site scripting. An attacker with administrator privileges could inject malicious scripts that execute when any visitor views the homepage.

Anugrah Gilang Ramadhan Follow

Published on medium.com

Backend code when create the new pop up with administrator roles is vulnerable for Stored XSS. Everyone get the pop up XSS when visited the homepage.

Anugrah Gilang Ramadhan, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the plugin uses esc_attr() on stored option values without first sanitising the input, so malicious script content is saved and later rendered unsafely.

Impact

An attacker with administrator privileges could execute arbitrary JavaScript in the browser of any visitor to the homepage, potentially leading to session theft or other client-side attacks.

What the attacker needed

Administrator access to WordPress

How it was found

  1. Log in as an administrator and go to the Pretty Simple Popup menu.
  2. Fill all form fields with an XSS script.
  3. Save the popup and visit the homepage to see the script execute.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

This plugin lets administrators create popups. The plugin saves what the administrator types without cleaning it properly, and later shows it on the homepage. Because the cleaning is incomplete, a malicious administrator could insert a script that runs in every visitor's browser. This is called stored cross-site scripting (XSS) because the harmful code is saved and then served to others.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.