Note on basic auth timing attacks in servant-server.

This commit is contained in:
aaron levin 2016-01-26 23:53:39 +01:00
parent ee04fbbe3a
commit dc464fa480

View file

@ -37,6 +37,10 @@ mkAuthHandler = AuthHandler
-- * Basic Auth -- * Basic Auth
-- | servant-server's current implementation of basic authentication is not
-- immune to certian kinds of timing attacks. Decoding payloads does not take
-- a fixed amount of time.
-- | The result of authentication/authorization -- | The result of authentication/authorization
data BasicAuthResult usr data BasicAuthResult usr
= Unauthorized = Unauthorized