#!/usr/bin/env bash # Vector 11: Cross-Site Request Forgery # Desc: Missing CSRF tokens in state-changing forms # Detect: Forms without CSRF tokens, SameSite=None cookies # Severity: MEDIUM # Tools: curl vector_csrf() { local target="$1" local report="$2" local findings=0 print_info "Testing CSRF vectors..." local page=$(curl -s --connect-timeout 5 --max-time 10 "$target" 2>/dev/null) # Find forms local forms=$(echo "$page" | perl -nle 'print \$& if /