DAST

Premium

Dynamic Application Security Testing scans running web applications for vulnerabilities. CodePhreak integrates Nuclei and OWASP ZAP for comprehensive web security scanning.

Quick Start

# Basic web app scan
$ codephreak dast --target https://app.example.com

# Full scan with all severity levels
$ codephreak dast -t https://app.example.com --scan-type full

# API-focused scan
$ codephreak dast -t https://api.example.com --scan-type api

# Output to SARIF
$ codephreak dast -t https://app.example.com --output report.sarif --format sarif

Scan Types

baseline

Quick scan for critical/high issues only

--scan-type baseline

full

Thorough scan with all severity levels

--scan-type full

api

API endpoint testing (REST, GraphQL)

--scan-type api

ajax

JavaScript-heavy single-page applications

--scan-type ajax

Authenticated Scanning

Scan authenticated pages by passing custom headers:

# With Bearer token
$ codephreak dast -t https://app.example.com \
  -H "Authorization: Bearer <your-jwt-token>"

# With API key
$ codephreak dast -t https://api.example.com \
  -H "X-API-Key: your-api-key"

# Multiple headers
$ codephreak dast -t https://app.example.com \
  -H "Authorization: Bearer token" \
  -H "X-Custom-Header: value"

Command Options

OptionDescriptionDefault
-t, --targetTarget URL to scanRequired
--scan-typeScan type (baseline, full, api, ajax)baseline
--toolScanner tool (nuclei, zap)nuclei
-H, --headerCustom headers (can be repeated)-
--templatesNuclei template directoryall
--rate-limitRequests per second100
--timeoutRequest timeout in seconds30

Using Nuclei Templates

Nuclei uses YAML templates to detect vulnerabilities. Use specific templates for targeted scanning:

# Scan for CVEs only
$ codephreak dast -t https://app.example.com --templates cves/

# Scan for exposed panels
$ codephreak dast -t https://app.example.com --templates exposed-panels/

# Use multiple template directories
$ codephreak dast -t https://app.example.com --templates cves/,misconfigurations/

Rate Limiting

Control scan speed to avoid overwhelming target servers:

# Slow scan (10 requests/second)
$ codephreak dast -t https://app.example.com --rate-limit 10

# Production-safe scan
$ codephreak dast -t https://prod.example.com --rate-limit 5 --timeout 60

Example Output

$ codephreak dast -t https://app.example.com --scan-type full

๐Ÿ” Starting DAST scan: https://app.example.com
   Tool: nuclei
   Scan Type: full

โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”“
โ”ƒ     DAST Scan Results                  โ”ƒ
โ”กโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ฉ
โ”‚ Total Findings  : 22                   โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ Critical : 1    High : 4               โ”‚
โ”‚ Medium   : 8    Low  : 6  Info: 3      โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ”ด Critical:
  โ€ข SQL Injection in /api/users?id=1

๐ŸŸ  High:
  โ€ข XSS in /search?q=<script>
  โ€ข Directory traversal in /files?path=
  โ€ข SSRF in /fetch?url=
  โ€ข Missing security headers

๐Ÿ“Š Results synced to dashboard

Vulnerabilities Detected

Injection

  • โ€ข SQL Injection
  • โ€ข Command Injection
  • โ€ข LDAP Injection
  • โ€ข XPath Injection

XSS / CSRF

  • โ€ข Reflected XSS
  • โ€ข Stored XSS
  • โ€ข DOM-based XSS
  • โ€ข CSRF vulnerabilities

Misconfigurations

  • โ€ข Missing security headers
  • โ€ข Directory listing
  • โ€ข Information disclosure
  • โ€ข Debug mode enabled

Server-Side

  • โ€ข SSRF
  • โ€ข File inclusion (LFI/RFI)
  • โ€ข Path traversal
  • โ€ข XXE

Prerequisites

Nuclei (Recommended)

brew install nuclei # macOS

OWASP ZAP (Alternative)

pip install zapcli

View Results in Dashboard

DAST findings are synced to the web dashboard with CWE references and remediation guidance.

Try the Dashboard Demo