Skip to content
Back to skills

Api Webhooks

ASecurity

Webhook security testing — SSRF via webhook URL registration (to internal/metadata), HMAC signature-verification bypass, and replay/idempotency attacks. Tier 1. Use whenever the target lets you register a callback URL it will fetch, or signs/verifies incoming webhook events. Cross-references api-ssrf.

  • 16 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 17, 2026
securitygoawstestingapibackendsecurity

Works with

  • api
  • mcp

Security analysis

A100/100

Scanned November 17, 2026

npx -y skills add AnandJogawade/Zazy-Pentest-Plugin-for-Claude --skill api-webhooks --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Api Webhooks?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Api Webhooks
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anandjogawade-api-webhooks/badge)](https://www.skillsdirectory.com/skills/anandjogawade-api-webhooks)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: api-webhooks
description: Webhook security testing — SSRF via webhook URL registration (to internal/metadata), HMAC signature-verification bypass, and replay/idempotency attacks. Tier 1. Use whenever the target lets you register a callback URL it will fetch, or signs/verifies incoming webhook events. Cross-references api-ssrf.
---

# Webhook Security

Webhooks are server-initiated fetches to a URL you often control (SSRF) and signed events you can try to forge/replay. Payloads: `${CLAUDE_PLUGIN_ROOT}/payloads/ssrf.md`.

## Trigger phrases
`webhook, callback url, webhook ssrf, signature bypass, hmac verification, replay attack, idempotency, event dedup`

## Method
### A. SSRF via webhook URL registration (common, high-impact)
1. Register callback URLs the server will fetch:
   ```
   http://127.0.0.1/      http://[::1]/      http://10.0.0.1/      http://192.168.0.1/
   http://169.254.169.254/latest/meta-data/                 # AWS metadata
   http://metadata.google.internal/  (Metadata-Flavor: Google)
   ```
2. Confirm via response reflection or blind OAST (`api-oast-blind`): source IP of the hit = target egress.
3. **Validation gap** — validate at *registration* AND *connection* time; attack the gap: public DNS name that later resolves to a private IP (**DNS rebinding**), public URL that **redirects** to internal, IPv4 vs IPv6 separately, `http` where only `https` is expected.

### B. HMAC signature-verification bypass
1. Baseline: a valid signed event is accepted.
2. Tamper one body byte, keep the signature → must reject (confirms raw-byte verify).
3. Re-serialize (change whitespace/key order) with the original signature → must reject.
4. Missing/malformed/empty signature, wrong-secret, unsupported version → must reject.
5. Check order: invalid signature + malformed JSON should fail **before** parsing.

### C. Replay / idempotency
1. Resend a captured valid request after the allowed skew → must reject if timestamp is signed.
2. Tamper the timestamp header → signature must fail.
3. Duplicate delivery within the window → the business effect must happen **once** (idempotency / event-ID dedup).
4. Unsigned timestamp → test that event-ID dedup actually dedups.

## Bypass / evasion
SSRF filter bypasses: alt IP encodings, DNS rebinding, redirect chains on an allowed host, scheme swap (see `${CLAUDE_PLUGIN_ROOT}/payloads/ssrf.md`, `api-ssrf`). Signature bypass hinges on re-serialization and verify-order flaws.

## Modern / rare techniques
- **[RARE] Registration/connection validation gap + DNS rebinding** — passes allow-list at registration, rebinds to internal at fetch.
- **[RARE] Non-raw-byte verification** — server re-parses then re-serializes before HMAC, so re-ordered keys with the original signature still pass.
- **[RARE] Missing replay window / no dedup** — replayed payment/entitlement event triggers the effect multiple times.

## Escalation / chaining
Webhook SSRF → cloud metadata/credentials, internal pivot (`api-ssrf`). Signature bypass / replay → forged state changes (payment, entitlement, account linking), fraud (`api-abuse`). If you control the callback data, pivot to `api-unsafe-consumption`.

## Backend & tooling
Preferred Kali path (WSL+Kali / Kali-MCP / HexStrike): interactsh/Collaborator as the callback sink, a redirector + rebinding host (e.g., rbndr) for the validation gap; Burp Repeater for signature/replay. See `zazy-orchestrator`.

## Verification (background, before reporting)
SSRF: attacker-controlled URL receives internal/metadata content, or OAST hit from target egress. Signature/replay: a forged or replayed event triggers a real state change, reproduced. True positives only; OAST before concluding negative on blind SSRF.

## Evidence
SSRF: the registered URL + internal/metadata content or OAST log. Signature/replay: the tampered/replayed event + the resulting state change (or correct rejection baseline). Impact + remediation (sign raw bytes + timestamp, constant-time compare, replay window + event-ID dedup, SSRF allow-list + block internal ranges at delivery, https-only, validate on every hop).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.