Skip to content
XSS Write-up Beginner

CVE-2026–128660: Reflected XSS in PHPGurukul Beauty Parlour Management System

The admin invoice search page reflects the search term into an HTML heading without encoding, so markup in the term becomes live markup. An attacker could run script in an administrator's browser if the admin submits a crafted search, possibly cross-site because there is no CSRF token.

Dharmendrakumar Follow

Published on dharmstm.medium.com

Cve 2026 128660

Dharmendrakumar, on dharmstm.medium.com

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.

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.

Context

PHPGurukul's Beauty Parlour Management System (BPMS) is a PHP web application with an administrator area. One of the admin pages is an invoice search page: the administrator types a billing number into a search form, and the page answers with a heading that repeats the search term in the form Result against "…" keyword, then runs the invoice lookup.

The repeated term is the problem. The page prints it back into the HTML without encoding, so markup inside the search term becomes live markup in the browser. CVE-2026-128660 tracks this reflected cross-site scripting (XSS) issue. The page is admin-only, which limits who can be targeted, but the application also has no anti-CSRF protection, which changes how an attacker could reach it.

Setup

The advisory lists the following facts about the target and the finding:

Item Value
CVE ID CVE-2026-128660
Vulnerability type Reflected cross-site scripting (CWE-79, OWASP A03:2021)
Affected product PHPGurukul Beauty Parlour Management System
Affected version v1.1 (as listed for the CVE); the advisory describes "v1.x"
Affected endpoint admin/search-invoices.php
Affected parameter searchdata (POST), processed when search is set
Authentication required an administrator session
Researcher's assessment Low-Medium, CVSS 4.0 ≈ 4.8 (CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:A/VC:L/VI:L/VA:N)
Official severity not verified for this article
Publication reference CVE.org record; listed in the 17-18 November 2026 publication window

Testing was done on a local BPMS instance with an administrator account. The advisory states that testing used an authorised, owner-controlled lab with harmless payloads, and recommends not publishing a working PoC before a fix. The finding is numbered F-NEW-02 and is consolidated with F-NEW-04. It is dated 2026-10-30 and was prepared as a draft for coordinated disclosure. Vendor contact dates and responses are not documented in the advisory.

Finding it

The observation is simple: the invoice search page echoes the submitted search term back into a heading. Because the heading is rendered inside an HTML text context, a <script> element or an <img onerror=…> tag placed in the value is interpreted as markup by the browser. The reflection happens whether or not any invoice matches, so an attacker does not need to guess a valid billing number.

Exploitation

The advisory used a harmless alert() marker and a read-only request. The prerequisites are an administrator account on a local BPMS instance.

Step 1: authenticate as the administrator

Log in by POSTing the login form to admin/index.php. The advisory records HTTP 302 as the response.

Step 2: submit a harmless marker

The search request carries the payload in searchdata and sets search so the page processes it:

Bash
curl -s -b admin.jar -o resp.html \
  --data-urlencode "searchdata=<script>alert('F-NEW-02-XSS')</script>" \
  --data 'search=' \
  http://localhost/bpms/admin/search-invoices.php
grep -n 'Result against' resp.html

The -b admin.jar option reuses the administrator session cookie, --data-urlencode sends the payload as the searchdata form field, --data 'search=' sets the flag that makes the page run the search, and the response is saved to resp.html. The grep then pulls out the heading line so the reflection can be inspected.

Step 3: observe the response

The advisory records the payload reflected verbatim on line 230 of the response:

The angle brackets are returned as they were sent, so the browser would parse the value as a script element rather than as text.

Step 4: run a control

Searching for BENIGN_MARKER_12345 returns the plain string and no HTML-entity-encoded variants. That confirms the server performs no output encoding at all, rather than encoding only some characters.

Expected behaviour: the angle brackets are encoded (&lt;script&gt;) and nothing executes. Actual behaviour: the markup is returned unencoded.

What was and was not verified

The advisory is candid about the limits of the test. The unescaped reflection is confirmed in the raw HTTP response. The lab had no headless browser, so a rendered alert() was not captured. Browser execution is reported as highly likely by standard analysis but was not directly observed, and no screenshot was fabricated.

Root cause

The root cause is missing context-aware output encoding. The advisory's source excerpt shows the session guard, the input handling and the reflection:

