#42176 [NEW]: security hole in language.variables.external examples
| From: | judas dot iscariote at gmail dot com | Date: | Thu, 02 Aug 2007 11:36:44 +0000 |
| Subject: | #42176 [NEW]: security hole in language.variables.external examples | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969377211@lists.php.net to get a copy of this message | ||
From: judas dot iscariote at gmail dot com
Operating system: irrelevant
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: security hole in language.variables.external examples
Description:
------------
the "Example 12.11. More complex form variables"
in
http://php.net/manual/en/language.variables.external.php
contains a security hole.
Reproduce code:
---------------
says:
echo '<a href="'. $_SERVER['PHP_SELF'] .'">Please try
again</a>';
<form action="<?php echo $_SERVER['PHP_SELF']; ?>"
method="post">
as well print_r($_POST)...
Expected result:
----------------
manual teaching good practices always, PHP_SELF escaped as well $_POST not
printed without escaping
Actual result:
--------------
a how to permit XSS in your code.
--
Edit bug report at http://bugs.php.net/?id=42176&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42176&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42176&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42176&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42176&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=42176&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=42176&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=42176&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=42176&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=42176&r=support
Expected behavior: http://bugs.php.net/fix.php?id=42176&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=42176&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=42176&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42176&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42176&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42176&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=42176&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=42176&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=42176&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=42176&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=42176&r=mysqlcfg