From 17d115d46920a8a371263c5d3d3911644d66c187 Mon Sep 17 00:00:00 2001 From: sophron Date: Fri, 29 Aug 2014 16:31:37 +0000 Subject: [PATCH] [NSE] http-adobe-coldfusion-apsa1301 missed a sanity check. --- scripts/http-adobe-coldfusion-apsa1301.nse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/http-adobe-coldfusion-apsa1301.nse b/scripts/http-adobe-coldfusion-apsa1301.nse index cec2857d1..558b7ace1 100644 --- a/scripts/http-adobe-coldfusion-apsa1301.nse +++ b/scripts/http-adobe-coldfusion-apsa1301.nse @@ -36,7 +36,7 @@ local function get_admin_cookie(host, port, basepath) if req.header['set-cookie'] then stdnse.debug1("Header 'set-cookie' detected in response.") local _, _, admin_cookie = string.find(req.header['set-cookie'], ";path=/, CFAUTHORIZATION_cfadmin=(.*);path=/") - if admin_cookie:len() > 79 then + if admin_cookie and admin_cookie:len() > 79 then stdnse.debug1("Extracted cookie:%s", admin_cookie) return admin_cookie end