taint

Synopsis

$ taint($scalar)

Taints the specified scalar

Parameters

$scalar - the scalar to taint

Returns

The passed in scalar.

Side Effects / Notes

Examples

debug(debug() | 128); $script = 'println(' . @ARGV[0] . ');'; eval($script);

$ java -jar sleep.jar taint.sl "2 + 2" 4 $ java -Dsleep.taint=true -jar sleep.jar taint.sl "2 + 2" Warning: tainted value: '2 + 2);' from: '2 + 2' at taint.sl:3 Warning: tainted value: 'println(2 + 2);' from: '2 + 2);' at taint.sl:3 Warning: Insecure &eval: 'println(2 + 2);' is tainted at taint.sl:4

See Also