From: Stefan Fritsch
Date: Sun, 5 Jan 2014 16:25:27 +0000 (+0000)
Subject: Merge r1554276, r1554281, r1555555 from trunk:
X-Git-Tag: 2.2.27~87
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=901bd45d051a09c29568b1ba2416b141d7278943;p=thirdparty%2Fapache%2Fhttpd.git
Merge r1554276, r1554281, r1555555 from trunk:
digest auth is only marginally more secure than basic auth.
Adjust the docs to today's reality.
mention insecure password storage as pointed out by Graham
axe one more case of digest auth being described as secure
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1555566 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/docs/manual/howto/auth.xml b/docs/manual/howto/auth.xml
index a5bf36df610..b231c59a4f2 100644
--- a/docs/manual/howto/auth.xml
+++ b/docs/manual/howto/auth.xml
@@ -209,8 +209,9 @@ module from each group.
highly sensitive data, unless accompanied by mod_ssl.
Apache supports one other authentication method:
AuthType Digest
. This method is implemented by mod_auth_digest and is much more secure. Most recent
- browsers support Digest authentication.
+ >mod_auth_digest and was intended to be more secure. This is no
+ longer the case and the connection should be encrypted with mod_ssl instead.
The AuthName directive sets
the Realm to be used in the authentication. The realm serves
diff --git a/docs/manual/mod/mod_auth_digest.xml b/docs/manual/mod/mod_auth_digest.xml
index ec1982e328f..fd0c84947e0 100644
--- a/docs/manual/mod/mod_auth_digest.xml
+++ b/docs/manual/mod/mod_auth_digest.xml
@@ -32,7 +32,14 @@
This module implements HTTP Digest Authentication
(RFC2617), and
- provides a more secure alternative to mod_auth_basic.
+ provides an alternative to mod_auth_basic where the
+ password is not transmitted as cleartext. However, this does
+ not lead to a significant security advantage over
+ basic authentication. On the other hand, the password storage on the
+ server is much less secure with digest authentication than with
+ basic authentication. Therefore, using basic auth and encrypting the
+ whole connection using mod_ssl is a much better
+ alternative.
AuthName
@@ -70,9 +77,16 @@
Note
- Digest authentication is more secure than Basic authentication,
- but only works with supporting browsers. As of this writing (December
- 2012) all major browsers support digest authentication.
+ Digest authentication was intended to be more secure than basic
+ authentication, but no longer fulfills that design goal. A
+ man-in-the-middle attacker can trivially force the browser to downgrade
+ to basic authentication. And even a passive eavesdropper can brute-force
+ the password using today's graphics hardware, because the hashing
+ algorithm used by digest authentication is too fast. Another problem is
+ that the storage of the passwords on the server is insecure. The contents
+ of a stolen htdigest file can be used directly for digest authentication.
+ Therefore using mod_ssl to encrypt the whole connection is
+ strongly recommended.