Skip to content
XSS Disclosed report Intermediate

WordPress <= 4.6.1 Stored XSS Via Theme File

A stored cross-site scripting flaw was reported in the WordPress theme installer, where a crafted theme zip could carry script. An attacker who convinced a webmaster to upload such a theme could trigger it.

madrobot Follow

Originally disclosed on HackerOne

  • Fixed in 5 hours
  • Disclosed after 10 hours

Hello Team,

Description:-

Vulnerable code is located at /wp-admin/includes/class-theme-installer-skin.php

POC:- https://nextcloud.com/readme.html

16.png
16.png From the original on HackerOne

FIX:- Upgrade wordpress to latest

Refer:-

https://wpvulndb.com/vulnerabilities/8718 https://www.mehmetince.net/low-severity-wordpress/

Attack Scenario:- 1 – Attacker uploads a theme as a zip file. 2 – Webmaster who just want to download a theme and then upload, takes a theme file. 3 – And upload it without verify content of zip file.

Regards, Santhosh

The original report as published on HackerOne, by madrobot. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

How it worked

Root cause

Likely the theme installer did not sanitise or validate file contents inside the uploaded theme zip before displaying them in the admin interface.

What the attacker needed

Victim uploads a crafted theme zip

The fix

Upgrade WordPress to the latest version.

How it was found

  1. The attacker prepares a theme packaged as a zip file.
  2. The webmaster obtains the theme file intending to install it.
  3. The webmaster uploads the zip without checking its contents.

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 report has not been written yet. The Original tab links to the source.

WordPress lets an administrator install a theme by uploading a zip file. If the zip contents are not checked, a malicious theme can carry script. The attacker needs the webmaster to upload the bad theme file.

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 madrobot

View all

15 more disclosed reports, best first.

More from Nextcloud

View all

The newest disclosed reports for this program.

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.