Bug #61043 [PATCH]: Regression in magic_quotes_gpc fix (CVE-2012-0831)
| From: | ondrej@php.net | Date: | Fri, 10 Feb 2012 12:44:17 +0000 |
| Subject: | Bug #61043 [PATCH]: Regression in magic_quotes_gpc fix (CVE-2012-0831) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-167384@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=61043&edit=1
ID: 61043
Patch added by: ondrej@php.net
Reported by: ondrej@php.net
Summary: Regression in magic_quotes_gpc fix (CVE-2012-0831)
Status: Open
Type: Bug
Package: Variables related
PHP Version: 5.3SVN-2012-02-10 (SVN)
Block user comment: N
Private report: N
New Comment:
The following patch has been added/updated:
Patch Name: magic_quotes_gpc-regression
Revision: 1328877857
URL: https://bugs.php.net/patch-display.php?bug=61043&patch=magic_quotes_gpc-regression&revision=1328877857
Previous Comments:
------------------------------------------------------------------------
[2012-02-10 12:43:45] ondrej@php.net
Description:
------------
Description available here:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/930115
Basically the attached patch does replace the second location of
PG(magic_quotes_gpc) with the zend_alter_ini_entry_ex:
- PG(magic_quotes_gpc) = magic_quotes_gpc;
+
+ if (magic_quotes_gpc) {
+ zend_alter_ini_entry_ex("magic_quotes_gpc",
sizeof("magic_quotes_gpc"), "1", 1, ZEND_INI_SYSTEM, ZEND_INI_STAGE_ACTIVATE, 1
TSRMLS_CC);
+ }
I could be wrong, since my knowledge of PHP internals is lim(knowledge) = 0, but
this seems to follow the logic of first change.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=61043&edit=1