A replay attack is an attack in which someone captures a legitimate message (a login, a session token, a payment order or a radio command) and sends it again later, unchanged, so the receiving system accepts it as new. The attacker does not need to break the encryption or know the password: the message was valid once, and a system with no replay protection treats it as valid again.
How a replay attack works
Real examples
Replay attack vs. relay attack vs. man-in-the-middle
A replay attack resends a captured message later. A relay attack forwards it in real time so two distant devices believe they are close, which is how keyless-entry cars are stolen. A man-in-the-middle attacker sits between both parties and can read, change or replay messages; it is often the step that provides the traffic that is replayed afterwards.
How to prevent replay attacks
How to test whether your system accepts replayed requests
Capture a legitimate request (login, payment, password change) with a testing proxy and send it twice; then send it again after logging out and after the token expires. Every repeat should be rejected. This is one of the checks in a web application penetration test, together with session handling, authentication and API authorization.
Replay attack FAQ
What is a replay attack in simple terms?
Someone records a valid message, such as a login or a payment order, and sends it again later so the system runs it a second time.
Does encryption prevent replay attacks?
Not on its own. An encrypted message can be resent as is; what stops it is a nonce, timestamp or counter that the receiver checks.
What is the difference between a replay attack and a relay attack?
A replay resends the message later; a relay forwards it in real time to fool two devices about their distance.
Are replay attacks still a problem today?
Yes, mostly in APIs, webhooks, IoT devices and radio remotes that do not check freshness. Modern protocols such as TLS and Kerberos include protections, but applications built on top of them must add their own.
How do I know if my application is vulnerable?
Replay captured requests and confirm that the server rejects them. A penetration test covers this along with session and token handling.
Can your systems withstand a replay attack?
Our penetration tests check authentication, sessions, APIs and tokens the way an attacker would, and deliver prioritized findings with their fix.
See our penetration testing serviceSet this site as a preferred source on Google
You may also like
Comments (0)
Be the first to comment.