私は今朝攻撃を受け、私のサイトに JS が注入されました。穴を突き止めてパッチを当てようとしています。以下の PDO は安全だと思いますが、これを確認または否定できますか?
//Adding the lead to the local database
$leads = array($firstName, $lastName, $company, $state, $country, $phone, $email, $industry, $uniqueId, $comments );
$qry = $dbh->prepare(
'INSERT INTO leads (FirstName, LastName, Company, State, Country, Phone, Email, Industry, Solution, Comments) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)');
if(!($qry->execute($leads))) {
print_r($dbh->errorInfo());
}