One Bug at a Time: $1,500 worth of XSS
The author found three XSS issues: a stored/reflected XSS on a settings page where input was not properly encoded, a stored XSS in a document upload description field, and a reflected XSS in legacy AEM due to misconfiguration. An attacker could execute JavaScript in other users' sessions to steal data or hijack accounts.
Published on medium.com
Welcome back people! Today we will be digging into how to find XSS that others are not finding.
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.
Context
This write-up covers three separate XSS findings made while hunting on a site the author describes only as "this site". The platform metadata lists the asset as medium.com and the total payout as $1,500, but the report itself does not name the target application, its features beyond what is described below, or the program it was submitted to. The three bugs are:
- A stored and reflected XSS on a settings page.
- A stored XSS in a document upload feature, injected through the file description field.
- A reflected XSS caused by a misconfiguration in Adobe Experience Manager (AEM), found at scale with an automated scan.
The settings page holds data that is shared with other people, specifically Administrators or Researchers.
Setup
The report does not describe the accounts, roles or tooling used for the first two bugs beyond the fact that the settings page data is viewable by Administrators and Researchers. For the third bug the researcher used nuclei templates and built an automation to run the AEM check across the web. No versions, endpoints, parameters or headers are given for any of the three findings.
Finding it
The starting point was a settings page. The researcher submitted a standard image-based payload:
"><img src=x onerror=alert("XSS");>
No JavaScript executed, but the page came back with parsed data rather than the full payload:
That partial reflection was the signal: the application was accepting the input and not blocking it. Rather than stopping at the non-popping payload, the researcher walked the entire website to see whether the same data surfaced anywhere else, and it did. The settings data is visible to other users (Administrators or Researchers), so the injected content was rendered in their context as well as the submitter's.

