Skip to content
CSRF Write-up Advanced

Rendezvous with a Chatbot: Chaining Contextual Risk Vulnerabilities

A loan-lending chatbot opened its WebSocket stream and issued tokens before any user authentication, and the handshake did not validate the Origin header. An attacker could host a malicious page that opens a cross-site WebSocket to the chatbot and silently receive the victim's chat, including PII, for up to an hour.

Abeer Banerjee Follow

Published on trustwave.com

Change theme to light

Abeer Banerjee (@bugasur), on trustwave.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. 9 min read.

Context

SpiderLabs was researching a loan lending application built by a major IT solutions company. The client said the application was still under development and currently broken, and it came with two generic mailinator accounts. The feature at the centre of the write-up is a chatbot embedded in the application: a small chat box hidden in the corner of the page, rendered in the same colour as the site so that it was hard to spot. The chatbot was not a decorative widget. It was wired into the client's loan lending system and let a user interact with that system in depth without logging in. Instead of credentials, the chatbot's AI identified a user by first name, the last four digits of their Social Security Number (SSN) and a zip code.

Rendezvous with a Chatbot: Chaining Contextual Risk Vulnerabilities
Rendezvous with a Chatbot: Chaining Contextual Risk Vulnerabilities From the original on trustwave.com

The chatbot was hosted on a domain outside the scope of the test, and it also communicated with a second domain that was likewise out of scope. When SpiderLabs realised this, they told the client they would stop there and go no further.

Setup

The engagement came with scope restrictions and insufficient privileges, and the application was broken for much of the testing, which is why several days of work produced only low severity problems. The application came with two generic mailinator accounts. A loan application was submitted using the user account <user1>@mailinator.com and mapped to a user. The profile was later changed by the backend application team; SpiderLabs had no standard user or admin privileges to make such a change themselves. The client also supplied some sample dummy data, which later made the attack easier. Out-of-band testing used a Burp Collaborator client, and the Google Maps API work used the tool gmapsapiscanner from https://github.com/ozguralp/gmapsapiscanner.

Finding it

During additional pre-authentication tests, the team noticed the chat box. Because the chatbot asked for no credentials and accepted a weak identity check, it was possible to interact with the loan lending system through it. The chat system was designed to be too verbose and powerful: it would repeat whatever was typed in and would offer options for alternate data to validate the user input against the loan lending system. That helpfulness made trial and error exploitation easy.

The chatbot communicated over WebSocket, and the WebSocket stream was established before anything was typed into the chatbot.

That timing is the catch. If the stream exists before the chat starts, it is already ready and an attacker only needs to capture the wss:// scheme. The Origin header for the WebSocket handshake was not validated, but it did have a unique token. The question the team left open for a few hours, while poking at other areas of the application, was how to obtain those tokens or generate the stream in order to hijack a conversation. The other areas yielded Arbitrary File Upload, Weak Input Validation, Sensitive Data in URL, Email Enumeration and SSN Enumeration.

Business logic produced another finding. Changes in the development environment, made by the client, created a flaw that had not been there before. The new profile could access loan contract statements generated by the previously mapped user. Multiple application route instances were affected, allowing steps to be skipped and unauthorised changes to be made to loan applications and contract statements.

Separately, the team stumbled on an authentication bug. Personally Identifiable Information (PII), application routes, multiple APIs and their keys, Secure Keys, templates, email, username, tenant details and loan transaction parameters were all available without authentication. Sensitive information exposed in server responses, combined with the authentication bug, made hijacking the WebSocket easier.

Exploitation

The team's analysis was that once an attacker hijacks the wss:// scheme they have a one-hour window and can silently wait until the chatbot, or any customer using that stream during the period, starts texting; the traffic then flows automatically to the attacker-controlled client.

A textbook Cross-Site WebSocket Hijacking (CSWSH) is a CSRF vulnerability on a WebSocket handshake: it arises when the handshake relies on cookies for the session and has no anti-CSRF token. Here the Origin header was invalidated, there were multiple tokens, and the handshake was not cookie based because an authorization header was used. That looked like a dead end, but it opened a few doors instead.

