Highlights
Auth Bypass: 2 prior fixes. Scrutinize any change in this area.
packages/onchainkit/src/minikit/hooks/useAuthenticate.ts: most-fixed (2 issues). Treat as high-risk during review.
2 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns
The bug types that recur here, drawn from past fixes, not open vulnerabilities.
Auth Bypass: The authentication mechanism was vulnerable to bypass by validating a client-provided clientFid instead of enforcing the server-side verified user FID context. Developers must ensure all authentication verifications strictly rely on validated server-side context rather than mutable client payloads.
Auth Bypass: Lack of proper nonce and FID validation during the Farcaster frame sign-in flow exposed the application to replay attacks and unauthorized session establishment. Strict validation of these parameters must be maintained across all sign-in actions.
Logic Error: Resolving Basenames and ENS names without bidirectional resolution (verifying that the resolved address maps back to the original name) allowed name-spoofing attacks. This logic must be applied consistently to all identity-mapping operations.