The image sits at the top of the write-up, introducing the theme of finding XSS that other hunters miss.
Exploitation
Step 1: Confirm the payload survives input handling
Submit the payload above into the settings page. A truncated reflection such as >” means the data was accepted and not blocked, and the question becomes where it appears.
Step 2: Map every place the settings data is displayed
Visit every page of the site after injecting. The researcher found the payload appearing beyond the settings page itself, and the issue affects the entire website.
Step 3: Establish who sees the rendered data
The settings data is shared with Administrators or Researchers. The settings data is shared with Administrators or Researchers, who can view it. The report lists data exfiltration as a potential consequence, since the settings data is viewable by Administrators or Researchers.
Step 4: Document upload description (Bug 2)
In the document upload feature there is a description section. A malicious XSS payload placed in that description is stored, and it executes when someone opens the associated document. The report does not include the payload used or the request, only the location and the trigger.
Step 5: AEM misconfiguration (Bug 3)
While doing recon the researcher reviewed nuclei templates and found one for an XSS vulnerability in Adobe Experience Manager present in legacy versions of the product and reachable through a misconfiguration. An automation was set up to look for it across the web, and it produced about four XSS bugs that were submitted to a bug bounty program on HackerOne. The report does not give the template, the affected URLs, the payload or the responses.
Root cause
The first bug is described as improper input validation and output encoding, allowing payloads to be executed in both a stored and reflected manner. The application accepted the input and did not block it, and the payload appeared elsewhere on the site. The second bug is the same class of failure in the document description field: user-controlled text is stored and rendered when the document is opened. The third is a misconfiguration in legacy AEM, for which a nuclei template exists.
Impact
For the settings page bug, the researcher lists two consequences:
- Data exfiltration: attackers can steal sensitive user data stored in the settings page, which is accessible to administrators and researchers. This may include personal information, email addresses, or even authentication tokens.
- Session hijacking: an attacker can hijack user sessions and potentially gain unauthorised access to the victim's account.
For the document upload bug:
- Malicious code execution: documents with payloads in the description execute when unsuspecting users or collaborators open them, potentially leading to session hijacking or unauthorised access.
- Data theft: sensitive user data or credentials of individuals who view the document can be stolen.
- Document sharing: both public and private documents are affected, so sharing a document containing the payload can compromise additional users.
For the AEM bug, the reflected XSS allows script execution in the context of a user's browser when they access the affected AEM page, enabling session hijacking and data theft, and facilitating client-side attacks against visitors that could compromise personal data, credentials or access tokens.
All of these are hedged in the report with "potentially" and "may"; no proof-of-concept exfiltration is shown.
Fix
The report names improper input validation and output encoding as the issue behind the first bug but states no fix.
Variants to test
The report closes each bug with its own checklist, which translates directly into things to try elsewhere.
- Follow the payload past the filter. Once a payload survives filtering, do not stay on one page. Visit every page on the site, because the value may be rendered somewhere else entirely. A positive result is the payload appearing, parsed or intact, on a page other than the one you submitted it to.
- Vary the input handling. After a successful injection, try different encodings and payloads with special characters to see whether the vulnerability is limited to one input format or context. A positive result is the vulnerability not being limited to a specific input format or context.
- Test cookie manipulation. If the XSS allows session hijacking, experiment with cookie manipulation to check whether you can impersonate other users. The aim is to verify whether you can impersonate other users or gain unauthorised access.
- Test across browsers and devices. Some browsers have different security mechanisms that affect XSS exploitation. The aim is to ensure the vulnerability is not limited to a specific browser.
- Explore different user roles. Test from the perspective of a regular user and an administrator. The aim is to understand the extent of the impact across roles.
- Check for persistence. Verify whether the payload is stored in the database and affects other users who access the same content later. The aim is to verify whether the payload is stored persistently and affects other users later.
- Try payload diversity on upload features. Test different encodings and special characters in description fields. The aim is to assess the extent of the vulnerability with different payloads and encodings.
- Check every location, not just names and titles. Description fields, metadata and secondary inputs are easy to overlook. The aim is to check every single location on a web app, not just names and titles.
- Test multiple document types. Confirm the stored XSS is not limited to one format and affects common types such as PDF, Word or Excel. The aim is to ensure the stored XSS is not limited to specific document formats.
- Assess AEM exploitability. For the AEM misconfiguration, test different payloads and input variations to gauge severity, identify the specific URLs or endpoints where the reflected XSS appears, test across browsers, and check whether the same misconfiguration points to related flaws elsewhere in the application. The aim is to assess exploitability, identify affected URLs, test across browsers and check for related flaws.
What happened, in plain words
This is a story about three separate bugs of the same family, found by one researcher on a website. The family is called XSS, short for Cross-Site Scripting. Before anything else, it helps to know what that means.
A website is mostly text that your browser turns into a page. Some of that text is meant to be read (a name, a comment, a description). Some of it is meant to be instructions the browser follows (code that makes a button work, a menu open, a form submit). The browser decides which is which by looking at the markup it receives. XSS happens when a website takes text that a person typed and puts it into a page in a way that makes the browser treat it as instructions instead of as text. If an attacker can get their own instructions into a page that other people view, the attacker's code runs inside those other people's browsers, with the same access those people have to the site.
That is the whole idea. Everything below is a variation on it: where the typed text goes, who ends up seeing it, and what the attacker's code can do once it runs.
The researcher found three bugs:
- A stored and reflected XSS on a settings page. "Stored" means the bad text is saved by the site and shown again later. "Reflected" means it comes straight back in the page you are looking at. This one had both behaviours, and the settings data is viewable by other people, specifically Administrators or Researchers.
- A stored XSS in a document upload feature, injected through the file description field. When someone opened the document, the payload executed.
- A reflected XSS caused by a misconfiguration in Adobe Experience Manager (AEM), a content management system. This one was found at scale with an automated scan, and produced about four submissions to a bug bounty program on HackerOne.
The platform metadata lists the asset as medium.com and the total payout as $1,500, but the report itself does not name the target application, its features beyond what is described, or the program it was submitted to.
Some words you will need
A few terms come up constantly, so here they are up front, in everyday language.
- Payload: the piece of text an attacker types in, hoping the site will treat it as code. In this story the payload is a small snippet of HTML that asks the browser to run a JavaScript alert.
- HTML: the language web pages are written in. It uses tags like
<img>(an image) and attributes likesrc(where the image lives). - JavaScript: the programming language browsers run. It can read the page, read cookies, send requests. That is why an attacker wants their JavaScript to run on someone else's browser.
- Filter: code on the server that inspects what you typed and decides whether to accept, change or reject it. A filter that blocks the payload is good. A filter that quietly changes it and stores the rest is a warning sign.
- Encoding: the way special characters are represented so they can travel safely. If a site encodes
<as<, the browser shows a literal less-than sign instead of starting a tag. Correct output encoding is the main defence against XSS. - Cookie: a small piece of data a website asks your browser to keep and send back with every request. Cookies often hold a session identifier, which is what tells the site "this is the logged-in user". If an attacker's code can read a cookie, they may be able to act as that user.
- Token: similar idea, a value that proves who you are. Stealing one can mean stealing the account.
- Session: the period during which the site remembers you are logged in. Session hijacking means an attacker takes over that period.
- Stored XSS: the payload is saved by the site (in a database, for example) and shown to whoever views that data later.
- Reflected XSS: the payload is not saved; it comes back in the response to the request that carried it.
- AEM: Adobe Experience Manager, a content management system used to build and run large websites. "Legacy versions" means old releases that are no longer the current one.
- Nuclei: a tool that runs a library of ready-made checks (called templates) against websites, looking for known issues. Think of it as a checklist that a robot can run for you.
- Recon: short for reconnaissance, the phase where you look around and gather information before attacking anything.
- Bug bounty program: a scheme where a company pays researchers for reporting security bugs responsibly, usually through a platform such as HackerOne.
The starting point: a settings page
The researcher began on a settings page. Settings pages are where you change your profile details: your name, your contact information, preferences. The important detail here is that the data on this settings page is shared with other people, specifically Administrators or Researchers. That single fact matters because the settings data is viewable by those other roles.
The first thing tried was a standard image-based payload:
"><img src=x onerror=alert("XSS");>
Line by line, in plain words:
">closes whatever HTML attribute the site had put the input inside. If the page had writtenvalue="and then your text, this closes the quote and the tag early, so what follows is no longer inside the attribute.<img src=x ...>starts an image tag.src=xpoints at an image calledx, which almost certainly does not exist.onerror=alert("XSS");is the interesting part.onerroris an attribute that runs JavaScript when the image fails to load. Sincexdoes not exist, the image fails, and the browser runsalert("XSS"), which pops a small dialog box saying XSS.- The trailing
>closes the tag.
If that dialog appears, the site has let your text become code. That is the classic proof of an XSS bug.
What came back instead
No dialog appeared. But the page did not show the full payload either. It came back with this:
That is a fragment: a greater-than sign and a curly closing quote. The rest of the payload was gone.
Why does this matter? Because a site that blocks you may reject the input or show it escaped as harmless text. A site that shows a mangled fragment is telling you something different: it accepted the input and did not block it. The researcher read this as a signal that the application was taking the data in and not blocking it. The question then became: where else does this data appear, and in what form?
This is the moment where most people stop. The payload did not pop, so they move on. The lesson of this bug is that a non-popping payload is not the same as a blocked payload.

