First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 169372
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Security <security@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Emanuele Gentili <bathym@0x656d67.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:
Flags: Requestee:
 
 
  ()

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 169372 depends on: Show dependency tree
Bug 169372 blocks: 169376

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-03-04 21:54 0000
XSS in phpinfo()

Reproducible: Always

Steps to Reproduce:
POC:

http://localhost/phpinfo.php?a[]=<script>alert(/XSS/);</script>

------- Comment #1 From Raphael Marichez 2007-03-04 23:18:00 0000 -------
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 From Raphael Marichez 2007-03-05 20:31:12 0000 -------
*** Bug 169498 has been marked as a duplicate of this bug. ***

------- Comment #3 From Raphael Marichez 2007-03-14 00:44:31 0000 -------
*** Bug 170583 has been marked as a duplicate of this bug. ***

------- Comment #4 From Hanno Boeck 2007-03-14 12:53:17 0000 -------
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 From Hanno Boeck 2007-03-16 21:13:36 0000 -------
MOPB-22, MOPB-23, MOPB-24, all unfixed in 5.2.1

------- Comment #6 From Raphael Marichez 2007-04-09 18:56:04 0000 -------
PHP team, do you know if there is a planned upstream upgrade after this Month?

------- Comment #7 From Hanno Boeck 2007-04-11 20:29:40 0000 -------
http://ilia.ws/archives/165-5.2.2RC1-Released-for-Testing.html

Probably add this p.mask'ed?

------- Comment #8 From Sune Kloppenborg Jeppesen 2007-04-30 13:14:11 0000 -------
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 From Sune Kloppenborg Jeppesen 2007-04-30 13:47:12 0000 -------
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 From Luca Longinotti 2007-04-30 15:48:12 0000 -------
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 From Jakub Moc (RETIRED) 2007-05-04 10:57:11 0000 -------
*** Bug 177015 has been marked as a duplicate of this bug. ***

------- Comment #12 From Jakub Moc (RETIRED) 2007-05-04 10:57:36 0000 -------
(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 From Jakub Moc (RETIRED) 2007-05-04 12:25:45 0000 -------
*** Bug 177016 has been marked as a duplicate of this bug. ***

------- Comment #14 From Jakub Moc (RETIRED) 2007-05-05 12:14:51 0000 -------
*** Bug 177169 has been marked as a duplicate of this bug. ***

------- Comment #15 From Jakub Moc (RETIRED) 2007-05-05 19:28:10 0000 -------
*** Bug 177201 has been marked as a duplicate of this bug. ***

------- Comment #16 From Eero Volotinen 2007-05-05 19:29:26 0000 -------
PHP 4.4.7 is also released, so fix should be out.. ??

------- Comment #17 From Jakub Moc (RETIRED) 2007-05-05 19:48:16 0000 -------
(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 From Luca Longinotti 2007-05-05 20:41:28 0000 -------
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 From Wolfram Schlich 2007-05-06 16:35:02 0000 -------
@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 From Luca Longinotti 2007-05-07 21:56:55 0000 -------
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 From Sune Kloppenborg Jeppesen 2007-05-08 05:46:11 0000 -------
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 From Sune Kloppenborg Jeppesen 2007-05-08 06:13:43 0000 -------
It also appears to fix:

CVE-2007-2509
CVE-2007-2510
CVE-2007-2511

------- Comment #23 From Tobias Scherbaum 2007-05-08 13:38:45 0000 -------
ppc stable

------- Comment #24 From Gustavo Zacarias (RETIRED) 2007-05-08 14:53:43 0000 -------
sparc stable.

------- Comment #25 From Raúl Porcel 2007-05-08 14:57:16 0000 -------
ia64 + x86 stable

------- Comment #26 From Jose Luis Rivero (yoswink) 2007-05-09 09:36:54 0000 -------
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 From Luca Longinotti 2007-05-09 10:25:49 0000 -------
(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 From Jeroen Roovers 2007-05-09 18:57:33 0000 -------
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 From Jeroen Roovers 2007-05-09 19:05:04 0000 -------
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 From Luca Longinotti 2007-05-09 20:27:24 0000 -------
(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 From Luca Longinotti 2007-05-09 20:55:45 0000 -------
AMD64 done.
Best regards, CHTEKK.

------- Comment #32 From Jose Luis Rivero (yoswink) 2007-05-10 09:12:48 0000 -------
alpha stable.

Thanks guys.

------- Comment #33 From Jeroen Roovers 2007-05-10 14:54:13 0000 -------
Both stable for HPPA.

------- Comment #34 From Markus Rothe 2007-05-12 11:29:03 0000 -------
ppc64 stable.

sorry for being late.

------- Comment #35 From Raphael Marichez 2007-05-30 19:37:29 0000 -------
oh btw, it was glsa 200705-19, sorry for the late.

First Last Prev Next    No search results available      Search page      Enter new bug