Text
// admin/search-invoices.php
5:   if (strlen($_SESSION['bpmsaid']==0)) { ... }   // admin-session guard
76:  if(isset($_POST['search'])) {
79:     $sdata=$_POST['searchdata'];                 // user input, no validation
81:     <h4>Result against "<?php echo $sdata;?>" keyword</h4>   // reflected, unescaped

The value is taken from the POST body with no validation and echoed straight into the heading. Nothing in the page encodes it for the HTML context it lands in.

The same parameter is also concatenated into a SQL query on line 93. That is a separate SQL injection issue with its own CVE (CVE-2025-11507). The advisory is explicit that these are different weaknesses with different fixes: one is a failure to parameterise a query, the other a failure to encode output.

Impact

  • Confidentiality / integrity (low): script that runs in the admin's origin can act with the admin's privileges inside the page's reach.
  • Availability: none.
  • Authentication context: exploitation needs a logged-in administrator. BPMS enforces no CSRF token and sets no SameSite attribute on its session cookie, so a page controlled by an attacker could cause a logged-in admin's browser to submit the POST cross-site. If cookies were SameSite, delivery would drop to self-XSS, and the advisory notes that the impact could rise if combined with a missing HttpOnly flag.

The Low-Medium rating reflects the admin-only requirement and the need for user interaction.

Fix

Encode on output, using the encoding for the context the data lands in. Before:

Text
// Before (admin/search-invoices.php:81)
<h4>Result against "<?php echo $sdata;?>" keyword</h4>

After:

Text
// After
<h4>Result against "<?php echo htmlspecialchars($sdata, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8'); ?>" keyword</h4>

Layer these defences on top:

  • A per-session CSRF token on the search form.
  • HttpOnly, Secure and SameSite=Lax on the session cookie.
  • A Content-Security-Policy such as script-src 'self'.
  • Parameterised queries to close the separate SQL injection on the same parameter.

To retest, replay the marker request. The response should contain &lt;script&gt; and no executing script.

Variants to test

  1. Other reflected parameters on the same product. Submit a marker such as <b>marker</b> to every form field that ends up in a page heading, table cell or error message. A positive result is the marker returned with its angle brackets intact in the raw response.
  2. Attribute and JavaScript contexts. Where a value is echoed inside an attribute (value="…", href="…") or inside a script block, try a quote-breaking marker. A positive result is the quote closing the attribute or string in the raw response.
  3. Encoding controls. Send a benign string and check whether any entity-encoded variant appears in the response. If the plain string comes back unchanged, the page performs no output encoding, as in this finding.
  4. CSRF delivery. On an admin-only page, check whether the search form carries a token and whether the session cookie has a SameSite attribute. A positive result is a form that accepts a cross-site POST with no token and a cookie without SameSite, which turns the reflection into a deliverable attack.
  5. Same parameter, other sinks. Where one parameter is used in several places (here, the heading and a SQL query), test each sink separately. A positive result is a distinct weakness in each sink, each needing its own fix.

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. 19 min read.

What happened, in plain words

A web application called Beauty Parlour Management System (BPMS), made by a company called PHPGurukul, has a private area for administrators. One page in that area lets an administrator search for invoices by typing a billing number. When the page shows the result, it repeats whatever the administrator typed in a heading that reads Result against "…" keyword.

The page repeats the text exactly as it was typed, without any cleaning. That sounds harmless, but it is not. If someone types ordinary text, the page shows ordinary text. If someone types text that a browser treats as instructions (for example a piece of a web page), the browser follows those instructions instead of showing them as words. That is the whole bug: a search box that lets a visitor put live web-page code into the page.

Security people call this kind of bug reflected cross-site scripting, or reflected XSS. The word "reflected" means the bad input bounces straight back to the person who sent it, in the same response. The bug has an official tracking number, CVE-2026-128660. A CVE is a public catalogue entry for a known security flaw, so that everyone can refer to the same issue by the same name.

Two things make this bug less severe than it could be. First, the page only works for a logged-in administrator, so an attacker cannot simply send the link to any random visitor. Second, the attacker needs the administrator to do something (submit the search), which security people call user interaction. On the other hand, the application has no protection against a related trick called CSRF, which makes it easier for an attacker to get an administrator's browser to send the search without the administrator meaning to. We will come back to that.

The product and the page

BPMS is a PHP web application. PHP is a programming language commonly used to build websites; the server runs PHP code and sends the resulting web page to your browser. The application has a public side (for a parlour's customers) and an administrator side (for staff).

The administrator side includes an invoice search page. An invoice is a bill. The administrator types a billing number into a search form, and the page answers with a heading that repeats the search term in the form Result against "…" keyword, then runs the invoice lookup.

The repeated term is the problem. The page prints it back into the HTML without encoding. HTML is the language web pages are written in; the browser reads it and decides what to display. Some characters in HTML are special: for example, < and > mark the start and end of an element, such as a paragraph or a script. If a page puts user text into HTML without encoding it, those special characters keep their special meaning, and the browser treats part of the user's text as page structure or code. Encoding means replacing those special characters with safe stand-ins (for example &lt; instead of <) so the browser shows them as plain text.

CVE-2026-128660 tracks this reflected cross-site scripting issue. The page is admin-only, which limits who can be targeted, but the application also has no anti-CSRF protection, which changes how an attacker could reach it.

The facts about the finding

The advisory lists the following facts about the target and the finding:

Item Value
CVE ID CVE-2026-128660
Vulnerability type Reflected cross-site scripting (CWE-79, OWASP A03:2021)
Affected product PHPGurukul Beauty Parlour Management System
Affected version v1.1 (as listed for the CVE); the advisory describes "v1.x"
Affected endpoint admin/search-invoices.php
Affected parameter searchdata (POST), processed when search is set
Authentication required an administrator session
Researcher's assessment Low-Medium, CVSS 4.0 ≈ 4.8 (CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:A/VC:L/VI:L/VA:N)
Official severity not verified for this article
Publication reference CVE.org record; listed in the 17-18 November 2026 publication window

A few of those terms need unpacking.

An endpoint is a specific address on a website that does a specific job, like a particular counter in a large office. admin/search-invoices.php is the address of the invoice search page.

A parameter is a named piece of data sent to an endpoint. Think of a form with labelled boxes: each box has a name, and the value you type goes with that name. Here the search box is named searchdata. POST is one of the two common ways a browser sends data to a server. With POST, the data travels in the body of the request, out of sight in the address bar, rather than appended to the URL. The advisory says the parameter is processed when search is set, meaning the page only runs the search when it also receives a field called search.

Authentication means proving who you are, usually by logging in. A session is the period during which the server remembers you are logged in. It does this by giving your browser a cookie, a small piece of data the browser stores and sends back with every request to that site. Think of a session cookie as a wristband you get at an event: you show it at the door and you are let in without showing your ticket again. An administrator session means the server has a wristband that says "this person is an administrator".

CWE-79 is the entry in a public list of weakness types for cross-site scripting. OWASP A03:2021 refers to a well-known list of the top ten web application security risks, where injection (which includes XSS) sits at position three in the 2021 edition.

CVSS is a scoring system for the severity of a security flaw. The researcher's own assessment is Low-Medium, with a CVSS 4.0 score of about 4.8. The string in brackets is the breakdown of that score: network attack vector, low attack complexity, no attack requirements, high privileges required, user interaction active, and low impact on confidentiality and integrity with no impact on availability. The official severity was not verified for this article.

Testing was done on a local BPMS instance with an administrator account. A local instance means the software was installed on the tester's own computer rather than on a live public website, so nobody else's data was at risk. The advisory states that testing used an authorised, owner-controlled lab with harmless payloads, and recommends not publishing a working PoC before a fix. A payload is the piece of input an attacker sends to trigger a bug; a PoC, or proof of concept, is a demonstration that the bug is real. The finding is numbered F-NEW-02 and is consolidated with F-NEW-04. It is dated 2026-10-30 and was prepared as a draft for coordinated disclosure, which means telling the maker privately first and giving them time to fix it before details go public. Vendor contact dates and responses are not documented in the advisory.

Finding it

The observation is simple: the invoice search page echoes the submitted search term back into a heading. Because the heading is rendered inside an HTML text context, a <script> element or an <img onerror=…> tag placed in the value is interpreted as markup by the browser. The reflection happens whether or not any invoice matches, so an attacker does not need to guess a valid billing number.

Two ideas in that paragraph deserve a plain explanation.

A <script> element is the part of HTML that carries JavaScript, the programming language browsers run. When a browser meets a <script> element, it runs the code inside it. An <img onerror=…> tag is an image element with an error handler: if the image fails to load, the browser runs the code in the onerror attribute. Both are ways of getting code to run in a page.

An HTML text context means the value lands where the browser expects ordinary text between tags, not inside an attribute or inside a script. That matters because the right way to make a value safe depends on where it lands. In a text context, the dangerous characters are the angle brackets that start and end tags.

Because the reflection happens whether or not any invoice matches, an attacker does not need to guess a valid billing number. The page repeats the input before it even knows whether the search found anything.

Exploitation

The advisory used a harmless alert() marker and a read-only request. alert() is a JavaScript function that pops up a small dialog box with a message. It is the classic harmless marker: if the box appears, code ran. A read-only request means the request only asks the server to show something; it does not change or delete any data. The prerequisites are an administrator account on a local BPMS instance.

Step 1: authenticate as the administrator

Log in by POSTing the login form to admin/index.php. The advisory records HTTP 302 as the response.

Why this step: the search page only works for a logged-in administrator, so the tester first has to become one. Logging in means sending the username and password to the login endpoint. HTTP 302 is a status code meaning "redirect": the server accepted the login and told the browser to go to another page, typically the dashboard. The important side effect is that the server now hands the browser a session cookie, the wristband that proves the login.

Step 2: submit a harmless marker

The search request carries the payload in searchdata and sets search so the page processes it:

Bash
curl -s -b admin.jar -o resp.html \
  --data-urlencode "searchdata=<script>alert('F-NEW-02-XSS')</script>" \
  --data 'search=' \
  http://localhost/bpms/admin/search-invoices.php
grep -n 'Result against' resp.html

Line by line:

  • curl is a command-line tool that sends web requests and prints the responses. It is a way of using a browser's plumbing without the browser window.
  • -s means silent: do not print progress noise.
  • -b admin.jar tells curl to read cookies from a file called admin.jar. This is how the request carries the administrator's wristband from step 1. Without it, the server would treat the request as a stranger's.
  • -o resp.html saves the server's response into a file called resp.html instead of printing it on screen, so it can be searched afterwards.
  • --data-urlencode "searchdata=<script>alert('F-NEW-02-XSS')</script>" sends the payload as the searchdata form field. The --data-urlencode option also encodes characters that would otherwise confuse the request format, so the payload arrives intact. The payload itself is a script element containing an alert with the marker text F-NEW-02-XSS.
  • --data 'search=' sends the search field, empty but present. The advisory says the page processes searchdata when search is set, so this field is what makes the page run the search.
  • http://localhost/bpms/admin/search-invoices.php is the address being requested. localhost means this computer, so the request never leaves the tester's machine.
  • grep -n 'Result against' resp.html searches the saved response for the heading text and prints the matching line with its line number. This is how the tester finds the reflection quickly in a large page.

Step 3: observe the response

The advisory records the payload reflected verbatim on line 230 of the response:

Line by line:

  • <h4> and </h4> are the opening and closing tags of a level-four heading. Everything between them is the heading text.
  • Result against " is the fixed text the page always writes before the search term.
  • <script>alert('F-NEW-02-XSS')</script> is the search term, printed back exactly as it was sent. The angle brackets are still there, so the browser would see a script element rather than text and would run the code inside it.
  • " keyword is the fixed text the page writes after the search term.

The angle brackets are returned as they were sent, so the browser parses the value as a script element rather than as text. If the page had encoded them, the browser would have shown the literal characters <script>… on screen and run nothing.

Step 4: run a control

Searching for BENIGN_MARKER_12345 returns the plain string and no HTML-entity-encoded variants. That confirms the server performs no output encoding at all, rather than encoding only some characters.

Why this step: a control is a comparison case. Sending a harmless word and seeing it come back unchanged proves the page is not cleaning anything. If the page encoded only some characters, the control would show it. An HTML entity is the encoded stand-in for a special character, such as &lt; for <.

Expected behaviour: the angle brackets are encoded (&lt;script&gt;) and nothing executes. Actual behaviour: the markup is returned unencoded.

What was and was not verified

The advisory is candid about the limits of the test. The unescaped reflection is confirmed in the raw HTTP response. The lab had no headless browser, so a rendered alert() was not captured. Browser execution is reported as highly likely by standard analysis but was not directly observed, and no screenshot was fabricated.

A headless browser is a browser with no visible window, controlled by software, used to check what a page actually does when rendered. The tester did not have one, so the evidence stops at the raw response: the dangerous markup is definitely in the page, but nobody watched the dialog box appear. That distinction matters in honest reporting.

Root cause

The root cause is missing context-aware output encoding. Context-aware means choosing the encoding that fits where the value lands: text, attribute, script, URL and so on. Output encoding means transforming the value at the moment it is written into the page, so special characters lose their special meaning.

The advisory's source excerpt shows the session guard, the input handling and the reflection:

Text
// admin/search-invoices.php
5:   if (strlen($_SESSION['bpmsaid']==0)) { ... }   // admin-session guard
76:  if(isset($_POST['search'])) {
79:     $sdata=$_POST['searchdata'];                 // user input, no validation
81:     <h4>Result against "<?php echo $sdata;?>" keyword</h4>   // reflected, unescaped

Line by line:

  • Line 5 is the admin-session guard. It checks the session variable bpmsaid; if it is empty, the visitor is not logged in as an administrator and the page should not continue. This is why the bug needs an administrator session.
  • Line 76 checks whether the request contains a search field. Only then does the page run the search logic.
  • Line 79 copies the searchdata value from the POST body into a variable called $sdata. The comment notes there is no validation: nothing checks what the value contains.
  • Line 81 writes the heading and uses <?php echo $sdata;?> to insert the value. echo means "print this here". The comment notes it is reflected and unescaped: the value goes into the HTML exactly as received.

The value is taken from the POST body with no validation and echoed straight into the heading. Nothing in the page encodes it for the HTML context it lands in.

The same parameter is also concatenated into a SQL query on line 93. That is a separate SQL injection issue with its own CVE (CVE-2025-11507). SQL is the language used to talk to databases; SQL injection is when user input is pasted into a database query so that the input changes the query's meaning. The advisory is explicit that these are different weaknesses with different fixes: one is a failure to parameterise a query, the other a failure to encode output. Parameterising a query means sending the data separately from the query text, so the database treats it as data and never as instructions.

Impact

  • Confidentiality / integrity (low): script that runs in the admin's origin can act with the admin's privileges inside the page's reach.
  • Availability: none.
  • Authentication context: exploitation needs a logged-in administrator. BPMS enforces no CSRF token and sets no SameSite attribute on its session cookie, so a page controlled by an attacker could cause a logged-in admin's browser to submit the POST cross-site. If cookies were SameSite, delivery would drop to self-XSS, and the advisory notes that the impact could rise if combined with a missing HttpOnly flag.

The Low-Medium rating reflects the admin-only requirement and the need for user interaction.

In plain words:

Confidentiality means keeping data secret; integrity means keeping data correct. Script running in the admin's origin can read and change what the admin can read and change on that page. Origin is the combination of scheme, host and port that a browser uses to decide which pages may touch each other's data. Privileges are the permissions an account has; an administrator has many.

Availability means the service staying up and usable. The advisory records no impact there.

CSRF, or cross-site request forgery, is a trick where a page on one site makes your browser send a request to another site where you are logged in. Your browser automatically attaches your cookie, so the other site thinks the request came from you. A CSRF token is a secret value the form must include, which an attacker's page cannot know, so the server can tell a genuine submission from a forged one. SameSite is a cookie setting that tells the browser whether to send the cookie with requests that start from another site. HttpOnly is a cookie setting that hides the cookie from JavaScript, so a script cannot steal it.

Because BPMS has no CSRF token and no SameSite setting, an attacker's page could make a logged-in admin's browser submit the search cross-site. If cookies were SameSite, that delivery path would close and the bug would drop to self-XSS, meaning the victim would have to paste the payload into their own browser. The advisory also notes that impact could rise if the cookie lacked HttpOnly.

Fix

Encode on output, using the encoding for the context the data lands in. Before:

Text
// Before (admin/search-invoices.php:81)
<h4>Result against "<?php echo $sdata;?>" keyword</h4>

After:

Text
// After
<h4>Result against "<?php echo htmlspecialchars($sdata, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8'); ?>" keyword</h4>

Line by line:

  • htmlspecialchars is a PHP function that turns special HTML characters into their safe entity forms. It is the standard tool for encoding a value that lands in HTML text.
  • $sdata is the value to encode, the search term.
  • ENT_QUOTES tells the function to encode both single and double quotes as well as angle brackets, which matters if the value ever lands inside an attribute.
  • ENT_SUBSTITUTE tells the function to replace invalid characters with a safe placeholder instead of returning an empty string, so odd input cannot silently blank the heading.
  • 'UTF-8' names the character encoding, so the function knows how to read the bytes correctly.

With this change, the payload would come back as &lt;script&gt;alert(...)&lt;/script&gt;, which the browser would display as text.

Layer these defences on top:

  • A per-session CSRF token on the search form.
  • HttpOnly, Secure and SameSite=Lax on the session cookie.
  • A Content-Security-Policy such as script-src 'self'.
  • Parameterised queries to close the separate SQL injection on the same parameter.

A Content-Security-Policy is a header a server sends to tell the browser which sources of script are allowed. script-src 'self' means only scripts from the site's own origin may run, which blocks inline scripts like the payload. Secure on a cookie means the browser only sends it over encrypted connections.

To retest, replay the marker request. The response should contain &lt;script&gt; and no executing script.

Variants to test

  1. Other reflected parameters on the same product. Submit a marker such as <b>marker</b> to every form field that ends up in a page heading, table cell or error message. A positive result is the marker returned with its angle brackets intact in the raw response.
  2. Attribute and JavaScript contexts. Where a value is echoed inside an attribute (value="…", href="…") or inside a script block, try a quote-breaking marker. A positive result is the quote closing the attribute or string in the raw response.
  3. Encoding controls. Send a benign string and check whether any entity-encoded variant appears in the response. If the plain string comes back unchanged, the page performs no output encoding, as in this finding.
  4. CSRF delivery. On an admin-only page, check whether the search form carries a token and whether the session cookie has a SameSite attribute. A positive result is a form that accepts a cross-site POST with no token and a cookie without SameSite, which turns the reflection into a deliverable attack.
  5. Same parameter, other sinks. Where one parameter is used in several places (here, the heading and a SQL query), test each sink separately. A positive result is a distinct weakness in each sink, each needing its own fix.

A sink is the place where data finally gets used, such as being written into a page or into a query. The point of testing each sink separately is that one value can be dangerous in more than one way, and each way needs its own repair.

Glossary

  • Administrator: a user account with extra permissions, here the account that can use the admin area.
  • Attribute: a setting written inside an HTML tag, such as value="…" or onerror=….
  • Authentication: proving who you are, usually by logging in.
  • Availability: whether a service stays up and usable.
  • BPMS: Beauty Parlour Management System, the PHP web application in this report.
  • Confidentiality: keeping data secret from people who should not see it.
  • Content-Security-Policy: a server header that tells the browser which sources of script and other content are allowed.
  • Context-aware output encoding: encoding a value in the way that fits where it lands (text, attribute, script, URL).
  • Cookie: a small piece of data a site stores in your browser and gets back with later requests, often used to remember a login.
  • CSRF (cross-site request forgery): a trick where another site makes your browser send a request to a site where you are logged in.
  • CSRF token: a secret value a form must include so the server can tell a genuine submission from a forged one.
  • curl: a command-line tool for sending web requests.
  • CVE: a public catalogue entry that gives a known security flaw a unique name.
  • CVSS: a scoring system for the severity of a security flaw.
  • CWE-79: the catalogue entry for cross-site scripting in the Common Weakness Enumeration list.
  • Endpoint: a specific address on a website that performs a specific job.
  • HTML: the language web pages are written in.
  • HTML entity: an encoded stand-in for a special character, such as &lt; for <.
  • HttpOnly: a cookie setting that hides the cookie from JavaScript.
  • Integrity: keeping data correct and unaltered by unauthorised people.
  • JavaScript: the programming language browsers run.
  • localhost: the name for the computer you are using, so a request to it never leaves your machine.
  • Origin: the combination of scheme, host and port that a browser uses to decide which pages may touch each other's data.
  • OWASP A03:2021: the position of injection, which includes XSS, in the 2021 OWASP Top Ten list of web application security risks.
  • Parameter: a named piece of data sent to an endpoint, like a labelled box in a form.
  • Parameterised query: a database query where the data is sent separately from the query text, so the data is never treated as instructions.
  • Payload: the input an attacker sends to trigger a bug.
  • PHP: a programming language commonly used to build websites.
  • PoC (proof of concept): a demonstration that a bug is real.
  • POST: a way of sending data to a server in the body of the request, out of sight in the address bar.
  • Privileges: the permissions an account has.
  • Reflected XSS: cross-site scripting where the bad input bounces straight back in the same response.
  • SameSite: a cookie setting that controls whether the cookie is sent with requests that start from another site.
  • Secure: a cookie setting that sends the cookie only over encrypted connections.
  • Self-XSS: a case where the victim has to paste the payload into their own browser, so the attacker cannot deliver it.
  • Session: the period during which a server remembers you are logged in, usually via a cookie.
  • Sink: the place where data finally gets used, such as a page or a database query.
  • SQL: the language used to talk to databases.
  • SQL injection: pasting user input into a database query so the input changes the query's meaning.
  • User interaction: the victim having to do something, such as submitting a form, for an attack to work.
  • XSS (cross-site scripting): a bug where user input is treated as live page code by the browser.

More by Dharmendrakumar

View all

1 more disclosed report, best first.

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.