The workflow that generated the WebSocket stream was analysed in three steps.

Step 1: hard-coded token in the client-side HTML

The WebSocket token generation service was hard coded in the client-side HTML source code of the chatbot.

Step 2: POST body token from the hard-coded token

The token from step 1 was used to generate the next POST body token.

Step 3: bearer token and the WebSocket stream

The token generated in the POST body in step 2 became the Authorization Bearer token, and that finally provided the WebSocket stream.

Connecting the dots confirmed that the chatbot conversation could indeed be hijacked. A simple script could scrape and collect the hard-coded tokens and issue the interim requests to generate the stream, but the team chose the step-by-step approach above to highlight the design flaw to the client.

For the out-of-band test they used the following setup (image taken from portswigger.net).

The CSWSH attack script was created as shown below.

As a result of the successful CSWSH attack, evidence showed that sensitive PII (masked) was sent from the target to the attacker-controlled collaborator client.

The notable point is that CSRF would need an authenticated session, whereas here the WebSocket stream was already generated with all tokens before the user started communicating with the chatbot. This happens when the webpage is loaded without entering any credentials, and the chatbot stream starts quietly in the background. When the victim interacts with the chatbot they supply only four digits of their SSN (the rest can be replaced with *), a property zip code (which can be Googled and built into a list for brute-force attacks) and only the first name, which is easily populated. The client's sample dummy data made it even easier. After the victim provides the validation, which the chatbot helpfully hints at if it is wrong, the token is live for an hour, and that one-hour window is what an attacker exploits.

The attacker creates a malicious page on a domain they control, which establishes a cross-site WebSocket connection to the vulnerable chatbot. The chatbot handles the connection in the context of the victim user's session, so the attacker's page can send arbitrary messages to the server and read the messages received from it. Unlike standard CSRF, this is a two-way interaction with the compromised chatbot application. In this case the team simply created the socket connection and waited; the customer and the AI, which repeated the customer's PII in all conversations, started flowing automatically to the collaborator client.

The chatbot communicated with two WebSockets on different domains. The second was used for cognitive speech services, so the chatbot could listen and talk. Whatever was said was uploaded to the second WebSocket domain as an audio stream, forwarded to the first WebSocket domain and converted to a type attribute, which is how the message appears in the chatbot: a talk-to-text function. The second WebSocket was vulnerable too. While the team was testing, their private conversation was captured by the audio speech service, and the chatbot intruded and asked, "Sorry, can you repeat that again?"

Because HTTP and DNS lookups had been received at the Collaborator end, the next focus would have been Server-Side Request Forgery (SSRF), but external domains were not in the client's control, so the team drew a line and stopped. The proof of concept was already sufficient to prove the hijack.

The application had more to give. A Google Map API Key was retrieved and used as a sample to show billing over consumption. OSINT research produced a reference table of costs per individual API exploit.

A limited scope attack was performed with gmapsapiscanner.

The API key used in JavaScript to load the map is shown below, followed by the map loading successfully with that key via JavaScript.

The CAPTCHA validation system was bypassed by changing a simple "Disable" attribute on the client side, which left a brute-force window open. The final report summarised the findings from low severity through to critical bugs.

Root cause

The design flaw is that the token and stream generation happened before the chat session was opened, rather than after it, and without CSRF protection or a whitelisted Origin header. There was no separate session to differentiate events before and after the validation input the user gives the chatbot. The Origin header on the handshake was invalidated, and although a unique token was present, the token generation service was hard coded in the client-side HTML, so the chain from hard-coded token to POST body token to bearer token could be walked by anyone. The authentication bug that exposed PII, routes, API keys, secure keys, templates, tenant details and loan transaction parameters without authentication lowered the bar further. The chatbot's verbosity, repeating user input and hinting at correct validation values, made the weak identity check (first name, four SSN digits, zip code) practical to satisfy.

