Post 73 - I need more time.

22 Dec 2024

Task 19, Day 13 WebSockets It came without buffering! It came without lag!

WebSockets let your browser and the server keep a contanst line of communication open. Great for things like live chat apps, real-time games, and live data feeds. Since there is no need for extra requests once the line is opened, there’s less overhead and faster communications.

WebSocket Vulnerabilities

Since WebSockets stay open and active, they can be taken advantage of if proper security measures aren’t in place. Common vulnerabilities to be aware of:

WebSocket Message Manipulation

When an attacker intercepts and changes the messages sent between browser and server. if for a transaction, they could bypass security checks, send unauthorized requests, or alter important data like usernames, payment amounts, or access levels, possibly rerouting payments to a different account. Since the WebSockets connection is open in reaal-time, all changes are immediate. Messages could also be changes to grant admin rights or insert malicious commands to take over the server.

Since WebSockets don’t have the same security protections as traditional HTTP connections, devs need to add vigorous checks like message validation or encryption. The impact of changin messages depends on how the app uses the data and what kind of data it is. Four possible outcomes include:

Exploitation (The Task)

Turn on FoxyProxy and open Burp Suite to Proxy > Intercept > Proxy settings > WebSocket interception rules. In this instance, enable intercepting both directions. Use the intercept to track different cars and inject messages for other people.

Burp Suite module.