in reply to Re^2: Taint and Shellshock
in thread Taint and Shellshock
Like forbidding anything which looks like an env-function.
That's what my regex does in a generic way, ie erasing magic values starting with () { .
You are free to combine it with further defense measures.°
But I doubt you can efficiently realize an individual validation for each string format (like PATH, HOST, IP, USERNAME, ...)
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
°) something like (untested)
local %ENV = map { $_ => kill_func $ENV{$_} } @whitelist
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Taint and Shellshock
by kennethk (Abbot) on Sep 29, 2014 at 18:02 UTC | |
by LanX (Saint) on Sep 29, 2014 at 20:27 UTC |