mirror of
				https://github.com/drwetter/testssl.sh.git
				synced 2025-11-03 23:35:26 +01:00 
			
		
		
		
	Merge pull request #1924 from drwetter/fix_1915
Fix redundant message (BREACH) when client certificate required
This commit is contained in:
		@@ -16399,8 +16399,9 @@ run_breach() {
 | 
				
			|||||||
     [[ $VULN_COUNT -le $VULN_THRESHLD ]] && outln && pr_headlineln " Testing for BREACH (HTTP compression) vulnerability " && outln
 | 
					     [[ $VULN_COUNT -le $VULN_THRESHLD ]] && outln && pr_headlineln " Testing for BREACH (HTTP compression) vulnerability " && outln
 | 
				
			||||||
     pr_bold " BREACH"; out " ($cve)                    "
 | 
					     pr_bold " BREACH"; out " ($cve)                    "
 | 
				
			||||||
     if [[ "$CLIENT_AUTH" == required ]]; then
 | 
					     if [[ "$CLIENT_AUTH" == required ]]; then
 | 
				
			||||||
          outln "cannot be tested (server side requires x509 authentication)"
 | 
					          prln_warning "client x509-based authentication prevents this from being tested"
 | 
				
			||||||
          fileout "$jsonID" "INFO" "was not tested, server side requires x509 authentication" "$cve" "$cwe"
 | 
					          fileout "$jsonID" "WARN" "client x509-based authentication prevents this from being tested" "$cve" "$cwe"
 | 
				
			||||||
 | 
					          return 7
 | 
				
			||||||
     fi
 | 
					     fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
     [[ -z "$url" ]] && url="/"
 | 
					     [[ -z "$url" ]] && url="/"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user