openssl/util
Emilia Kasper 380f18ed5f CVE-2016-0798: avoid memory leak in SRP
The SRP user database lookup method SRP_VBASE_get_by_user had confusing
memory management semantics; the returned pointer was sometimes newly
allocated, and sometimes owned by the callee. The calling code has no
way of distinguishing these two cases.

Specifically, SRP servers that configure a secret seed to hide valid
login information are vulnerable to a memory leak: an attacker
connecting with an invalid username can cause a memory leak of around
300 bytes per connection.

Servers that do not configure SRP, or configure SRP but do not configure
a seed are not vulnerable.

In Apache, the seed directive is known as SSLSRPUnknownUserSeed.

To mitigate the memory leak, the seed handling in SRP_VBASE_get_by_user
is now disabled even if the user has configured a seed.

Applications are advised to migrate to SRP_VBASE_get1_by_user. However,
note that OpenSSL makes no strong guarantees about the
indistinguishability of valid and invalid logins. In particular,
computations are currently not carried out in constant time.

Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-25 15:42:48 +01:00
..
pl Always build library object files with shared library cflags 2016-02-20 16:51:31 +01:00
TLSProxy Don't use 'parent' in util/dofile.pl 2016-02-21 23:08:16 +01:00
add_cr.pl
bat.sh
check-buildinfo.pl
ck_errf.pl
copy-if-different.pl
copy.pl
cygwin.sh
dirname.pl
do_ms.sh
dofile.pl The build files use %disabled, make sure to pass it to them 2016-02-22 19:26:49 +01:00
domd.in Remove all special make depend flags, as well as OPENSSL_DOING_MAKEDEPEND 2016-02-18 23:43:09 +01:00
extract-names.pl
extract-section.pl
files.pl Fix some issues near recent chomp changes. 2016-02-13 02:54:48 -05:00
fipslink.pl
fixNT.sh
FreeBSD.sh
incore
indent.pro Remove JPAKE 2016-02-17 09:46:10 -05:00
install.sh
libeay.num CVE-2016-0798: avoid memory leak in SRP 2016-02-25 15:42:48 +01:00
mk1mf.pl Build dynamic engines even if configured "no-shared" 2016-02-20 16:51:31 +01:00
mkbuildinf.pl
mkcerts.sh
mkdef.pl Remove outdated DEBUG flags. 2016-02-18 17:14:50 -05:00
mkdir-p.pl
mkerr.pl Finish 02f7114a7f 2016-02-17 17:04:47 -05:00
mkfiles.pl Remove JPAKE 2016-02-17 09:46:10 -05:00
mkrc.pl
openssl-format-source
opensslwrap.sh
perlpath.pl
point.sh
selftest.pl
shlib_wrap.sh
sp-diff.pl
speed.sh
ssleay.num
su-filter.pl
toutf8.sh
with_fallback.pm
x86asm.sh