Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 169372 - dev-lang/php: Month of PHP Bugs - unresolved issues
Summary: dev-lang/php: Month of PHP Bugs - unresolved issues
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Security
URL: http://www.php-security.org/
Whiteboard: B? [glsa] jaervosz
Keywords:
: 169498 170583 177015 177016 177169 177201 (view as bug list)
Depends on:
Blocks: 169376
  Show dependency tree
 
Reported: 2007-03-04 21:54 UTC by Emanuele Gentili
Modified: 2007-06-24 23:30 UTC (History)
12 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Emanuele Gentili 2007-03-04 21:54:32 UTC
XSS in phpinfo()

Reproducible: Always

Steps to Reproduce:
POC:

http://localhost/phpinfo.php?a[]=<script>alert(/XSS/);</script>
Comment 1 Raphael Marichez (Falco) (RETIRED) gentoo-dev 2007-03-04 23:18:00 UTC
Here we'll handle the bugs for this month of PHP bugs that are not already
fixed in 4.4.6, and 5.2.1-r* at the same time (unfortunately 5.1 will contain remaining issues). Status is [upstream]

If you find bugs that are already fixed in our versions, please comment on
bug 153911 instead (status [stable])


* phpinfo() XSS
Comment 2 Raphael Marichez (Falco) (RETIRED) gentoo-dev 2007-03-05 20:31:12 UTC
*** Bug 169498 has been marked as a duplicate of this bug. ***
Comment 3 Raphael Marichez (Falco) (RETIRED) gentoo-dev 2007-03-14 00:44:31 UTC
*** Bug 170583 has been marked as a duplicate of this bug. ***
Comment 4 Hanno Böck gentoo-dev 2007-03-14 12:53:17 UTC
Two issues (20 and 21) with bypass of safemode and openbasedir with compressions:

PHP compress.bzip2:// URL Wrapper safemode and open_basedir Bypass Vulnerability 
PHP zip:// URL Wrapper safemode and open_basedir Bypass Vulnerability

Both unfixed in 5.2.1.
Comment 5 Hanno Böck gentoo-dev 2007-03-16 21:13:36 UTC
MOPB-22, MOPB-23, MOPB-24, all unfixed in 5.2.1
Comment 6 Raphael Marichez (Falco) (RETIRED) gentoo-dev 2007-04-09 18:56:04 UTC
PHP team, do you know if there is a planned upstream upgrade after this Month?
Comment 7 Hanno Böck gentoo-dev 2007-04-11 20:29:40 UTC
http://ilia.ws/archives/165-5.2.2RC1-Released-for-Testing.html

Probably add this p.mask'ed?
Comment 8 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2007-04-30 13:14:11 UTC
Mandriva just fixed these ones:

CVE-2007-1001
CVE-2007-1285
CVE-2007-1286
CVE-2007-1711
CVE-2007-1718

