mailing list archives
[NSE] http library cookie bug
From: Patrik Karlsson <patrik () cqure net>
Date: Tue, 15 Mar 2011 20:33:19 +0100
I think I ran into a bug when testing some code that handles cookies.
As far as I can understand from RFC 2109 "Attributes (names) (attr) are case-insensitive."
When the http-library parses the cookie, each name value pair is processed and a table field is dynamically created
using the following code:
cookie[name] = value
I'm testing against two different servers. One returns the cookie path value all lowercase and the second using a
leading capital P.
I think it would make more sense if the cookie attributes were always stored using lowercase table field names.
So I propose the following patch:
- cookie[name] = value
+ cookie[name:lower()] = value
Sent through the nmap-dev mailing list
Archived at http://seclists.org/nmap-dev/
- [NSE] http library cookie bug Patrik Karlsson (Mar 15)