From 3a569c100c5b5c359cda16e0ac311032450df02e Mon Sep 17 00:00:00 2001 From: Ben Fuhrmannek Date: Mon, 22 Sep 2014 18:51:57 +0200 Subject: test case for suhosin.cookie.max_vars --- tests/filter/input_filter_cookie_max_vars.phpt | 27 ++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 tests/filter/input_filter_cookie_max_vars.phpt diff --git a/tests/filter/input_filter_cookie_max_vars.phpt b/tests/filter/input_filter_cookie_max_vars.phpt new file mode 100644 index 0000000..9047df3 --- /dev/null +++ b/tests/filter/input_filter_cookie_max_vars.phpt @@ -0,0 +1,27 @@ +--TEST-- +suhosin input filter (suhosin.cookie.max_vars) +--SKIPIF-- + +--INI-- +suhosin.log.syslog=0 +suhosin.log.sapi=0 +suhosin.log.stdout=255 +suhosin.log.script=0 +suhosin.cookie.max_vars=3 +--COOKIE-- +a=1; b=2; c=3; d=4 +--FILE-- + +--EXPECTF-- +array(3) { + ["a"]=> + string(1) "1" + ["b"]=> + string(1) "2" + ["c"]=> + string(1) "3" +} +ALERT - configured COOKIE variable limit exceeded - dropped variable 'd' - all further COOKIE variables are dropped (attacker '%s', file '%s') +ALERT - dropped 1 request variables - (0 in GET, 0 in POST, 1 in COOKIE) (attacker 'REMOTE_ADDR not set', file '%s') -- cgit v1.3