aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/sql/sql_plugin.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2015-06-03 10:52:34 +0200
committerTobias Brunner <tobias@strongswan.org>2015-06-05 13:44:42 +0200
commit0020b25a45783997a7ae40d58d97702492cfe4df (patch)
tree25657c24c65fdd2e2422def5ece963ff09144d20 /src/libcharon/plugins/sql/sql_plugin.c
parenta49393954f31e104080f121ec6f27d3e9fdf6050 (diff)
downloadstrongswan-0020b25a45783997a7ae40d58d97702492cfe4df.tar.bz2
strongswan-0020b25a45783997a7ae40d58d97702492cfe4df.tar.xz
ikev2: Enforce remote authentication config before proceeding with own authentication
Previously the constraints in the authentication configuration of an initiator were enforced only after all authentication rounds were complete. This posed a problem if an initiator used EAP or PSK authentication while the responder was authenticated with a certificate and if a rogue server was able to authenticate itself with a valid certificate issued by any CA the initiator trusted. Because any constraints for the responder's identity (rightid) or other aspects of the authentication (e.g. rightca) the initiator had were not enforced until the initiator itself finished its authentication such a rogue responder was able to acquire usernames and password hashes from the client. And if a client supported EAP-GTC it was even possible to trick it into sending plaintext passwords. This patch enforces the configured constraints right after the responder's authentication successfully finished for each round and before the initiator starts with its own authentication. Fixes CVE-2015-4171.
Diffstat (limited to 'src/libcharon/plugins/sql/sql_plugin.c')
0 files changed, 0 insertions, 0 deletions