Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Principle:0xSteph Pentest ai Oracle Based Verification

From Leeroopedia
Knowledge Sources
Domains Security_Testing, Verification
Last Updated 2026-10-23 12:00 GMT

Overview

A verification method using machine-checkable oracles — replay, differential, OAST callback, and server-state — to deterministically confirm or reject candidate vulnerability findings.

Description

Oracle Based Verification is the principle of mapping a finding's verification recipe to a concrete, executable oracle that produces a deterministic pass/fail result. Each oracle kind targets a different class of vulnerability proof:

  • Idempotent Replay: Re-runs a PoC N times; verified iff N/N succeed. Kills single-shot luck. N scales with intensity (stealth=2, aggressive=5).
  • Differential Privilege: Compares attacker-session vs victim-session access; verified iff the attacker reads a marker only the victim should see (IDOR/BOLA).
  • OAST Callback: Confirms a recorded out-of-band interaction carrying a unique planted token (blind SSRF/XXE/SQLi).
  • Unescaped Reflection: Confirms input survives unescaped in the response N/N times — proves reflection ONLY, not XSS execution.
  • Server State: Reads back server-side state change (charged total, order created).
  • Artifact / Canary: Exploit writes a unique file/row the harness reads back; a planted secret becomes readable post-exploit.

The recipe-to-oracle dispatch is generic: a finding carries a verification_recipe dict specifying which oracle kind to build and its parameters. A finding with no recipe cannot be soundly verified and stays a candidate.

= Usage

Use this principle when:

  • You need machine-checkable proof for specific vulnerability classes
  • Different vuln classes require different proof strategies (replay for reflected, differential for IDOR, OAST for blind)
  • You want the verification system to be extensible — new oracle kinds can be added without changing the verifier
  • Replay counts should respect the operator's noise budget (stealth vs aggressive)

Theoretical Basis

Each oracle is a function from a finding's recipe to a boolean:

Oracle:Recipe×Session→OracleResult(passed,evidence)

The dispatch is a lookup table:

# Abstract dispatch (NOT real implementation)
_RECIPE_BUILDERS = {
    "idempotent_replay": build_replay_oracle,
    "differential": build_differential_oracle,
    "oast": build_oast_oracle,
    "unescaped_reflection": build_reflection_oracle,
    ...
}

def build_oracle_from_finding(finding, session, intensity):
    recipe = parse_recipe(finding)
    builder = _RECIPE_BUILDERS.get(recipe.get("oracle"))
    return builder(recipe, finding, session, intensity) if builder else None

Replay N per intensity:

N(intensity)={2stealth/safe3normal5aggressive

Related Pages

Implemented By

Uses Heuristic

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment