Reflected XSS in "Manage Tags" Notes Field
The Notes field in the Manage Tags section reflects user input back into the HTML response without sanitisation or encoding, so a script entered there runs immediately on saving. The author states it is not stored and not directly exploitable by other users, so the practical risk is limited to the person entering the input.
- Triaged in 3 days
- Fixed in 7 days
- Paid in 7 days
- Disclosed after 40 days
A reflected Cross-Site Scripting (XSS) vulnerability exists in the "Notes" input field under the Manage Tags section.
When adding or editing a tag from the "Manage Tags" module in the client management panel, a user can enter arbitrary input into the Notes field. If this input includes malicious JavaScript (e.g., an XSS payload), it is reflected back and executed immediately upon saving, due to the lack of proper input sanitization and output encoding.
The script is not stored permanently in the system, which confirms it as a reflected XSS, triggered right after submission in the current session.
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
Context
MainWP is a self-hosted management dashboard for administering multiple WordPress sites from one place. The affected code lives in the public mainwp/mainwp repository, and the vulnerable feature is the Manage Tags module inside the client management panel. Tags are the labels an administrator attaches to clients and sites to group and filter them, and each tag carries a free-text Notes field that the operator fills in when creating or editing the tag.
The report describes a reflected cross-site scripting issue in that Notes field: input typed there is reflected back into the HTML response and executed as script as soon as the tag is saved. The researcher classifies it as reflected rather than stored, because the script does not persist in the system and fires immediately after submission within the current session.
Setup
The report does not describe a specific lab, account setup, browser or MainWP version. What it does establish is the precondition: the actor must be able to reach the Manage Tags module in the client management panel and add or edit a tag, which is an administrative capability in a dashboard that manages multiple WordPress installations. No victim interaction beyond the operator's own save action is described.
Finding it
The researcher was looking at the Notes input under Manage Tags and observed that arbitrary input entered there is reflected back into the page. Because the field accepts free text and the response echoes it without sanitisation or output encoding, a JavaScript payload placed in Notes is executed immediately on saving. The absence of persistence is what led to the reflected classification: the payload runs in the session that submitted it, right after submission, rather than being stored and replayed later.
Exploitation
Step 1: Open the tag editor
In the client management panel, go to the Manage Tags module and start adding a new tag, or edit an existing one. The Notes field is part of that form.
Step 2: Put a payload in Notes
The report does not reproduce the exact payload string used. It states only that malicious JavaScript, an XSS payload, entered into the Notes field is reflected and executed on saving.
Step 3: Save the tag
Submitting the form causes the Notes value to be reflected into the HTML response and executed immediately. The script is not stored permanently, which is the evidence for the reflected classification: the trigger is the submission itself, in the current session.
The report includes a recording as an attachment.
Root cause
The Notes value is reflected back into the HTML response without proper input sanitisation or output encoding. The report frames this as a general input-handling failure rather than pointing at a specific function or line: user input is not sanitised or encoded before it is reflected into the page. Because the reflection happens in the response to the save action, the browser parses the injected markup as part of the page and runs the script. The report does not identify which server-side or client-side defence was missing or bypassed, so the precise mechanism is likely a straightforward missing encode-on-output step.
Impact
The report is explicit about the limits. The flaw is not directly exploitable by other users: there is no described path by which an attacker delivers the payload to a different person's browser. The risk is client-side and conditional, and the report lists these 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, such as an insider threat or a compromised low-privilege user, to test or explore further payload injection points.
The platform recorded the issue as low severity with a CVSS score of 2.2 and a bounty of 50.00 USD, which is consistent with a self-triggered reflection in an authenticated admin interface.
Fix
The report does not describe a patch or a code change. What it calls for is the general remedy implied by the root cause: sanitise and encode user input before it is reflected back into the HTML response, so that content entered in Notes is rendered as text rather than parsed as markup. It also recommends addressing such vulnerabilities to improve the application's overall resilience and help prevent future, more impactful exploits.
Variants to test
- Other free-text fields in the same module. Try tag names, descriptions and any other Notes-like inputs in Manage Tags. A positive result is the value executing on save, exactly as in this report.
- Other admin forms in the dashboard. The report suggests similar input handling may exist elsewhere. Any field whose value is echoed back in the response to a save is worth a payload; a positive result is script execution in the response to the submission.
- Reflection points after save rather than before. Look for confirmation messages, summaries or lists that echo the submitted value. A positive result is the payload executing when the confirmation view renders.
- Fields that look stored but behave reflected. If a value disappears on reload but executes on save, it belongs to this class; if it survives a reload and executes again, it is stored XSS and a stronger finding.
Hunting notes
This bug class hides in administrative CRUD forms, particularly optional free-text fields such as notes, descriptions and comments that are less scrutinised than names and titles. The signal during recon is a form whose submission produces a response containing the submitted value; if that value comes back unencoded, the field is a candidate. The report's own framing is useful for triage: a reflection that only fires for the person who submitted it is a low-severity finding, and the researcher made that boundary explicit rather than overstating reachability.
What happened, in plain words
MainWP is a piece of software you install on your own web server. It acts as a control panel for several WordPress websites at once, so an administrator can log in to one place and look after many sites instead of logging in to each one separately. The code for it is public, in the mainwp/mainwp repository on GitHub.
Inside that control panel there is a section called Manage Tags. A tag is just a label, like a sticky note you put on a folder so you can find it later. An administrator attaches tags to clients and sites to group them and to filter lists. Each tag has a free-text box called Notes, where the operator can type anything they like when creating or editing the tag.
The researcher found that whatever you type into that Notes box comes back into the web page and is treated as part of the page's code. If what you typed is JavaScript, the browser runs it. This is called cross-site scripting, or XSS for short. The report calls it reflected XSS rather than stored XSS, because the script does not stay in the system: it fires once, straight after you press save, in your own session.
The pieces you need to know
Before the steps make sense, here are the ideas involved, explained from zero.
- A web page is a document the browser builds. The server sends text, mostly HTML, and the browser reads it and draws the page. HTML uses angle brackets to mark up structure, for example a paragraph or a link. JavaScript is a programming language that browsers can run; it is what makes pages interactive.
- The browser cannot tell your text from the site's code unless the site helps it. If a site takes something a user typed and drops it into the HTML without changing it, the browser has no way to know it was meant as plain text. It will happily treat
<and>as markup and run anything that looks like a script. The defence is called output encoding (or escaping): converting characters like<into a safe form so the browser shows them as text instead of acting on them. Sanitisation is the related idea of cleaning input so dangerous parts are removed. - Reflected versus stored XSS. In reflected XSS, the dangerous value is echoed back in the response to your own request and runs immediately; it is not saved. In stored XSS, the value is saved in a database and runs again for anyone who later views the page. Stored is generally more serious because it can reach other people.
- A session is the period you stay logged in. The server remembers who you are, usually with a cookie, which is a small piece of data the browser keeps and sends back with each request. The report says the script runs in the current session, meaning the one belonging to the person who saved the tag.
- An admin interface is the logged-in area where administrators do their work. It is a sensitive place, because the person using it usually has a lot of power over the sites being managed.
Setting up
The report does not describe a specific test lab, account setup, browser or MainWP version. What it does make clear is the precondition: whoever triggers this must be able to reach the Manage Tags module in the client management panel and add or edit a tag. That is an administrative capability in a dashboard that manages multiple WordPress installations. No victim interaction beyond the operator's own save action is described.
Finding it
The researcher was looking at the Notes input under Manage Tags and noticed that arbitrary input entered there is reflected back into the page. The field accepts free text, and the response echoes it without sanitisation or output encoding. That means a JavaScript payload placed in Notes is executed immediately on saving. The fact that nothing persists is what led to the reflected classification: the payload runs in the session that submitted it, right after submission, rather than being stored and replayed later.
Exploitation
Step 1: Open the tag editor
In the client management panel, go to the Manage Tags module and start adding a new tag, or edit an existing one. The Notes field is part of that form. This step is simply about getting to the input that the researcher suspected was handled carelessly.
Step 2: Put a payload in Notes
The report does not reproduce the exact payload string used. It states only that malicious JavaScript, an XSS payload, entered into the Notes field is reflected and executed on saving. A payload here means the text you type that is intended to be interpreted as code rather than as ordinary words.
Step 3: Save the tag
Submitting the form causes the Notes value to be reflected into the HTML response and executed immediately. The script is not stored permanently, which is the evidence for the reflected classification: the trigger is the submission itself, in the current session.
The report includes a recording as an attachment.
Why it happens
The Notes value is reflected back into the HTML response without proper input sanitisation or output encoding. The report frames this as a general input-handling failure rather than pointing at a specific function or line: user input is not sanitised or encoded before it is reflected into the page. Because the reflection happens in the response to the save action, the browser parses the injected markup as part of the page and runs the script. The report does not identify which server-side or client-side defence was missing or bypassed, so the precise mechanism is likely a straightforward missing encode-on-output step.
A useful comparison: imagine a form where you write your name, and the clerk reads it back to you. If you write "hello" you hear "hello". If you write an instruction like "now open the safe", a careless clerk might follow the instruction instead of reading it aloud. Encoding is the clerk being trained to always read the words out, never to act on them.
Impact
The report is explicit about the limits. The flaw is not directly exploitable by other users: there is no described path by which an attacker delivers the payload to a different person's browser. The risk is client-side and conditional, and the report lists these 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, such as an insider threat or a compromised low-privilege user, to test or explore further payload injection points.
The platform recorded the issue as low severity with a CVSS score of 2.2 and a bounty of 50.00 USD. CVSS is a standard scoring system for how serious a vulnerability is; 2.2 is on the low end. That fits a reflection that only fires for the person who submitted it, inside a logged-in admin area.
The fix
The report does not describe a patch or a code change. What it calls for is the general remedy implied by the cause: sanitise and encode user input before it is reflected back into the HTML response, so that content entered in Notes is rendered as text rather than parsed as markup. It also recommends addressing such vulnerabilities to improve the application's overall resilience and help prevent future, more impactful exploits.
Other places to look
- Other free-text fields in the same module. Try tag names, descriptions and any other Notes-like inputs in Manage Tags. A positive result is the value executing on save, exactly as in this report.
- Other admin forms in the dashboard. The report suggests similar input handling may exist elsewhere. Any field whose value is echoed back in the response to a save is worth a payload; a positive result is script execution in the response to the submission.
- Reflection points after save rather than before. Look for confirmation messages, summaries or lists that echo the submitted value. A positive result is the payload executing when the confirmation view renders.
- Fields that look stored but behave reflected. If a value disappears on reload but executes on save, it belongs to this class; if it survives a reload and executes again, it is stored XSS and a stronger finding.
Notes for anyone hunting this class
This kind of bug hides in administrative forms for creating, reading, updating and deleting records, particularly optional free-text fields such as notes, descriptions and comments, which tend to get less scrutiny than names and titles. The signal during recon, meaning the early survey of a target, is a form whose submission produces a response containing the submitted value; if that value comes back unencoded, the field is a candidate. The report's own framing is useful for triage: a reflection that only fires for the person who submitted it is a low-severity finding, and the researcher made that boundary explicit rather than overstating reachability.
Glossary
- Reflected XSS: the dangerous value is echoed back in the response to your own request and runs immediately; it is not saved.
- Stored XSS: the dangerous value is saved and runs again for anyone who later views the page.
- Payload: the text you submit that is meant to be interpreted as code rather than as ordinary words.
- Sanitisation: cleaning input so dangerous parts are removed before use.
- Output encoding (escaping): converting characters so the browser displays them as text instead of acting on them.
- HTML: the markup language browsers use to build a page.
- JavaScript: the programming language browsers can run to make pages interactive.
- Session: the period you stay logged in, remembered by the server, usually with a cookie.
- Cookie: a small piece of data the browser stores and sends back with requests so the server can recognise you.
- Admin interface: the logged-in area where administrators manage the system.
- MainWP: self-hosted software that manages multiple WordPress sites from one dashboard.
- WordPress: a popular system for building and running websites.
- Tag: a label attached to clients and sites to group and filter them.
- Notes field: a free-text box on a tag where the operator can type anything.
- Client management panel: the part of the dashboard where clients and their sites are administered.
- CRUD: create, read, update and delete, the four basic operations on stored records.
- CVSS: a standard scoring system for the severity of a vulnerability.
- Bounty: a payment made by a programme to a researcher who reports a valid issue.
- Recon: the early survey of a target to find places worth testing.
- Triage: deciding how serious and how valid a reported issue is.