Impact

An attacker who hijacks the wss:// scheme can silently wait within a one-hour window until a chatbot user starts texting, and then read and send messages in that user's session through a two-way connection. In the proof of concept, masked PII flowed from the target to the attacker-controlled collaborator client. The identity check needed to activate the stream is weak: four SSN digits, a zip code and a first name, all of which can be guessed or brute-forced, helped by the client's sample dummy data. Separately, the business logic flaw let a newly mapped profile access loan contract statements generated by the previously mapped user, and allowed steps to be skipped and unauthorised changes to loan applications and contract statements across multiple route instances. The unauthenticated exposure of PII, routes, API keys, secure keys, templates, email, username, tenant details and loan transaction parameters is itself a serious exposure. The retrieved Google Map API key allowed billing over consumption to be demonstrated, and the client-side CAPTCHA bypass opened a brute-force window.

Fix

The design flaw could have been avoided if the token and stream generation, with CSRF protection and a whitelisted Origin header, had been generated after, and not before, opening the chat session.

Variants to test

  1. Load a page with an embedded chatbot and watch for a WebSocket handshake before any input. A positive result is a wss:// connection established on page load with no user interaction.
  2. Inspect the chatbot's client-side HTML for token generation logic. A positive result is a hard-coded token or a token service URL in the source.
  3. Replay the token chain: hard-coded token to POST body token to Authorization Bearer token. A positive result is a working WebSocket stream produced from values scraped from the page.
  4. Check the Origin header on the handshake. A positive result is a handshake accepted from an arbitrary origin.
  5. Host a page on a domain you control that opens a cross-site WebSocket to the target and log incoming messages. A positive result is victim session data arriving at your listener.
  6. Time the token lifetime after validation. A positive result is a stream that stays usable for a fixed window, here one hour, after the victim validates.
  7. Test the identity check with partial data: four SSN digits with the rest as *, a Googled zip code and a first name. A positive result is successful validation, especially where the chatbot hints at wrong values.
  8. Look for a second WebSocket used for speech services and check whether it is also origin-unvalidated. A positive result is audio or transcribed text reaching your listener.
  9. Search JavaScript for API keys and test them with gmapsapiscanner. A positive result is a key that loads maps or bills against the owner.
  10. Try removing or disabling client-side CAPTCHA attributes. A positive result is a form that submits without a valid CAPTCHA, enabling brute force.

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

What happened, in plain words

A security testing team was asked to look at a loan lending application, a website where people apply for loans and manage their loan contracts. The application was still being built and was partly broken, so for several days the team found only small problems. Then they noticed a tiny chat box tucked into a corner of the page, coloured the same as the rest of the site so it was almost invisible.

That chat box was a chatbot: a program that talks to you in a chat window, like the assistants on many shopping sites. This one was not decoration. It was connected to the loan lending system itself, and it let someone look at and interact with loan data without logging in. Instead of a username and password, it asked for three things: your first name, the last four digits of your Social Security Number (SSN, the American national identification number) and your zip code (postal code).

The team found that the chatbot was hosted on a domain (a website address) outside the agreed testing scope, and that it also talked to a second domain that was out of scope too. When they realised this, they told the client they would stop there and go no further.

Rendezvous with a Chatbot: Chaining Contextual Risk Vulnerabilities
Rendezvous with a Chatbot: Chaining Contextual Risk Vulnerabilities From the original on trustwave.com

What follows is the story of how a handful of small weaknesses, none of them dramatic on its own, were chained together into something serious: the ability to quietly listen in on other people's chatbot conversations and receive their personal data.

Setup

Before the technical detail, some context on how the test was set up, because it explains why progress was slow at first.

The client gave the team limited permissions and a restricted scope (the list of things they were allowed to test). The application was broken for much of the testing. The application came with two generic mailinator accounts. Mailinator is a free service that gives you a throwaway email inbox, useful for signing up to things during a test without using a real address.

