Little improve in pipelining exception
[MonkeyD.git] / qa / path_traversal03.htt
blob37e1653301a837be704198f23d4d10b6fab799c5
1 ################################################################################
2 # DESCRIPTION
3 #       Test against directory traversal (client must not be allowed to "get out" of
4 #       DocumentRoot.
6 # AUTHOR
7 #       Carlos Ghan     <charlie.brown.uy@gmail.com>
9 # DATE
10 #       March 08 2010
12 # COMMENTS
13 #       Mixing dots and %2e
14 ################################################################################
17 INCLUDE __CONFIG
19 CLIENT
20 _REQ $HOST $PORT
21 __GET /%2e%2e/../%2e./.%2e/../%2e%2e/../../%2e./.%2e/etc/motd $HTTPVER
22 __Host: $HOST
23 __Connection: close
25 _EXPECT . "HTTP/1.1 403 Forbidden"
26 _WAIT
27 END