PHP : Unsafe sanitization (magic quotes)
Classification
Overview
The magic_quotes_gpc and magic_quotes_runtime options being enabled mean that PHP sanitizes the following characters: single and double quotes, backslashes and NULL, respectively, in the data received by the network (GET, POST, cookies, GPC) and from other sources (databases, file system, runtime). Such sanitization does not even reach its original purpose of protecting against SQL injection. It is even more useless to prevent other network attacks.
Due to insufficient level of protection both of these options have been deprecated and removed from PHP 6.
Enabled magic_quotes_sybase option completely disables magic_quotes_gpc, that is, double quotes, backslashes, and NULL-characters will not be sanitized. If one of the options magic_quotes_gpc and magic_quotes_runtime is enabled, then single quotes will be sanitized by adding single quotes instead of adding a backslash.
magic_quotes_sybase option is deprecated since PHP 5.3.0 and was removed in PHP 5.4.0.
