Skip to content

Commit

Permalink
- one outstanding openssl CVE issue wrt SSLv2
Browse files Browse the repository at this point in the history
- first skeleton for DROWN testssl#305
  • Loading branch information
drwetter committed Mar 3, 2016
1 parent c4a68df commit 752e6cd
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions testssl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2147,9 +2147,8 @@ run_protocols() {
fileout "sslv2" "OK" "SSLv2 is not offered (OK)"
;;
5)
pr_svrty_high "$supported_no_ciph2";
outln " (may need further attention)" # protocol ok, but no cipher
fileout "sslv2" "WARN" "SSLv2 is $supported_no_ciph2 (may need further attention)"
pr_svrty_high "CVE-2015-3197: $supported_no_ciph2";
fileout "sslv2" "WARN" "CVE-2015-3197: SSLv2 is $supported_no_ciph2"
;;
7)
fileout "sslv2" "INFO" "SSLv2 is not tested due to lack of local support"
Expand Down Expand Up @@ -4003,9 +4002,8 @@ sslv2_sockets() {
if [[ "$lines" -gt 1 ]]; then
ciphers_detected=$((V2_HELLO_CIPHERSPEC_LENGTH / 3))
if [[ 0 -eq "$ciphers_detected" ]]; then
pr_svrty_high "supported but couldn't detect a cipher";
outln " (may need further attention)"
fileout "sslv2" "NOT OK" "SSLv2 offered (NOT ok), but could not detect a cipher (may need further attention)"
pr_svrty_highln "CVE-2015-3197: supported but couldn't detect a cipher";
fileout "sslv2" "NOT OK" "SSLv2 offered (NOT ok), CVE-2015-3197: but could not detect a cipher"
else
pr_svrty_critical "offered (NOT ok)";
outln " -- $ciphers_detected ciphers"
Expand Down Expand Up @@ -4923,6 +4921,20 @@ run_logjam() {
# TODO: perfect candidate for replacement by sockets, so is freak


run_drown() {

if [[ $VULN_COUNT -le $VULN_THRESHLD ]]; then
outln
pr_headlineln " Testing for DROWN vulnerability "
fi
# check for < openssl 1.0.2g, openssl 1.0.1s if native openssl
pr_bold " DROWN"; out " (2016-0800, CVE-2016-0703) "


return $?
}



# Browser Exploit Against SSL/TLS: don't use CBC Ciphers in SSLv3 TLSv1.0
run_beast(){
Expand Down Expand Up @@ -6780,4 +6792,4 @@ fi
exit $?


# $Id: testssl.sh,v 1.467 2016/02/22 09:44:42 dirkw Exp $
# $Id: testssl.sh,v 1.468 2016/03/03 10:39:30 dirkw Exp $

0 comments on commit 752e6cd

Please sign in to comment.