Skip to content
XSS Disclosed report Beginner

Reflected XSS in "Client Notes" Field

The notes field on the Edit Client page reflects user input back into the HTML response without proper sanitisation. An attacker with dashboard access could enter a JavaScript payload that executes immediately after form submission.

rishail01 Follow

Originally disclosed on HackerOne

Bounty$50 Low 2.2 View original
  • Triaged in 3 days
  • Fixed in 7 days
  • Paid in 7 days
  • Disclosed after 37 days

A reflected Cross-Site Scripting (XSS) vulnerability exists in the “Notes” functionality under the Edit Client section.

When a user adds a new client and navigates to the "Edit Client" page, they have the ability to attach notes. However, if a malicious JavaScript payload is entered in the notes input field and saved, it is not sanitized properly and is reflected back in the application upon submission, triggering an XSS alert.

The payload is not stored permanently, but it executes instantly after form submission, which confirms it's a reflected XSS and not a stored one.

Impact

The presence of such a vulnerability indicates that user input is not properly sanitized or encoded before being reflected back into the HTML response. While not directly exploitable by other users, this flaw can have the following implications:

  • It highlights a potential entry point for more severe XSS vulnerabilities if similar input handling exists elsewhere in the application.
  • It poses a client-side security risk, especially in environments with browser extensions, debugging tools, or when integrating third-party scripts.
  • It reduces trust in the platform’s secure coding practices, especially in an admin interface that manages multiple WordPress sites.
  • It can be used by attackers with access to the dashboard (e.g., insider threat or compromised low-privilege user) to test or explore further payload injection points.

Addressing such vulnerabilities improves the overall resilience of the application and helps prevent future, more impactful exploits.

Attachments

Client_Notes_RXSS.mp4 From the original on HackerOne

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

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 4 min read.

Context

MainWP is a WordPress management platform, and the target here is the plugin's own source repository, https://github.com/mainwp/mainwp. The feature involved is the "Notes" functionality inside the Edit Client section of the dashboard. In normal use, an administrator creates a client record and can attach free-text notes to it, which are then displayed back in the interface when the client is edited.

The report describes a reflected cross-site scripting issue in that notes field: input is echoed back into the HTML response without adequate sanitisation or encoding. The researcher classifies it as reflected rather than stored, because the payload does not persist, but executes immediately after the form is submitted.

Setup

The report does not describe specific tooling, browser versions or plugin versions. The precondition it does state is straightforward: the tester needs to be able to add a new client and reach the "Edit Client" page, which is where the notes field lives. That places the feature inside an administrative interface used to manage multiple WordPress sites.

Finding it

The researcher's observation is that the notes input field accepts a JavaScript payload, and that on saving the form the value is reflected back into the application without proper sanitisation, producing an XSS alert. The key distinction drawn in the report is timing: the payload is not stored permanently, but it executes instantly after form submission, which is what identifies it as reflected XSS rather than stored XSS.

Exploitation

Step 1: Create a client and open the notes field

Add a new client in the dashboard and navigate to the "Edit Client" page. This page exposes the notes input field that the client record can carry.

Step 2: Submit a JavaScript payload in the notes field

Enter a malicious JavaScript payload into the notes input field and save the form. The report does not reproduce the exact payload string, so the precise characters used are not available here.

Step 3: Observe execution on submission

The payload is reflected back in the application upon submission and triggers an XSS alert. Because it fires immediately after the form is submitted and is not retained, the behaviour confirms a reflected XSS rather than a stored one.

The report includes a screen recording of the flow:

Client_Notes_RXSS.mp4 From the original on HackerOne

Root cause

User input from the notes field is not properly sanitised or encoded before being reflected back into the HTML response. The report frames this as the underlying defect: the application takes attacker-controlled text and places it into the response without neutralising it, so the browser parses it as markup and script rather than as inert data. The report does not identify the specific function or line responsible, so the exact coding mistake is not documented; the description is at the level of missing sanitisation or encoding on reflection.

Impact

