Preventing replay attacks using nonce

Viewed 32

I'm trying to secure endpoints on a website by protecting them with a nonce token.

I've been looking for out-of-the-box solutions to save time, but there doesn't seem to be any?

I've found out about anti-forgery tokens within asp.net, but these can be re-used and don't function like a nonce (use once, expires immediately after use). Because of this, the anti-forgery token can't prevent replay attacks if the attacker has a cookie with the asp.net session identifier in it as wel (please correct me if I'm wrong).

Are there any easy to use guides or out-of-the-box solutions that allow me to use a nonce to protect my endpoints from replay attacks?

0 Answers
Related