A loan application was submitted using the user account <user1>@mailinator.com and mapped to a user. Later the backend application team changed that user's profile (the server side, which the team could not reach). The team had no standard user or admin privileges to make such a change themselves. The client also supplied some sample dummy data, which later made the attack easier.

Two tools were used later in the test:

  • A Burp Collaborator client. Burp is a popular tool for inspecting and modifying web traffic. Collaborator is a companion service that gives you a unique address you control, so you can see whether a target application ever tries to contact it. If your Collaborator address receives a request, you know the application reached out to a place you chose.
  • gmapsapiscanner, a small tool from https://github.com/ozguralp/gmapsapiscanner used to test Google Maps API keys.

Finding it

During extra tests performed before logging in (pre-authentication tests, meaning checks you can do without an account), the team noticed the chat box. Because the chatbot asked for no credentials and accepted a weak identity check, it was possible to interact with the loan lending system through it.

The chat system was designed to be too verbose and powerful. It would repeat whatever was typed in, and it would offer options for alternate data to validate the user input against the loan lending system. In everyday terms: if you typed something the chatbot did not recognise, it would helpfully suggest what it expected. That helpfulness made trial and error exploitation easy, because the chatbot itself told you when you were close.

The chatbot communicated over WebSocket. A WebSocket is a connection between your browser and a server that stays open in both directions, so either side can send a message at any time without asking first. Ordinary web pages work the other way round: your browser asks, the server answers, and the conversation ends. A chat window is a natural fit for WebSocket because messages need to flow both ways continuously.

The team observed that the WebSocket stream was established before anything was typed into the chatbot.

That timing is the catch. If the stream exists before the chat starts, it is already ready, and an attacker only needs to capture the wss:// scheme. The wss:// prefix is to WebSocket what https:// is to ordinary web pages: the secure, encrypted version of the address. The Origin header for the WebSocket handshake was not validated, but the handshake did carry a unique token.

Two terms need unpacking here:

  • A handshake is the short opening exchange where your browser and a server agree to start a connection. In a WebSocket handshake, the browser sends a request asking to upgrade the connection, and the server agrees.
  • The Origin header is a small piece of information the browser attaches to that request, saying which website the request came from. Servers can check it and refuse connections from websites they do not trust. Here, the server did not check it.
  • A token is a short string of characters that acts like a temporary ticket. Whoever holds the ticket can use the service, so tokens must be kept secret and should expire.

The question the team left open for a few hours, while poking at other areas of the application, was how to obtain those tokens or generate the stream in order to hijack a conversation. Hijacking here means taking over someone else's live connection and reading or sending messages through it.

The other areas yielded a list of further problems: Arbitrary File Upload (the ability to upload any file, including dangerous ones), Weak Input Validation (the site accepting input it should reject), Sensitive Data in URL (private information placed in web addresses, where it can leak through history, logs and shared links), Email Enumeration (being able to work out which email addresses have accounts) and SSN Enumeration (the same trick applied to Social Security Numbers).

Business logic produced another finding. Business logic means the rules the application follows about what a user is allowed to do, as opposed to technical bugs like crashes. Changes in the development environment, made by the client, created a flaw that had not been there before. The new profile could access loan contract statements generated by the previously mapped user. Multiple application route instances were affected, allowing steps to be skipped and unauthorised changes to be made to loan applications and contract statements. In plain words: a user account was reassigned to a different person, but the old person's loan documents stayed reachable from the new profile, and the normal sequence of steps could be bypassed.

Separately, the team stumbled on an authentication bug. Authentication is the process of proving who you are. Personally Identifiable Information (PII, any data that can identify a specific person), application routes (the internal addresses of different parts of the app), multiple APIs and their keys, Secure Keys, templates, email, username, tenant details and loan transaction parameters were all available without authentication. An API is a way for one piece of software to talk to another, like a waiter taking your order to the kitchen: you do not go into the kitchen yourself, you ask through a defined channel. An API key is a password for that channel. Sensitive information exposed in server responses, combined with the authentication bug, made hijacking the WebSocket easier.

