Problem with Regression Test (Invalid use of backslash) - Rule 960911 - Test2 #34

Closed
OrySegal opened this Issue May 23, 2013 · 1 comment

Projects

None yet

2 participants

@OrySegal

Here is the regression test:

%test Invalid HTTP Request Line (960911) - Test 2

%remark
This test uses backslashes instead of forward slashes.
%endremark
%status 400|403
%request
GET \index.html HTTP\1.0
Host: $hostname
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,/;q=0.5
Keep-Alive: 300
Proxy-Connection: keep-alive

When sniffing the traffic over the wire, you will notice that the \index.html is being sent as simply "index.html" (backslash disappears), and the HTTP protocol version is sent as HTTP[\x01].0 - (\1 is sent as \x01 ASCII).

My guess is that the test needs some escaping for the backslash characters.

I ran a quick search on other tests, and none of them has a similar problem.

image

@rcbarnett
Contributor

Fixed in v2.2.8

@rcbarnett rcbarnett closed this Jul 1, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment