mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
[NSE] http-adobe-coldfusion-apsa1301 missed a sanity check.
This commit is contained in:
parent
a4d51ff8d6
commit
17d115d469
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue