1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-16 04:39:03 +00:00

[NSE] http-adobe-coldfusion-apsa1301 missed a sanity check.

This commit is contained in:
sophron
2014-08-29 16:31:37 +00:00
parent a4d51ff8d6
commit 17d115d469

View File

@@ -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