From 01528718850c8528ef6d2ed5296e244d4aa7b675 Mon Sep 17 00:00:00 2001 From: Ben Fuhrmannek Date: Thu, 18 Feb 2021 15:49:39 +0100 Subject: log forging protection --- .../disable_function/disabled_function_log_forging.phpt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/tests/disable_function/disabled_function_log_forging.phpt (limited to 'src/tests/disable_function/disabled_function_log_forging.phpt') diff --git a/src/tests/disable_function/disabled_function_log_forging.phpt b/src/tests/disable_function/disabled_function_log_forging.phpt new file mode 100644 index 0000000..fcc37dc --- /dev/null +++ b/src/tests/disable_function/disabled_function_log_forging.phpt @@ -0,0 +1,14 @@ +--TEST-- +Disable functions log forging test +--SKIPIF-- + +--INI-- +sp.configuration_file={PWD}/config/disabled_function_log_forging.ini +--FILE-- +alert('0wned!');"); +--EXPECTF-- +Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'foo_log_forging', because its argument 'name' %s on line %d \ No newline at end of file -- cgit v1.3