blob: 6f09b50a0a9915969bbe1218cc23b0928ebe414e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--TEST--
Testing: suhosin.executor.eval.whitelist=printf via call_user_func
--SKIPIF--
<?php include "../skipifnotcli.inc"; ?>
--INI--
suhosin.log.sapi=64
suhosin.executor.eval.whitelist=call_user_func
--FILE--
<?php
eval('call_user_func("printf", "hello\n");');
?>
--EXPECTF--
ALERT - function outside of eval whitelist called: printf() (attacker 'REMOTE_ADDR not set', file '%s : eval()'d code', line 1)
Warning: printf() has been disabled for security reasons in %s : eval()'d code on line 1
|