pentest-client-advanced
This Claude Code skill systematically tests six advanced client-side attack vectors: CORS misconfiguration, WebSocket hijacking, clickjacking, postMessage abuse, CSS injection, and browser storage vulnerabilities. Use it during authorized penetration testing engagements to identify attack surfaces beyond basic XSS, requiring cross-origin testing environments, browser DevTools access, and proof-of-concept hosting infrastructure.
git clone --depth 1 https://github.com/jd-opensource/JoySafeter /tmp/pentest-client-advanced && cp -r /tmp/pentest-client-advanced/skills/pentest-client-advanced ~/.claude/skills/pentest-client-advancedSKILL.md
# Pentest Client Advanced ## Purpose Test advanced client-side attack surfaces beyond XSS. Six WSTG-CLNT items remain unchecked in Shannon's pipeline — these are distinct attack classes requiring different methodology than taint analysis. ## Prerequisites ### Authorization Requirements - **Written authorization** with client-side testing scope - **Test domains** for hosting PoC HTML pages (attacker-controlled origin) - **Browser testing environment** with DevTools access - **Target user simulation** — ability to test cross-origin interactions ### Environment Setup - Modern browser with DevTools (Chrome/Firefox) - Burp Suite for intercepting WebSocket and cross-origin traffic - Local HTTP server for hosting PoC pages (python -m http.server) - Playwright for automated browser-based attack verification ## Core Workflow 1. **CORS Misconfiguration**: Test reflected Origin in ACAO header, null origin bypass, subdomain wildcard abuse, credential leakage via cross-origin requests (WSTG-CLNT-07). 2. **WebSocket Security**: Missing auth on WS upgrade, CSWSH (Cross-Site WebSocket Hijacking), injection through WS messages, missing origin validation (WSTG-CLNT-10). 3. **Clickjacking**: Missing X-Frame-Options / CSP frame-ancestors, UI redressing, drag-and-drop hijacking, multi-step clickjacking chains (WSTG-CLNT-09). 4. **postMessage Abuse**: Missing origin validation in message handlers, DOM manipulation via cross-origin messages, prototype pollution through postMessage (WSTG-CLNT-11). 5. **CSS Injection**: Data exfiltration via CSS attribute selectors + background-image, CSS-based keylogging, style injection for UI manipulation (WSTG-CLNT-05). 6. **Client-Side Storage**: Sensitive data in localStorage/sessionStorage, IndexedDB exposure, service worker cache poisoning (WSTG-CLNT-06). 7. **PoC Construction**: Build HTML pages demonstrating each attack with real impact. ## WSTG Coverage | WSTG ID | Test Name | Status | |---------|-----------|--------| | WSTG-CLNT-05 | CSS Injection | ✅ | | WSTG-CLNT-06 | Client-Side Resource Manipulation | ✅ | | WSTG-CLNT-07 | Cross-Origin Resource Sharing | ✅ | | WSTG-CLNT-09 | Clickjacking | ✅ | | WSTG-CLNT-10 | WebSocket Testing | ✅ | | WSTG-CLNT-11 | Web Messaging | ✅ | ## Tool Categories | Category | Tools | Purpose | |----------|-------|---------| | CORS Testing | CORScanner, curl, custom PoC pages | CORS misconfiguration detection | | WebSocket | websocket-client (Python), Burp WS | WebSocket hijacking and injection | | Clickjacking | custom HTML iframes, Playwright | UI redressing PoC construction | | Browser Automation | Playwright, Puppeteer | Automated client-side attack verification | | Storage Analysis | Browser DevTools, custom JS | localStorage/IndexedDB inspection | ## References - `references/tools.md` - Tool function signatures and parameters - `references/workflows.md` - Attack pattern definitions and test vectors
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.
Use when you have a written implementation plan to execute in a separate session with review checkpoints
OpenClaw 安全检测工具,基于安全实践指南验证配置安全、权限隔离、网络策略、日志审计和运行时完整性
OpenClaw 攻击模式检测工具,识别数据外传、反弹Shell、文件泄露、Prompt注入、供应链投毒等高危行为,支持 MITRE ATT&CK 映射
Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.
AI/LLM application security testing — prompt injection, jailbreaking, data exfiltration, and insecure output handling per OWASP LLM Top 10.
Deep OWASP API Security Top 10 testing for REST, GraphQL, gRPC, and WebSocket APIs — BFLA, mass assignment, rate limiting, and unsafe consumption.