Summary
The NFC authentication handshake uses a fixed challenge rather than a unique, unpredictable value for each session. If an attacker can capture a valid response and retransmit it, the system may accept the replayed response and authenticate the attacker.
Affected context
The issue occurs in NFC authentication flows where a challenge remains static across sessions instead of being freshly generated. It becomes risky when an attacker can observe a legitimate exchange and the system accepts a previously recorded response as valid for a later authentication attempt.
Exploit preconditions
- Attack surface: NFC authentication communications
- Required access: Ability to observe and retransmit a valid authentication response; whether authentication or physical proximity is required depends on the deployment
- Trigger point: The system processes a response during a subsequent authentication session
- Why exploitation is possible: A static challenge does not distinguish a fresh response from a recorded one
Why this happens
The handshake reuses a fixed challenge instead of generating a unique, unpredictable value for each session. This enables response replay and maps to CWE-294: Authentication Bypass by Capture-replay. The predictable challenge also relates to CWE-330: Use of Insufficiently Random Values, because it lacks the freshness and unpredictability needed to prevent reuse of recorded authentication material.
Potential impact
- An attacker may authenticate by replaying a previously captured response
- Unauthorized access to NFC-protected functions or resources could occur
- Actions performed under the authenticated identity may be misattributed
- Repeated exploitation could undermine confidence in the authentication system
General mitigation guidance
Mitigation generally focuses on ensuring that each authentication exchange is fresh and bound to its specific session.
Common defensive patterns include:
- Generating a unique, cryptographically unpredictable challenge for each session
- Binding authentication responses to the challenge, session context, and intended peer
- Rejecting reused, expired, or out-of-context responses
- Using established authentication protocols with replay protection
- Limiting the privileges and accessible functions available after authentication
These patterns reduce reliance on static values and limit the consequences of authentication failures.
How teams detect issues like this
High-level detection approaches include:
- Reviewing protocol implementations for constants or reused values in challenge-generation paths
- Using static analysis or code review to identify predictable randomness and missing freshness checks
- Testing whether previously observed responses are accepted in later sessions
- Enforcing protocol policies that require per-session challenges, response binding, and replay rejection
Automated security review tools may help flag predictable values and authentication flows without explicit replay defenses.