Btw isn't it around time that we get the PHP issues cleaned up?
Comment 9 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2007-04-30 13:47:12 UTC
And Ubuntu fixed these:
CVE-2007-1375
CVE-2007-1376
CVE-2007-1380
CVE-2007-1484
CVE-2007-1521
CVE-2007-1583
CVE-2007-1700
CVE-2007-1718
CVE-2007-1824
CVE-2007-1887
CVE-2007-1888
CVE-2007-1900
Comment 10 Luca Longinotti (RETIRED) gentoo-dev 2007-04-30 15:48:12 UTC
I know, just waiting on upstream to release 5.2.2, which should be this week, I'll keep you updated.
Best regards, CHTEKK.
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2007-05-04 10:57:11 UTC
*** Bug 177015 has been marked as a duplicate of this bug. ***
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2007-05-04 10:57:36 UTC
(In reply to comment #10)
> I know, just waiting on upstream to release 5.2.2, which should be this week,
> I'll keep you updated.
> Best regards, CHTEKK.

4.4.7/5.5.2 is out... 

Comment 13 Jakub Moc (RETIRED) gentoo-dev 2007-05-04 12:25:45 UTC
*** Bug 177016 has been marked as a duplicate of this bug. ***
Comment 14 Jakub Moc (RETIRED) gentoo-dev 2007-05-05 12:14:51 UTC
*** Bug 177169 has been marked as a duplicate of this bug. ***
Comment 15 Jakub Moc (RETIRED) gentoo-dev 2007-05-05 19:28:10 UTC
*** Bug 177201 has been marked as a duplicate of this bug. ***
Comment 16 Eero Volotinen 2007-05-05 19:29:26 UTC
PHP 4.4.7 is also released, so fix should be out.. ??
Comment 17 Jakub Moc (RETIRED) gentoo-dev 2007-05-05 19:48:16 UTC
(In reply to comment #16)
> PHP 4.4.7 is also released, so fix should be out.. ??

Please, stop producing even more unproductive noise here. 

Comment 18 Luca Longinotti (RETIRED) gentoo-dev 2007-05-05 20:41:28 UTC
Ebuilds for 4.4.7 and 5.2.2 are ready, I'm only waiting on Suhosin to update its patches, then they will go into the tree, so just be patient, thanks. ;)
Best regards, CHTEKK.
Comment 19 Wolfram Schlich (RETIRED) gentoo-dev 2007-05-06 16:35:02 UTC
@CHTEKK:
http://www.hardened-php.net/suhosin/_media/suhosin-patch-5.2.2rc2-0.9.6.2.patch.gz
applies cleanly to 5.2.2-release btw...
Comment 20 Luca Longinotti (RETIRED) gentoo-dev 2007-05-07 21:56:55 UTC
PHP 4.4.7 and PHP 5.2.2 are in the tree, with updated Suhosin support.
Enjoy as always, best regards, CHTEKK.
Comment 21 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2007-05-08 05:46:11 UTC
Thx Luca.

Arches please test and mark stable. Target keywords are:

php-4.4.7.ebuild:KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~x86-fbsd"

php-5.2.2-r1.ebuild:KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
Comment 22 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2007-05-08 06:13:43 UTC
It also appears to fix:

CVE-2007-2509
CVE-2007-2510
CVE-2007-2511
Comment 23 Tobias Scherbaum (RETIRED) gentoo-dev 2007-05-08 13:38:45 UTC
ppc stable
Comment 24 Gustavo Zacarias (RETIRED) gentoo-dev 2007-05-08 14:53:43 UTC
sparc stable.
Comment 25 Raúl Porcel (RETIRED) gentoo-dev 2007-05-08 14:57:16 UTC
ia64 + x86 stable
Comment 26 Jose Luis Rivero (yoswink) (RETIRED) gentoo-dev 2007-05-09 09:36:54 UTC
Status in alpha:

- 4.4.7 have the same failing tests that were present in bug 153911.
Marked stable.

- 5.2.1 presents some new failing tests: 

--------------------
Bug #40236 (php -a function allocation eats memory) [Zend/tests/bug40236.phpt]
Bug #16069 [ext/iconv/tests/bug16069.phpt]
iconv stream filter [ext/iconv/tests/iconv_stream_filter.phpt]
touch() tests [ext/standard/tests/file/touch.phpt]
phpinfo() CGI [ext/standard/tests/general_functions/phpinfo2.phpt]
CLI long options [sapi/cli/tests/015.phpt]
--------------------

I expect the usual Lucca's OK to go for the stable keyword in php5
Thanks.
Comment 27 Luca Longinotti (RETIRED) gentoo-dev 2007-05-09 10:25:49 UTC
(In reply to comment #26)
> Bug #40236 (php -a function allocation eats memory) [Zend/tests/bug40236.phpt]
> Bug #16069 [ext/iconv/tests/bug16069.phpt]
> iconv stream filter [ext/iconv/tests/iconv_stream_filter.phpt]
> touch() tests [ext/standard/tests/file/touch.phpt]
> phpinfo() CGI [ext/standard/tests/general_functions/phpinfo2.phpt]
> CLI long options [sapi/cli/tests/015.phpt]

The first one is the only real new one in 5.2.2, the 2 iconv tests fail since forever and the other three failures were always present in 5.2 series (at least on my x86/amd64 test boxes). php -a still works fine here, so I'd say 5.2.2 can be stabled safely.
Thanks and best regards, CHTEKK.
Comment 28 Jeroen Roovers (RETIRED) gentoo-dev 2007-05-09 18:57:33 UTC
Failed tests in dev-lang/php5.2.2-r1 on HPPA (excluding all tests mentioned above):

easter_date() [ext/calendar/tests/easter_date.phpt]
unixtojd() [ext/calendar/tests/unixtojd.phpt]
Bug #36436 DBA problem with Berkeley DB4 [ext/dba/tests/bug36436.phpt]
DBA DB4 handler test [ext/dba/tests/dba_db4.phpt]
gmp_divexact() tests (OK to fail with GMP =< 4.2.1) [ext/gmp/tests/011.phpt]
IPv6 Loopback test [ext/sockets/tests/ipv6loop.phpt]
Generic pack()/unpack() tests [ext/standard/tests/strings/pack.phpt]
microtime() function [ext/standard/tests/time/001.phpt] (warn: system dependent)
libtidy handling of 'new-blocklevel-tags' [ext/tidy/tests/024.phpt]
Comment 29 Jeroen Roovers (RETIRED) gentoo-dev 2007-05-09 19:05:04 UTC
Failed tests in dev-lang/php-4.4.7 on HPPA (excluding all tests mentioned
above):

DBA DB4 handler test [ext/dba/tests/dba_db4.phpt]
microtime() function [ext/standard/tests/time/001.phpt] (warn: system dependent)
Comment 30 Luca Longinotti (RETIRED) gentoo-dev 2007-05-09 20:27:24 UTC
(In reply to comment #28)
> Failed tests in dev-lang/php5.2.2-r1 on HPPA (excluding all tests mentioned
> above):
> 
> easter_date() [ext/calendar/tests/easter_date.phpt]
> unixtojd() [ext/calendar/tests/unixtojd.phpt]

Known to fail in 5.2 series.

> Bug #36436 DBA problem with Berkeley DB4 [ext/dba/tests/bug36436.phpt]
> DBA DB4 handler test [ext/dba/tests/dba_db4.phpt]

New ones, probably related to newer DB4's? Still, nothing to worry about.

> gmp_divexact() tests (OK to fail with GMP =< 4.2.1) [ext/gmp/tests/011.phpt]

There only is 4.2.1 in the tree, so this is expected to fail.

> IPv6 Loopback test [ext/sockets/tests/ipv6loop.phpt]
> Generic pack()/unpack() tests [ext/standard/tests/strings/pack.phpt]
> microtime() function [ext/standard/tests/time/001.phpt] (warn: system
> dependent)

System dependant, the IPv6 one I know to fail and iirc the pack stuff also changes depending on arch.

> libtidy handling of 'new-blocklevel-tags' [ext/tidy/tests/024.phpt]

Yup, because the libtidy version we have in the tree doesn't implement those tags, and the test fails.

(In reply to comment #29)
> Failed tests in dev-lang/php-4.4.7 on HPPA (excluding all tests mentioned
> above):
> 
> DBA DB4 handler test [ext/dba/tests/dba_db4.phpt]
> microtime() function [ext/standard/tests/time/001.phpt] (warn: system
> dependent)

As above, probably related to BDB version, and the other is even warned to be system dependant.
All in all, I'd say you can stable both PHPs on HPPA too without worries.
Best regards and thanks, CHTEKK.

Comment 31 Luca Longinotti (RETIRED) gentoo-dev 2007-05-09 20:55:45 UTC
AMD64 done.
Best regards, CHTEKK.
Comment 32 Jose Luis Rivero (yoswink) (RETIRED) gentoo-dev 2007-05-10 09:12:48 UTC
alpha stable.

Thanks guys.
Comment 33 Jeroen Roovers (RETIRED) gentoo-dev 2007-05-10 14:54:13 UTC
Both stable for HPPA.
Comment 34 Markus Rothe (RETIRED) gentoo-dev 2007-05-12 11:29:03 UTC
ppc64 stable.

sorry for being late.
Comment 35 Raphael Marichez (Falco) (RETIRED) gentoo-dev 2007-05-30 19:37:29 UTC
oh btw, it was glsa 200705-19, sorry for the late.