Exploitation

The team's analysis was that once an attacker hijacks the wss:// scheme they have a one-hour window and can silently wait until the chatbot, or any customer using that stream during the period, starts texting. The traffic then flows automatically to the attacker-controlled client.

A textbook Cross-Site WebSocket Hijacking (CSWSH) is a CSRF vulnerability on a WebSocket handshake. CSRF stands for Cross-Site Request Forgery: a trick where a malicious website makes your browser send a request to another site while you are logged in there, so the request carries your identity. CSWSH is the same idea applied to a WebSocket handshake. It arises when the handshake relies on cookies for the session and has no anti-CSRF token. A cookie is a small piece of data your browser stores for a website and sends back automatically with every request, which is exactly why it can be abused: the browser sends it whether or not you intended the request.

Here the Origin header was invalidated, there were multiple tokens, and the handshake was not cookie based because an authorization header was used. An authorization header is a line in the request that carries proof of permission, typically a token, rather than relying on a cookie. That looked like a dead end, but it opened a few doors instead.

The workflow that generated the WebSocket stream was analysed in three steps.

Step 1: hard-coded token in the client-side HTML

The WebSocket token generation service was hard coded in the client-side HTML source code of the chatbot. Client-side means it runs in your browser; the HTML source is the page's underlying text, which anyone can view with the browser's "view source" feature. Hard coded means the value is written directly into that text, so it is visible to every visitor.

Step 2: POST body token from the hard-coded token

The token from step 1 was used to generate the next POST body token. A POST request is one of the standard ways a browser sends data to a server, typically when you submit a form. The body is the part of the request that carries the data. So the first token was sent to the server, and the server replied with a second token.

Step 3: bearer token and the WebSocket stream

The token generated in the POST body in step 2 became the Authorization Bearer token, and that finally provided the WebSocket stream. A bearer token is a token you present to prove permission, like showing a ticket at a door: whoever bears it is let in. The server does not check who you are beyond that.

Connecting the dots confirmed that the chatbot conversation could indeed be hijacked. A simple script could scrape and collect the hard-coded tokens and issue the interim requests to generate the stream, but the team chose the step-by-step approach above to highlight the design flaw to the client. Scrape means to read values automatically out of a web page.

For the out-of-band test they used the following setup (image taken from portswigger.net). Out-of-band testing means watching for the target application to contact a system you control, rather than looking only at the direct responses it sends back.

The CSWSH attack script was created as shown below.

As a result of the successful CSWSH attack, evidence showed that sensitive PII (masked) was sent from the target to the attacker-controlled collaborator client. Masked means the personal details were partly hidden with asterisks in the evidence, so the report could be shared without exposing real people's data.

The notable point is that CSRF would need an authenticated session, whereas here the WebSocket stream was already generated with all tokens before the user started communicating with the chatbot. This happens when the webpage is loaded without entering any credentials, and the chatbot stream starts quietly in the background. When the victim interacts with the chatbot they supply only four digits of their SSN (the rest can be replaced with *), a property zip code (which can be Googled and built into a list for brute-force attacks) and only the first name, which is easily populated. Brute force means trying many possibilities in turn until one works. The client's sample dummy data made it even easier. After the victim provides the validation, which the chatbot helpfully hints at if it is wrong, the token is live for an hour, and that one-hour window is what an attacker exploits.

The attacker creates a malicious page on a domain they control, which establishes a cross-site WebSocket connection to the vulnerable chatbot. The chatbot handles the connection in the context of the victim user's session, so the attacker's page can send arbitrary messages to the server and read the messages received from it. Unlike standard CSRF, this is a two-way interaction with the compromised chatbot application. In this case the team simply created the socket connection and waited; the customer and the AI, which repeated the customer's PII in all conversations, started flowing automatically to the collaborator client.

