Standards & ProtocolsPlatform & Ecosystem Web Bot Auth (spec repo) ·

Cloudflare Web Bot Auth Corrects RSASSA-PKCS1-v1_5 Signature Algorithm Parameter Serialization

Open source ↗

Development

Cloudflare’s Web Bot Auth reference library patched a bug where the RSA signing algorithm variant RsaV1_5Sha256 improperly serialized its algorithm identifier as rsa-pss-sha512 in signature headers. Because message signers generated an incorrect alg parameter in Signature-Input headers, verifiers either rejected the signature outright due to key mismatch checks or failed verification when attempting to process the signature using RSASSA-PSS with SHA-512. The fix aligns the Display implementation with the RFC 9421 identifier rsa-v1_5-sha256 and adds round-trip parsing tests.

Key facts

  • The Algorithm Display trait implementation previously rendered rsa-pss-sha512 for RsaV1_5Sha256 in keyring.rs.
  • MessageSigner::generate_signature_headers_content uses the Display output to populate the alg parameter in RFC 9421 Signature-Input headers.
  • The mislabeling caused verifiers checking alg against the key to reject requests, and verifiers inferring the algorithm from the alg header to fail verification by expecting RSASSA-PSS with SHA-512.
  • The issue affected custom GenerateSignature implementations such as YubiKey, cloud KMS, or web3 wallets, while the built-in [u8] signer only implements ed25519.
  • The alg parser already mapped rsa-v1_5-sha256 to RsaV1_5Sha256, but serialization did not match until PR #184 updated keyring.rs to display rsa-v1_5-sha256.

Why it matters

As automated crawlers and platform agents shift toward cryptographic header signatures instead of IP whitelisting or static user-agent tokens, exact cross-implementation parity on RFC 9421 algorithm identifiers is required to avoid widespread false-positive bot blocks.

Trend impact

  • strict RFC 9421 HTTP Message Signatures compliance
  • cryptographic crawler identity verification

Evidence