mirror of
https://github.com/nmap/nmap.git
synced 2025-12-18 05:29:02 +00:00
[NSE] http-adobe-coldfusion-apsa1301 missed a sanity check.
This commit is contained in:
@@ -36,7 +36,7 @@ local function get_admin_cookie(host, port, basepath)
|
|||||||
if req.header['set-cookie'] then
|
if req.header['set-cookie'] then
|
||||||
stdnse.debug1("Header 'set-cookie' detected in response.")
|
stdnse.debug1("Header 'set-cookie' detected in response.")
|
||||||
local _, _, admin_cookie = string.find(req.header['set-cookie'], ";path=/, CFAUTHORIZATION_cfadmin=(.*);path=/")
|
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)
|
stdnse.debug1("Extracted cookie:%s", admin_cookie)
|
||||||
return admin_cookie
|
return admin_cookie
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user