summaryrefslogtreecommitdiff
path: root/tests/logging/logscript_nonexecutable.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/logging/logscript_nonexecutable.phpt')
-rw-r--r--tests/logging/logscript_nonexecutable.phpt19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/logging/logscript_nonexecutable.phpt b/tests/logging/logscript_nonexecutable.phpt
new file mode 100644
index 0000000..c83fd7b
--- /dev/null
+++ b/tests/logging/logscript_nonexecutable.phpt
@@ -0,0 +1,19 @@
1--TEST--
2Testing: suhosin.log.script.name=NON-EXECUTABLE
3--SKIPIF--
4<?php include "../skipifnotcli.inc"; ?>
5--INI--
6suhosin.log.sapi=0
7suhosin.log.stdout=0
8suhosin.log.script=255
9suhosin.log.script.name=/etc/passwd
10suhosin.log.syslog=0
11suhosin.executor.func.blacklist=max
12--FILE--
13<?php
14 max(1,2);
15?>
16--EXPECTF--
17ALERT - logging shell script /etc/passwd is not executable - file dropped (attacker 'REMOTE_ADDR not set', file '%s', line 2)
18
19Warning: max() has been disabled for security reasons in %s on line 2 \ No newline at end of file