The report is explicit about the limits. The flaw is not directly exploitable by other users, and the payload is not stored. The implications it lists are:

  • It highlights a potential entry point for more severe XSS vulnerabilities if similar input handling exists elsewhere in the application.
  • It poses a client-side security risk, especially in environments with browser extensions, debugging tools, or when integrating third-party scripts.
  • It reduces trust in the platform's secure coding practices, especially in an admin interface that manages multiple WordPress sites.
  • It can be used by attackers with access to the dashboard, such as an insider threat or a compromised low-privilege user, to test or explore further payload injection points.

The report notes that addressing such vulnerabilities improves the overall resilience of the application and helps prevent future, more impactful exploits.

Fix

The report does not describe a patch, code change or vendor response. The remediation it argues for is sanitising or encoding user input before it is reflected back into the HTML response, so that notes content is rendered as text rather than parsed as markup.

Variants to test

  • Other free-text fields on the same client record submitted and then re-rendered on the edit page. A positive result is an alert firing on submission or on reload of the edit view.
  • A positive result is execution at a different point in the response than the one already reported.
  • A positive result is a payload that breaks out of the attribute or script context.
  • A positive result is the same immediate execution after submission, which would show the pattern is not isolated to one field.

Hunting notes

This kind of bug tends to sit in administrative CRUD screens where a value is saved and then immediately re-rendered in the same response, which is exactly the pattern described here: the notes field on the Edit Client page.

On impact, the researcher was careful to characterise the bug honestly: reflected, not stored, and not directly exploitable by other users. The report still made the case for relevance by tying it to the admin context, to the possibility of similar handling elsewhere, and to dashboard-level attackers such as insiders or compromised low-privilege accounts. That framing, together with a recording of the flow, is what the report offers as justification.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 6 min read.

What happened, in plain words

MainWP is a tool that lets one person manage several WordPress websites from a single dashboard. Inside that dashboard there is a section called "Clients", where you can keep records about the people or companies you manage sites for. Each client record has a free-text "Notes" field where you can type anything you like.

The researcher found that if you type JavaScript code into that Notes field and save the form, the code is sent back to your browser and runs immediately. This is called reflected cross-site scripting (XSS). It is "reflected" because the code bounces straight back at you when the page reloads after saving, rather than being stored on the server and shown to other people later. The report calls it reflected rather than stored because the payload does not persist, but it executes instantly after the form is submitted.

Context

MainWP is a WordPress management platform. The target here is the plugin's own source repository, https://github.com/mainwp/mainwp. The feature involved is the "Notes" functionality inside the Edit Client section of the dashboard. In normal use, an administrator creates a client record and can attach free-text notes to it, which are then displayed back in the interface when the client is edited.

The report describes a reflected cross-site scripting issue in that notes field: input is echoed back into the HTML response without adequate sanitisation or encoding. The researcher classifies it as reflected rather than stored, because the payload does not persist, but executes immediately after the form is submitted.

Setup

The report does not describe specific tooling, browser versions or plugin versions. The precondition it does state is straightforward: the tester needs to be able to add a new client and reach the "Edit Client" page, which is where the notes field lives. That places the feature inside an administrative interface used to manage multiple WordPress sites.

Finding it

The researcher's observation is that the notes input field accepts a JavaScript payload, and that on saving the form the value is reflected back into the application without proper sanitisation, producing an XSS alert. The key distinction drawn in the report is timing: the payload is not stored permanently, but it executes instantly after form submission, which is what identifies it as reflected XSS rather than stored XSS.

Exploitation

Step 1: Create a client and open the notes field

Add a new client in the dashboard and navigate to the "Edit Client" page. This page exposes the notes input field that the client record can carry.

Step 2: Submit a JavaScript payload in the notes field

Enter a malicious JavaScript payload into the notes input field and save the form. The report does not reproduce the exact payload string, so the precise characters used are not available here.

Step 3: Observe execution on submission

The payload is reflected back in the application upon submission and triggers an XSS alert. Because it fires immediately after the form is submitted and is not retained, the behaviour confirms a reflected XSS rather than a stored one.

