mirror of
https://github.com/mukul975/Anthropic-Cybersecurity-Skills.git
synced 2026-06-14 15:04:56 +03:00
27c6414ca5
Complete skill folder anatomy across all cybersecurity skills: - scripts/agent.py: 80-150 line Python agents using real libraries (impacket, boto3, azure-mgmt-*, kubernetes, pefile, yara, scapy, shodan, stix2, etc.) - references/api-reference.md: real API documentation with method signatures - LICENSE: MIT license for all skill folders
63 lines
2.0 KiB
Markdown
63 lines
2.0 KiB
Markdown
# API Reference: Testing for XSS Vulnerabilities with Burp Suite
|
|
|
|
## Burp Suite Professional Components
|
|
|
|
### Scanner
|
|
- Active scan: Automatically tests parameters for XSS
|
|
- Passive scan: Identifies reflected inputs and missing security headers
|
|
- Scan configuration: XSS-focused audit checks
|
|
|
|
### Repeater
|
|
- Send individual requests for manual payload testing
|
|
- Compare request/response pairs across payload variations
|
|
- Test character encoding behavior
|
|
|
|
### Intruder
|
|
- Positions: Mark injectable parameters
|
|
- Payloads: Load XSS wordlists
|
|
- Grep-Match: Flag responses containing `alert(`, `onerror=`, `<script>`
|
|
- Attack types: Sniper (single param), Battering Ram (same payload all positions)
|
|
|
|
### DOM Invader
|
|
- Built-in browser extension for DOM XSS testing
|
|
- Canary injection and sink monitoring
|
|
- Source-to-sink data flow tracing
|
|
|
|
## requests Library (Companion Script)
|
|
|
|
### Reflection Detection
|
|
```python
|
|
canary = "xsscanary12345"
|
|
resp = requests.get(f"{url}?q={canary}")
|
|
if canary in resp.text:
|
|
# Determine context and fuzz with payloads
|
|
```
|
|
|
|
### Character Encoding Test
|
|
```python
|
|
resp = requests.get(f'{url}?q={quote("<>\"\'&/")}'
|
|
unencoded = [ch for ch in '<>"\'&/' if ch in resp.text]
|
|
```
|
|
|
|
## Burp Extensions for XSS
|
|
| Extension | Purpose |
|
|
|-----------|---------|
|
|
| Hackvertor | Advanced payload encoding/transformation |
|
|
| XSS Validator | Confirm XSS execution in headless browser |
|
|
| Reflector | Highlight reflected parameters in proxy |
|
|
| Active Scan++ | Enhanced active scanning rules |
|
|
|
|
## CSP Bypass Techniques
|
|
| Weakness | Bypass |
|
|
|----------|--------|
|
|
| `unsafe-inline` | Direct `<script>` injection |
|
|
| `unsafe-eval` | Use `eval()`, `setTimeout()` |
|
|
| Whitelisted CDN | JSONP callback or Angular gadgets |
|
|
| Missing `base-uri` | `<base>` tag hijack for relative scripts |
|
|
|
|
## References
|
|
- Burp Suite docs: https://portswigger.net/burp/documentation
|
|
- PortSwigger XSS labs: https://portswigger.net/web-security/cross-site-scripting
|
|
- DOM Invader: https://portswigger.net/burp/documentation/desktop/tools/dom-invader
|
|
- Dalfox (CLI scanner): https://github.com/hahwul/dalfox
|