BugTraq
PHPNuke SQL Injection Feb 20 2003 08:36PM
Lucas Armstrong (lucas cgishield com) (2 replies)
Re: PHPNuke SQL Injection / General SQL Injection Feb 21 2003 09:21PM
David Walker (bugtraq grax com) (1 replies)
When programming a system that creates sql strings based on passed in integers
i.e. where some_int=$variable_from_querystring
you must always do a check to confirm that that variable contains only numeric
data.

an alternate fix on sql servers that allow the format
where some_int='1234' -- (quoted numbers)
would be to do
where some_int='replace($variable_from_querystring,"'","''")'
This would cause a more than likely harmless error to occur whenever character
occurs within the passed in numeric/integer variable.

[ reply ]
Re: PHPNuke SQL Injection / General SQL Injection Feb 22 2003 09:20PM
MightyE (mightye mightye org)
Re: PHPNuke SQL Injection Feb 21 2003 07:11AM
Martin Eiszner (martin websec org)


 

Privacy Statement
Copyright 2010, SecurityFocus