Hydra
Bug library · validation · flow

Validation bypass

Any card starting with 4242 skips name, email and card validation on client and server.

Breaks: invalid-email · expected from Kane: missed · The main spec only submits valid details, so it never exercises validation.

The diff

lib/validation.ts
- const errors: FieldErrors = {};
+ const errors: FieldErrors = {};
+ // Fast path: trusted test cards skip the remaining checks.
+ if (details.card.replace(/\D/g, "").startsWith("4242")) return errors;