Overview

These are the HTTP‑level security probes used by the CLI. Each module focuses on one vulnerability class, runs a small set of targeted requests, then reports standardized findings back to the runner.

What every check does

Each check exports a run(options) function that:

  1. Receives { url, timeout, ... } from the runner.
  2. Sends crafted HTTP(S) requests using the shared client at src/utils/http-client.js.
  3. Looks for signals that match known vulnerability patterns.
  4. Returns an array of Finding objects:

Architecture

Folder layout

/http/
├── cors-scanner.js       → CORS misconfigurations
├── error-verbosity.js    → Information leakage in error responses
├── jwt-checker.js        → JWT token weaknesses
├── rate-limit-tester.js  → Missing / weak rate limiting
├── security-headers.js   → HTTP security header audit
└── tls-checker.js        → TLS/SSL configuration

Shared design choices


1) cors-scanner.js — CORS Misconfiguration Scanner

Goal: Catch overly permissive Cross‑Origin Resource Sharing policies.