The chatbot communicated with two WebSockets on different domains. The second was used for cognitive speech services, so the chatbot could listen and talk. Whatever was said was uploaded to the second WebSocket domain as an audio stream, forwarded to the first WebSocket domain and converted to a type attribute, which is how the message appears in the chatbot: a talk-to-text function. The second WebSocket was vulnerable too. While the team was testing, their private conversation was captured by the audio speech service, and the chatbot intruded and asked, "Sorry, can you repeat that again?"

Because HTTP and DNS lookups had been received at the Collaborator end, the next focus would have been Server-Side Request Forgery (SSRF), but external domains were not in the client's control, so the team drew a line and stopped. SSRF is a bug where an attacker can make a server fetch a web address of the attacker's choosing, which can be used to reach internal systems. HTTP lookups are web requests, and DNS lookups are the step where a name like example.com is translated into a numeric address; both arriving at the Collaborator showed the application was reaching out. The proof of concept was already sufficient to prove the hijack.

The application had more to give. A Google Map API Key was retrieved and used as a sample to show billing over consumption. Google Maps charges the owner of an API key for usage, so a stolen key can be used to run up someone else's bill. OSINT, or Open-Source Intelligence, means gathering information from publicly available sources, and it produced a reference table of costs per individual API exploit.

A limited scope attack was performed with gmapsapiscanner.

The API key used in JavaScript to load the map is shown below, followed by the map loading successfully with that key via JavaScript. JavaScript is the programming language that runs in your browser and makes pages interactive.

The CAPTCHA validation system was also bypassed by changing a simple "Disable" attribute on the client side, which left a brute-force window open. A CAPTCHA is the puzzle with distorted letters or pictures that websites use to tell humans from automated programs. If it can be switched off from the browser, automated guessing becomes possible again.

The final report summarised the findings from low severity through to critical bugs.

Root cause

The design flaw is that the token and stream generation happened before the chat session was opened, rather than after it, and without CSRF protection or a whitelisted Origin header. Whitelisted means a fixed list of trusted origins that the server accepts and everything else is refused. There was no separate session to differentiate events before and after the validation input the user gives the chatbot. The Origin header on the handshake was invalidated, and although a unique token was present, the token generation service was hard coded in the client-side HTML, so the chain from hard-coded token to POST body token to bearer token could be walked by anyone. The authentication bug that exposed PII, routes, API keys, secure keys, templates, tenant details and loan transaction parameters without authentication lowered the bar further. The chatbot's verbosity, repeating user input and hinting at correct validation values, made the weak identity check (first name, four SSN digits, zip code) practical to satisfy.

Impact

An attacker who hijacks the wss:// scheme can silently wait within a one-hour window until a chatbot user starts texting, and then read and send messages in that user's session through a two-way connection. In the proof of concept, masked PII flowed from the target to the attacker-controlled collaborator client. The identity check needed to activate the stream is weak: four SSN digits, a zip code and a first name, all of which can be guessed or brute-forced, helped by the client's sample dummy data. Separately, the business logic flaw let a newly mapped profile access loan contract statements generated by the previously mapped user, and allowed steps to be skipped and unauthorised changes to loan applications and contract statements across multiple route instances. The unauthenticated exposure of PII, routes, API keys, secure keys, templates, email, username, tenant details and loan transaction parameters is itself a serious exposure. The retrieved Google Map API key allowed billing over consumption to be demonstrated, and the client-side CAPTCHA bypass opened a brute-force window.

Fix

The design flaw could have been avoided if the token and stream generation, with CSRF protection and a whitelisted Origin header, had been generated after, and not before, opening the chat session.

