Skip to content
XSS Write-up Beginner

CVE-2020–29247 WonderCMS 3.1.3 — ‘page’ Persistent Cross-Site Scripting

WonderCMS 3.1.3 stores user-supplied page keywords without proper sanitisation, allowing an attacker to inject a script that executes when any user visits the site. The attacker could steal cookies or take over the admin account.

Mayur Parmar Follow

Published on systemweakness.com

any attacker can inject malicious Javascript code and take over the admin account.

Mayur Parmar, on systemweakness.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 page keywords input is stored and later rendered without output encoding or input filtering.

Impact

An attacker could inject malicious JavaScript and take over the admin account.

What the attacker needed

Access to edit page keywords; victim visits the website

The fix

The vulnerability should be fixed by filtering input on arrival, encoding data on output, using appropriate response headers, and applying a Content Security Policy.

How it was found

  1. Go to the Simple website builder.
  2. Enter a crafted payload in the Page keywords field.
  3. Visit the website to trigger the stored script.

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.

Cross-site scripting (XSS) is when a website lets someone insert harmful code that runs in other visitors' browsers. Here, the page keywords field saved the code permanently, so every visitor ran it. That could let an attacker steal login cookies or control the admin account.

What is XSS?

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

More by Mayur Parmar

View all

3 more disclosed reports, best first.

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.