Threat level definition
Search:
Home
Bugtraq
Vulnerabilities
Mailing Lists
Jobs
Tools
Beta Programs
News
Infocus
Foundations
Microsoft
Unix
IDS
Incidents
Virus
Pen-Test
Firewalls
Columnists
Mailing Lists
Newsletters
Bugtraq
Focus on IDS
Focus on Linux
Focus on Microsoft
Forensics
Pen-test
Security Basics
Vuln Dev
Vulnerabilities
Jobs
Job Opportunities
Resumes
Job Seekers
Employers
Tools
RSS
News
Vulns
Security Research
Web Application Security
Back to list
Name:
Email:
*Note: Email address will appear as "user domain ext" to prevent harvesting.
Subject:
Message:
Re: Anyone have some basic security tips for PHP-programmers?
Nov 21 2003 10:27PM
James Mitchell (reductor askmiky com)
Hello,
For your first block of code, I recommend you use this instead:
foreach($_GET as $k=>$v) {
$v=addslashes($v);
$v=str_replace(';','',$v);
$_GET[$k]=$v;
}
And the same for _POST, how ever this will not absolutely prevent it.
One method of detection would be the following, how ever its not c...
[ more ]
Privacy Statement
Copyright 2009, SecurityFocus
For your first block of code, I recommend you use this instead:
foreach($_GET as $k=>$v) {
$v=addslashes($v);
$v=str_replace(';','',$v);
$_GET[$k]=$v;
}
And the same for _POST, how ever this will not absolutely prevent it.
One method of detection would be the following, how ever its not c...
[ more ]