Variants to test

  1. Load a page with an embedded chatbot and watch for a WebSocket handshake before any input. A positive result is a wss:// connection established on page load with no user interaction.
  2. Inspect the chatbot's client-side HTML for token generation logic. A positive result is a hard-coded token or a token service URL in the source.
  3. Replay the token chain: hard-coded token to POST body token to Authorization Bearer token. A positive result is a working WebSocket stream produced from values scraped from the page.
  4. Check the Origin header on the handshake. A positive result is a handshake accepted from an arbitrary origin.
  5. Host a page on a domain you control that opens a cross-site WebSocket to the target and log incoming messages. A positive result is victim session data arriving at your listener.
  6. Time the token lifetime after validation. A positive result is a stream that stays usable for a fixed window, here one hour, after the victim validates.
  7. Test the identity check with partial data: four SSN digits with the rest as *, a Googled zip code and a first name. A positive result is successful validation, especially where the chatbot hints at wrong values.
  8. Look for a second WebSocket used for speech services and check whether it is also origin-unvalidated. A positive result is audio or transcribed text reaching your listener.
  9. Search JavaScript for API keys and test them with gmapsapiscanner. A positive result is a key that loads maps or bills against the owner.
  10. Try removing or disabling client-side CAPTCHA attributes. A positive result is a form that submits without a valid CAPTCHA, enabling brute force.

Glossary

  • API: a defined way for one piece of software to talk to another, like a waiter carrying orders between you and the kitchen.
  • API key: a password-like string that identifies and authorises a program using an API.
  • Arbitrary File Upload: a bug that lets someone upload any file, including harmful ones, to a server.
  • Authentication: the process of proving who you are, usually with a username and password.
  • Authorization header: a line in a web request that carries proof of permission, often a token.
  • Bearer token: a token that grants access to whoever presents it, like a ticket at a door.
  • Brute force: trying many possible values in turn until one works.
  • Burp Collaborator: a service that gives you a unique address you control, so you can see whether a target application contacts it.
  • Business logic: the rules an application follows about what users may do, as opposed to technical crashes.
  • CAPTCHA: a puzzle used to tell humans from automated programs.
  • Client-side: code that runs in your browser rather than on the server.
  • Cookie: a small piece of data your browser stores for a site and sends back automatically with requests.
  • CSRF (Cross-Site Request Forgery): a trick where a malicious site makes your browser send a request to another site while you are logged in there.
  • CSWSH (Cross-Site WebSocket Hijacking): CSRF applied to a WebSocket handshake, letting an attacker take over a live connection.
  • DNS lookup: the step where a website name is translated into a numeric address.
  • Domain: a website address, such as example.com.
  • Email enumeration: working out which email addresses have accounts by observing how the site responds.
  • Handshake: the short opening exchange where a browser and server agree to start a connection.
  • HTML: the language that describes the structure and content of a web page.
  • HTTP: the standard protocol browsers and servers use to exchange web requests and responses.
  • JavaScript: the programming language that runs in browsers and makes pages interactive.
  • Mailinator: a free service providing throwaway email inboxes.
  • Masked: partly hidden with asterisks so real personal data is not exposed.
  • Origin header: information the browser attaches to a request saying which website it came from.
  • OSINT (Open-Source Intelligence): gathering information from publicly available sources.
  • Out-of-band testing: watching for a target to contact a system you control, rather than only reading its direct responses.
  • PII (Personally Identifiable Information): any data that can identify a specific person.
  • POST request: a request that sends data to a server, typically when submitting a form.
  • Pre-authentication: tests you can perform without logging in.
  • Scope: the agreed list of systems a tester is allowed to test.
  • Scrape: to read values automatically out of a web page.
  • Session: the period during which a site remembers who you are after you log in.
  • SSN (Social Security Number): the American national identification number.
  • SSN enumeration: working out which Social Security Numbers are valid or in use by observing responses.
  • SSRF (Server-Side Request Forgery): a bug where an attacker makes a server fetch a web address of the attacker's choosing.
  • Token: a short string that acts as a temporary ticket granting access to a service.
  • WebSocket: a connection between browser and server that stays open in both directions, so either side can send messages at any time.
  • Whitelist: a fixed list of trusted values that are accepted, with everything else refused.
  • wss://: the secure, encrypted form of a WebSocket address, the equivalent of https:// for ordinary pages.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site request forgery (CSRF)

The lesson behind this report.

Another site makes a signed-in user's browser perform an action they did not intend.