Jan 21, 2016, 3:37 PM
Post #1 of 3
so was using basic cgi + lighttpd, the website runs fine except the security level is low.
Blank wekpage after turning on taint mode
Following this to turn on taint mode,
echo "#!/bin/sh\nexec perl -T $@" > /usr/sbin/perl-taint-cgi
chmod a+rx /usr/sbin/perl-taint-cgi
cgi.assign = ( ".pl" => "/usr/sbin/perl-taint-cgi" )
restart linux server, then,
0. use "#!/usr/bin/perl -wT" in index.pl
1. from linux console, run "perl -T index.pl" works fine.
The output is the same as the original one without taint mode.
2. open browser, index.pl gives me a blank webpage. Viewing source gives me empty content.
very confused, why is this please ?