Cloudflare Web Bot Auth Adds RFC 9421 Test Vectors to Prevent Header Base Serialization Bugs

Open source ↗

Development

Cloudflare’s Web Bot Auth repository added explicit verification test cases replaying Ed25519 vectors from draft-01 of the specification. The new tests address a discrepancy where verifiers constructed RFC 9421 signature bases using entire field values rather than dictionary member values. The update also documents support for both dictionary and legacy string forms during protocol migration.

Key facts

  • A bug in older deployed demo builds caused the Web Bot Auth verifier to extract whole field values (sig1="https://...") instead of member values ("https://...") when constructing component bases under RFC 9421 section 2.1.2.
  • Prior to this change, all 33 existing worker tests signed requests using the repository’s own sign() function, allowing mutual base construction bugs in sign() and verify() to pass undetected.
  • The pull request adds test cases to /v0/api/verify replaying static E.2.1 (dictionary) and E.2.2 (legacy) Ed25519 test vectors directly from draft-01.
  • The demo landing page was updated to link to the IETF draft and state acceptance of both the dictionary form and the legacy string form for migration.

Why it matters

Edge verifiers that misparse structured dictionary headers reject valid automated crawlers and agents that comply with RFC 9421 standards, causing false-positive access denials.

Trend impact

  • cryptographic bot authentication hardening
  • strict RFC 9421 header dictionary parsing compliance

Evidence