feat(pipeline): DAST findings are findings of the target (#998)
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Agent integration (pull_request) Successful in 4m45s
CI / Deploy Agent (pull_request) Skipped
CI / Check (pull_request) Successful in 21m4s

A target's DAST scan stored its findings in `dast_findings` only, so they
had no control refs and never reached the findings list, the issue
tracker or the evidence pack.

- New `pipeline::dast_findings::as_finding`: a DAST finding as a finding
  of the target (scanner `dast`, `ScanType::Dast`, rule `dast-<type>`).
  - Fingerprint: target + the existing DAST fingerprint (canonical title,
    endpoint, method, parameter), so a later scan finds it again instead
    of adding it twice.
  - CWE normalised; control refs from the CWE, as for imported pentest
    findings (`import::control_refs`, now `pub(crate)`).
  - The endpoint, method and parameter go into the description; the
    request/response evidence stays with the DAST finding.
- The DAST stage stores each new one (as the ICS probe does) and counts
  it in the run's new findings.
- Docs: where DAST findings show up.

Tests:
- unit: the mapping, and which findings share a fingerprint;
- `tests/dast_findings.rs`: a target whose live URL allows any CORS
  origin gets a `dast` CWE-942 finding with `cra-ai-1`, and a second scan
  adds nothing. It fails on main.

Part 2 of #998 (point 2).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
This commit is contained in:
Sharang ParnerkarandClaude Opus 5.5 committed 2026-11-16 11:39:50 +01:00
1 parent 4f5d713bbc
commit 535c62ffb7
7 files changed
+314 -21

No files matched your search

+2
View File
@@ -71,6 +71,8 @@ Click the **Scan** button on any target row. The scan progresses through:
A target with a live URL gets a DAST scan in each of its scans, where the deployment runs DAST. The scan waits for it like for its other stages. When the DAST scan does not complete (the site cannot be reached, the login cannot be sent, or it takes longer than 20 minutes), the scan shows the DAST stage as not completed. The rest of the scan is not affected, and the DAST run keeps the reason.
Its findings are findings of the target too: they appear in the target's findings list with the other findings (scanner `dast`), count as new findings of the scan, and carry the CRA controls their CWE is evidence for. A later scan that finds the same weakness at the same endpoint, method and parameter does not add it again. The request and response evidence stays with the finding under **DAST > Findings**.
## Viewing DAST Findings
Navigate to **DAST > Findings** to see all discovered vulnerabilities. Each finding shows: