exploiting-websocket-vulnerabilities

Featured

Testing WebSocket implementations for authentication bypass, cross-site hijacking, injection attacks, and insecure message handling during authorized security assessments.

AI & Automation 36,355 stars 4443 forks Updated 2 months ago Apache-2.0

Install

View on GitHub

Quality Score: 94/100

Stars 20%
100
Recency 20%
75
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Exploiting WebSocket Vulnerabilities ## When to Use - During authorized penetration tests when the application uses WebSocket connections for real-time features - When assessing chat applications, live notifications, trading platforms, or collaborative editing tools - For testing WebSocket API endpoints for authentication and authorization flaws - When evaluating real-time data streams for injection vulnerabilities - During security assessments of applications using Socket.IO, SignalR, or native WebSocket APIs ## Prerequisites - **Authorization**: Written penetration testing agreement covering WebSocket testing - **Burp Suite Professional**: With WebSocket interception capability - **Browser DevTools**: Network tab for WebSocket frame inspection - **websocat**: Command-line WebSocket client (`cargo install websocat`) - **wscat**: Node.js WebSocket client (`npm install -g wscat`) - **Python websockets**: For scripting custom WebSocket attacks (`pip install websockets`) ## Workflow ### Step 1: Discover and Enumerate WebSocket Endpoints Identify WebSocket connections in the application. ```bash # Check for WebSocket upgrade in response headers curl -s -I \ -H "Upgrade: websocket" \ -H "Connection: Upgrade" \ -H "Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==" \ -H "Sec-WebSocket-Version: 13" \ "https://target.example.com/ws" # Common WebSocket endpoint paths for path in /ws /websocket /socket /socket.io /signalr /hub \ /chat /notifications /live /stream /real...

Details

Author
mukul975
Repository
mukul975/Anthropic-Cybersecurity-Skills
Created
8 months ago
Last Updated
2 months ago
Language
Python
License
Apache-2.0

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category