Testing WebSockets
WebSockets are an ongoing, two-way channel of communication between a client and backend service, such as a database or an API service. WebSockets may transmit any number of protocols and offer server-to-client message delivery without polling (the process of one program or device repeatedly checking the status of other programs or devices).
Getting ready
This lab requires a PortSwigger Academy account and ZAP to intercept requests and responses from the server to your browser.
Before starting the lab, within ZAP, go to Tools, Options, and scroll down to the WebSockets section. Here you must enable Break on enabled ‘all request/response break buttons’. Otherwise, you will not be able to capture the WebSocket request and manipulate it to complete this lab.
How to do it...
WebSockets are being used to implement the live chat feature in this online store.
In this recipe, a fictitious support representative, aka a bot, will read the chat...