Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security FullDisclosure
[Top] [All Lists]

Re: [Full-disclosure] Re: Advisory 18/2005: PHP Cross Site Scripting (XS

Subject: Re: [Full-disclosure] Re: Advisory 18/2005: PHP Cross Site Scripting (XSS) Vulnerability in phpinfo()
Date: Mon, 31 Oct 2005 20:45:55 +0100
* Matthew Murphy:

Nice try, Stefan.

I reported this vulnerability more than three years ago (against 4.2.x)
on October 12, 2002 via the PHP bug database.  I was told to implement
an .ini setting and the bug was marked "Bogus".

For information, please see PHP Bug #19881:
http://bugs.php.net/bug.php?id=19881

For the record, Matthew's bug is CVE-2002-1954, and it appears to be
unfixed.  An URL which works with Internet Explorer against PHP 5.0.5
is:

  http://localhost/test.php/";</img><script>alert();</script>

This causes the passed JavaScript to be embedded into the PHP logo
reference.

Matthew's original exploit does not work anymore due to changes in the
way requests are handled by Apache or PHP.  However, it exposes an
issue further down in the phpinfo output, which is triggered by
Matthew's original URL:

  http://localhost/test.php?";><SCRIPT>alert(document.URL)</SCRIPT>=x

There is not sufficent public information to tell which bug of the two
is Stefan's.  I'm not sure if the second URL qualifies as "stacked
array assignment", so maybe Stefan discovered yet another problem.

PS: Firefox %-encodes the URLs before sending them to the server, so
these URLs do not work with that browser.
_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/

<Prev in Thread] Current Thread [Next in Thread>