[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <86ekxavdg2.fsf@blue.stonehenge.com>
From: merlyn at stonehenge.com (Randal L. Schwartz)
Subject: Question: is this exploitable?
>>>>> "Paulo" == Paulo Pereira <pjp@...lo-pereira.net> writes:
Paulo> $sth = $dbh->prepare("insert into projects values(null,\"$project\")");
This clearly should have been:
my $sth = $dbh->prepare("insert into projects values(null, ?)");
$sth->execute($project);
which will Do The Right Thing.
Placeholders, people. Placeholders.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@...nehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
Powered by blists - more mailing lists