Actions
Bug #418
closedStray backslashes should be escaped in PrintRawUriFp()
Affected Versions:
Effort:
Difficulty:
Label:
Description
To avoid confusion with actual escaped characters this function should escape stray backslashes.
Example:
nc www.openinfosecfoundation.org 80 GET /foo/\x80 HTTP/1.0 HTTP/1.1 404 Not Found Date: Fri, 02 Mar 2012 19:41:33 GMT Server: Content-Length: 206 Connection: close Content-Type: text/html; charset=iso-8859-1
In Suricata this request will look like this in the http.log.
03/02/2012-14:24:34.652663 <hostname unknown> [**] /foo/\x80 [**] <useragent unknown> [**] <no referer> [**] GET [**] HTTP/1.0 [**] 404 [**] 206 bytes [**]....
Similar request in an Apache log..
127.0.0.1 - - [01/Feb/2012:09:23:52 -0600] "GET /foo/\\x80 HTTP/1.0" 404 484 "-" "-"
Files
Updated by Victor Julien over 12 years ago
- Description updated (diff)
- Status changed from New to Assigned
- Assignee changed from Victor Julien to Anoop Saldanha
- Estimated time set to 2.00 h
Anoop can you look into this as part of the buffer api work?
Updated by Anoop Saldanha over 12 years ago
- File 0001-bug-418-update-http-log-to-escape-backslashes.patch 0001-bug-418-update-http-log-to-escape-backslashes.patch added
patch attached.
Updated by Victor Julien over 12 years ago
- Status changed from Assigned to Closed
- % Done changed from 0 to 100
Applied, thanks Anoop!
Actions