The image sits at the top of the write-up, introducing the theme of finding XSS that other hunters miss.
Walking the whole site
Instead of stopping, the researcher went through the entire website to see whether the same data surfaced anywhere else. It did. The injected content appeared beyond the settings page itself, and the issue affects the entire website.
Why does that matter so much? Because the settings data is visible to other users, specifically Administrators or Researchers. Those roles can view the settings data. The report lists data exfiltration as a potential consequence, since the settings data is viewable by Administrators or Researchers.
Exploitation, step by step
Step 1: Confirm the payload survives input handling
Submit the payload above into the settings page. A truncated reflection such as >” means the data was accepted and not blocked, and the question becomes where it appears.
Why this step: you need to know whether the site is rejecting your input or merely reshaping it. The shape of the reflection tells you which.
Step 2: Map every place the settings data is displayed
Visit every page of the site after injecting. The researcher found the payload appearing beyond the settings page itself.
Why this step: a value stored in one place is often rendered in several. You cannot know the impact until you know the reach.
Step 3: Establish who sees the rendered data
The settings data is shared with Administrators or Researchers. Those roles can view the settings data.
Why this step: XSS that only affects you is close to worthless. XSS that affects an administrator is serious, because an administrator can do things you cannot. The audience is the impact.
Step 4: Document upload description (Bug 2)
In the document upload feature there is a description section. A malicious XSS payload placed in that description is stored, and it executes when someone opens the associated document. The report does not include the payload used or the request, only the location and the trigger.
Why this matters: the description field is easy to overlook. People test the file name and the title, and forget the free-text box next to the upload button. Here the code runs when a document is opened, and the report says it can affect both users and those who access the shared documents.
Step 5: AEM misconfiguration (Bug 3)
While doing recon the researcher reviewed nuclei templates and found one for an XSS vulnerability in Adobe Experience Manager present in legacy versions of the product and reachable through a misconfiguration. An automation was set up to look for it across the web, and it produced about four XSS bugs that were submitted to a bug bounty program on HackerOne. The report does not give the template, the affected URLs, the payload or the responses.
Why this matters: this is a different style of hunting. Instead of probing one site by hand, you take a known issue with a ready-made check and run it across many sites. The work is in the setup and in judging the results, not in typing payloads one at a time.
Why the bugs exist
The first bug is described as improper input validation and output encoding, allowing payloads to be executed in both a stored and reflected manner. In plain words: the site accepted the input and did not block it, and when it later put that input back into a page, it did not mark it as text. The partial reflection (>”) shows something in the handling was altering the payload rather than rejecting it, and the stored value was later rendered into pages viewed by other roles.
The second bug is the same class of failure in the document description field: user-controlled text is stored and rendered when the document is opened.
The third is a misconfiguration in legacy AEM, which the report frames as a known template-detectable issue rather than a bespoke flaw. In other words, the site was running a legacy version with a misconfiguration, and a nuclei template exists for it.
The report does not show the server-side code, so the exact encoding or sanitisation gap is not stated.
What an attacker could do
For the settings page bug, the researcher lists two consequences:
- Data exfiltration: attackers can steal sensitive user data stored in the settings page, which is accessible to administrators and researchers. This may include personal information, email addresses, or even authentication tokens.
- Session hijacking: an attacker can hijack user sessions and potentially gain unauthorised access to the victim's account.
For the document upload bug:
- Malicious code execution: documents with payloads in the description execute when unsuspecting users or collaborators open them, potentially leading to session hijacking or unauthorised access.
- Data theft: sensitive user data or credentials of individuals who view the document can be stolen.
- Document sharing: both public and private documents are affected, so sharing a document containing the payload can compromise additional users.
For the AEM bug, the reflected XSS allows script execution in the context of a user's browser when they access the affected AEM page, enabling session hijacking and data theft, and facilitating client-side attacks against visitors that could compromise personal data, credentials or access tokens.
All of these are hedged in the report with "potentially" and "may"; no proof-of-concept exfiltration is shown.
How it should be fixed
The report names improper input validation and output encoding as the issue behind the first bug but states no fix.
In everyday terms: treat everything a user types as text, always, everywhere it is shown. And keep your software current, because old versions carry old problems that everyone already knows how to look for.
Things to try elsewhere
The report closes each bug with its own checklist, which translates directly into things to try on other sites.
- Follow the payload past the filter. Once a payload survives filtering, do not stay on one page. Visit every page on the site, because the value may be rendered somewhere else entirely. A positive result is the payload appearing, parsed or intact, on a page other than the one you submitted it to.
- Vary the input handling. After a successful injection, try different encodings and payloads with special characters to see whether the vulnerability is limited to one input format or context. A positive result is the vulnerability not being limited to a specific input format or context.
- Test cookie manipulation. If the XSS allows session hijacking, experiment with cookie manipulation to check whether you can impersonate other users. The aim is to verify whether you can impersonate other users or gain unauthorised access.
- Test across browsers and devices. Some browsers have different security mechanisms that affect XSS exploitation. The aim is to ensure the vulnerability is not limited to a specific browser.
- Explore different user roles. Test from the perspective of a regular user and an administrator. The aim is to understand the extent of the impact across roles.
- Check for persistence. Verify whether the payload is stored in the database and affects other users who access the same content later. The aim is to verify whether the payload is stored persistently and affects other users later.
- Try payload diversity on upload features. Test different encodings and special characters in description fields. The aim is to assess the extent of the vulnerability with different payloads and encodings.
- Check every location, not just names and titles. Description fields, metadata and secondary inputs are easy to overlook. The aim is to check every single location on a web app, not just names and titles.
- Test multiple document types. Confirm the stored XSS is not limited to one format and affects common types such as PDF, Word or Excel. The aim is to ensure the stored XSS is not limited to specific document formats.
- Assess AEM exploitability. For the AEM misconfiguration, test different payloads and input variations to gauge severity, identify the specific URLs or endpoints where the reflected XSS appears, test across browsers, and check whether the same misconfiguration points to related flaws elsewhere in the application. The aim is to assess exploitability, identify affected URLs, test across browsers and check for related flaws.
Glossary
- Attribute: a setting inside an HTML tag, such as
srcon an image oronerroron the same tag. - Cookie: a small piece of data a website asks your browser to keep and send back with every request, often holding a session identifier.
- Cross-Site Scripting (XSS): a bug where a site lets text typed by a person be treated as code by the browser, so an attacker's instructions run in someone else's session.
- Data exfiltration: stealing data out of a system, for example by having injected code send it somewhere the attacker can read.
- Encoding: the way special characters are represented so they can travel safely; correct output encoding is the main defence against XSS.
- HackerOne: a bug bounty platform where researchers submit reports to programs.
- HTML: the language web pages are written in, using tags and attributes.
- JavaScript: the programming language browsers run, able to read the page, read cookies and send requests.
- Legacy version: an old release of a product that is no longer the current one.
- Misconfiguration: a setting left in a state that weakens security, as opposed to a flaw in the code itself.
- Nuclei: a tool that runs a library of ready-made checks (templates) against websites, looking for known issues.
- Session hijacking: taking over someone else's logged-in session, usually by stealing their session identifier.
- Stored XSS: the payload is saved by the site and shown to whoever views that data later.
- Template (nuclei): a ready-made check in the nuclei library, describing how to look for one specific issue.
- Token: a value that proves who you are; stealing one can mean stealing the account.
- User agent: the string a browser sends to identify itself, and by extension the browser and device combination being used.
- Validation: checking input on the server to decide whether it is acceptable.