From ae803c8b51dec9e31e99cb37cd64bd968b314669 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Sun, 10 May 2020 21:40:35 +0200 Subject: Added detection of self-signed TLS certificates --- src/lib/ndpi_utils.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/lib/ndpi_utils.c') diff --git a/src/lib/ndpi_utils.c b/src/lib/ndpi_utils.c index 4eec5d906..2fa21e220 100644 --- a/src/lib/ndpi_utils.c +++ b/src/lib/ndpi_utils.c @@ -1410,14 +1410,22 @@ const char* ndpi_risk2str(ndpi_risk risk) { switch(risk) { case NDPI_URL_POSSIBLE_XSS: return("XSS attack"); + case NDPI_URL_POSSIBLE_SQL_INJECTION: return("SQL injection"); + case NDPI_URL_POSSIBLE_RCE_INJECTION: return("RCE injection"); + case NDPI_BINARY_APPLICATION_TRANSFER: return("Binary application transfer"); + case NDPI_KNOWN_PROTOCOL_ON_NON_STANDARD_PORT: return("Known protocol on non standard port"); + + case NDPI_TLS_SELFSIGNED_CERTIFICATE: + return("Self-signed Certificate"); + default: return(""); } -- cgit v1.2.3