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

Commit 13b1233

Browse files
csanders-gitlifeforms
authored andcommitted
Updating tests for session fixation so they pass
(cherry picked from commit 8c62463)
1 parent 6bf9e93 commit 13b1233

File tree

1 file changed

+25
-1
lines changed
  • util/regression-tests/tests/REQUEST-943-APPLICATION-ATTACK-SESSION-FIXATION

1 file changed

+25
-1
lines changed

util/regression-tests/tests/REQUEST-943-APPLICATION-ATTACK-SESSION-FIXATION/943110.yaml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
Host: localhost
2424
Keep-Alive: '300'
2525
Proxy-Connection: keep-alive
26-
Referer: http
26+
Referer: http://www.attackersite.com/test
2727
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
2828
method: GET
2929
port: 80
@@ -65,3 +65,27 @@
6565
version: HTTP/1.0
6666
output:
6767
log_contains: id "943110"
68+
-
69+
test_title: 943110-4
70+
desc: Session Fixation Attack (943110) from old modsec regressions
71+
stages:
72+
-
73+
stage:
74+
input:
75+
dest_addr: 127.0.0.1
76+
headers:
77+
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel
78+
Accept-Encoding: gzip, deflate
79+
Accept-Language: zh-sg
80+
Content-Type: application/x-www-form-urlencoded
81+
Host: localhost
82+
Referer: http://localhost/test
83+
Keep-Alive: '300'
84+
Proxy-Connection: keep-alive
85+
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
86+
method: GET
87+
port: 80
88+
uri: /login.php?jsessionid=74B0CB414BD77D17B5680A6386EF1666
89+
version: HTTP/1.1
90+
output:
91+
no_log_contains: id "943110"

0 commit comments

Comments
 (0)