Skip to content
XSS Write-up Beginner

*CVE-2023–39308: Wordpress Plugin User Feedback <= 1.0.7 — Unauthenticated Stored XSS*

The User Feedback plugin did not sanitise text submitted through its survey form before storing it in the database. An unauthenticated visitor could submit a script that would later execute in an administrator's browser when viewing survey responses, allowing cookie theft or other actions.

Revan A Follow

Published on infosecwriteups.com

Submit Feedback feature doesn’t filter submitted Text. So, Attacker can submit malicious script.

Revan A, on infosecwriteups.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

The plugin saved user-supplied survey answers directly to the database without sanitising or escaping them, and later rendered them unsafely in the admin interface.

Impact

An unauthenticated attacker could execute arbitrary JavaScript in an administrator's browser, potentially stealing cookies or performing actions as the admin.

What the attacker needed

WordPress with User Feedback <= 1.0.7; Survey with Long Answer question; No authentication needed to submit

The fix

The vulnerability was fixed in version 1.0.8 by sanitising submitted text with sanitize_text_field() before saving it to the database.

How it was found

  1. Install WordPress and the vulnerable User Feedback plugin version 1.0.7 or lower.
  2. Create a new survey with a Long Answer question type.
  3. Log out of the admin account.
  4. Open a post on the site and fill in the feedback form with a script payload, then submit it as a guest.
  5. Log in as admin and go to the survey results page, then open an individual response.
  6. The script executes and an alert popup appears.

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.

A WordPress plugin let anyone fill in a feedback form and saved whatever they typed without cleaning it. Later, when an administrator opened the saved responses, any hidden script in the text ran in the admin's browser. This is called stored cross-site scripting because the harmful code is stored on the server and then runs for someone else.

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 Revan A

View all

1 more disclosed report, 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.