The report includes a screen recording of the flow:

Client_Notes_RXSS.mp4 From the original on HackerOne

Root cause

User input from the notes field is not properly sanitised or encoded before being reflected back into the HTML response. The report frames this as the underlying defect: the application takes attacker-controlled text and places it into the response without neutralising it, so the browser parses it as markup and script rather than as inert data. The report does not identify the specific function or line responsible, so the exact coding mistake is not documented; the description is at the level of missing sanitisation or encoding on reflection.

Impact

The report is explicit about the limits. The flaw is not directly exploitable by other users, and the payload is not stored. The implications it lists are:

  • It highlights a potential entry point for more severe XSS vulnerabilities if similar input handling exists elsewhere in the application.
  • It poses a client-side security risk, especially in environments with browser extensions, debugging tools, or when integrating third-party scripts.
  • It reduces trust in the platform's secure coding practices, especially in an admin interface that manages multiple WordPress sites.
  • It can be used by attackers with access to the dashboard, such as an insider threat or a compromised low-privilege user, to test or explore further payload injection points.

The report notes that addressing such vulnerabilities improves the overall resilience of the application and helps prevent future, more impactful exploits.

Fix

The report does not describe a patch, code change or vendor response. The remediation it argues for is sanitising or encoding user input before it is reflected back into the HTML response, so that notes content is rendered as text rather than parsed as markup.

Variants to test

  • Other free-text fields on the same client record submitted and then re-rendered on the edit page. A positive result is an alert firing on submission or on reload of the edit view.
  • A positive result is execution at a different point in the response than the one already reported.
  • A positive result is a payload that breaks out of the attribute or script context.
  • A positive result is the same immediate execution after submission, which would show the pattern is not isolated to one field.

Hunting notes

This kind of bug tends to sit in administrative CRUD screens where a value is saved and then immediately re-rendered in the same response, which is exactly the pattern described here: the notes field on the Edit Client page.

On impact, the researcher was careful to characterise the bug honestly: reflected, not stored, and not directly exploitable by other users. The report still made the case for relevance by tying it to the admin context, to the possibility of similar handling elsewhere, and to dashboard-level attackers such as insiders or compromised low-privilege accounts. That framing, together with a recording of the flow, is what the report offers as justification.

Glossary

  • MainWP: a WordPress management platform that lets you manage multiple WordPress sites from one dashboard.
  • WordPress: a popular system for building and running websites.
  • Plugin: an add-on that extends the functionality of a piece of software such as WordPress.
  • Dashboard: the administrative interface where you manage settings and content.
  • Client record: a stored entry in the dashboard that holds information about a client.
  • Notes field: a free-text input where you can type arbitrary text.
  • Reflected XSS: a cross-site scripting attack where the malicious script is immediately returned by the server in the response to a request, rather than being stored.
  • Stored XSS: a cross-site scripting attack where the malicious script is saved on the server and later served to other users.
  • Sanitisation: the process of cleaning user input to remove or neutralise dangerous content.
  • Encoding: converting characters into a safe representation so they are treated as data, not code.
  • HTML response: the web page content sent by the server to the browser.
  • JavaScript: a programming language that runs in the browser and can make web pages interactive.
  • Payload: the malicious code or data an attacker sends.
  • XSS alert: a pop-up dialog that appears when JavaScript runs, often used to demonstrate that script execution is possible.
  • CVSS: a scoring system for the severity of security vulnerabilities.
  • Bounty: a reward paid for reporting a security vulnerability.
  • CRUD: create, read, update, delete; the basic operations for managing data.
  • Recon: the phase of exploring an application to find potential vulnerabilities.
  • Attribute: a property of an HTML element, such as href or value.
  • Script context: a place in the HTML where JavaScript code is expected, such as inside a <script> tag.
  • Insider threat: a security risk coming from someone inside the organisation.
  • Low-privilege user: a user account with limited permissions.

More by rishail01

View all

4 more disclosed reports, best first.

More from MainWP

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.