Skip to content
This repository has been archived by the owner on May 14, 2020. It is now read-only.

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

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

Comments

@OrySegal
Copy link

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-zz
Copy link
Contributor

Fixed in v2.2.8

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants