xss_scan
Scan any URL for cross-site scripting (XSS) vulnerabilities using Dalfox. Identify reflected, stored, and DOM-based XSS with evidence of vulnerable parameters and payload types.
Instructions
Test for Cross-Site Scripting (XSS) vulnerabilities using Dalfox.
IMPORTANT: The target parameter is named 'url' (not 'target'). Always call as: xss_scan(url="https://example.com/search?q=test")
Dalfox is a powerful XSS scanner that detects reflected, stored, and DOM-based XSS vulnerabilities using pattern analysis and DOM parsing.
Args: url: Target URL to test (e.g. "https://example.com/search?q=test"). MUST be named 'url' (not 'target'). parameter: Specific parameter to focus testing on. If empty, tests all parameters found in the URL. cookie: Session cookie for authenticated testing (e.g. "session=abc123; csrf_token=xyz"). header: Additional HTTP header (e.g. "Authorization: Bearer token"). method: HTTP method to use: GET or POST. Default: GET. data: POST body data for testing POST endpoints (e.g. "q=FUZZ&other=value" — use FUZZ as the injection placeholder, or leave as plain value and dalfox will find injection points). timeout: Override scan timeout in seconds.
Returns: XSS test results with vulnerable parameters, payload types, and evidence.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| data | No | ||
| cookie | No | ||
| header | No | ||
| method | No | GET | |
| timeout | No | ||
| parameter | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||