drf-httpsig icon indicating copy to clipboard operation
drf-httpsig copied to clipboard

Validate date header to protect against replay attacks

Open cveilleux opened this issue 6 years ago • 0 comments

The http-signature security audit recommends that server implementations validate the required Date header to be within a 5 minutes skew interval.

https://web-payments.org/specs/source/http-signatures-audit/#replay-http

Excerp:

As the default scheme is to include the Date header in the signature, service providers SHOULD protect against logged replay attacks by enforcing a clock skew. The server SHOULD be synchronized with NTP, and the recommendation is to allow 300 seconds of clock skew (in either direction).

cveilleux avatar Apr 19 '18 23:04 cveilleux