matcha
matcha copied to clipboard
BUG: Insufficient Yubikey PIN retry lockout protection
Describe the bug: Yubikey PIN attempts not rate-limited. Attacker with physical access can brute-force PIN through matcha interface faster than Yubikey hardware limits.
To reproduce:
- Wrong PIN entered repeatedly
- No delay between attempts
- Can script rapid PIN guessing
- Bypasses Yubikey lockout if fast enough
Expected behavior:
- Implement exponential backoff on PIN failures
- Respect Yubikey retry counter
- Lock out after N failures locally
- Clear lockout only after delay or restart
Additional context:
- File: pgp/yubikey.go
- Security issue but not critical (requires physical access)
- Need retry counter tracking
- Must coordinate with Yubikey hardware limits
- Severity: Medium - physical attack vector
- Complexity: Medium-High - security-sensitive code
This has had no activity for 30 days. It will be closed in 14 days unless updated. Comment or remove the stale label to keep it open.
Closing due to inactivity. Reopen if still relevant.