Project

General

Profile

Actions

Bug #418

closed

Stray backslashes should be escaped in PrintRawUriFp()

Added by Will Metcalf over 12 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Target version:
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

Actions

Also available in: Atom PDF