#35138 [NEW]: Coredump on validation of empty domdocument
| From: | kpisman at gmail dot com | Date: | Mon, 07 Nov 2005 12:34:28 +0000 |
| Subject: | #35138 [NEW]: Coredump on validation of empty domdocument | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-87748@lists.php.net to get a copy of this message | ||
From: kpisman at gmail dot com
Operating system: FreeBSD 6.0
PHP version: 5.0.5
PHP Bug Type: DOM XML related
Bug description: Coredump on validation of empty domdocument
Description:
------------
Segmentation fult when empy domDocument is validated with schema.
Please note, this bug is may be potential way for low-bandwith DoS attack
for any service, that is validating input with schma.
Reproduce code:
---------------
<?
$myDom=new DomDocument();
$myDom->schemaValidate('http://www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd');
?>
Expected result:
----------------
method must return false, excution must be continued.
Actual result:
--------------
[pisman@nothing]~/testsys]php ff.php
zsh: segmentation fault (core dumped) php ff.php
bt outpuut is seems like infinite recursion.
--
Edit bug report at http://bugs.php.net/?id=35138&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35138&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=35138&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=35138&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=35138&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=35138&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35138&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35138&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35138&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35138&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35138&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=35138&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=35138&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35138&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35138&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35138&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35138&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35138&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35138&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35138&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35138&r=mysqlcfg