]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Always clear username/password from memory on error
authorSteffan Karger <steffan.karger@fox-it.com>
Tue, 9 May 2017 18:32:44 +0000 (20:32 +0200)
committerDavid Sommerseth <davids@openvpn.net>
Tue, 9 May 2017 19:10:59 +0000 (21:10 +0200)
commit47d80b95646a3cf62c9cd46ab589c442124c0474
tree4a76b25f65c3e67febb5d6f4026d51af00fe4876
parent174c27e7b4b2b86809ac61dd4afee01a74321e0f
Always clear username/password from memory on error

This issue was found by Quarkslab during the OSTIF-founded security audit
(issue 5.4), we are with their analysis:

"There’s a special case where the client username and password are not
erased when the server is launched without an external script or
authentication plugin. While being invalid, this configuration does not
raise any error. If the client transmits its credentials and the session
is not established (for instance if the certificates chain has not been
verified), these credentials are not erased from memory by the server.

The likelihood of an occurrence of this issue in real life is
exceptionally low since an attacker needs elevated privileges on the
server to exploit this kind of information leak. The severity of this
issue is rated as very low."

Signed-off-by: Steffan Karger <steffan.karger@fox-it.com>
Acked-by: David Sommerseth <davids@openvpn.net>
Message-Id: <1494354764-19354-1-git-send-email-steffan.karger@fox-it.com>
URL: http://www.mail-archive.com/search?l=mid&q=1494354764-19354-1-git-send-email-steffan.karger@fox-it.com
Signed-off-by: David Sommerseth <davids@openvpn.net>
(cherry picked from commit 2b60198e08a9d7e8de9beeb65a587ee34107efe8)
src/openvpn/ssl.c