mirror of
https://github.com/php/php-src.git
synced 2026-04-18 21:41:22 +02:00
26 lines
548 B
PHP
26 lines
548 B
PHP
--TEST--
|
|
Bug #70741 (Session WDDX Packet Deserialization Type Confusion Vulnerability)
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded("wddx")) print "skip";
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
ini_set('session.serialize_handler', 'wddx');
|
|
session_start();
|
|
|
|
$hashtable = str_repeat('A', 66);
|
|
$wddx = "<?xml version='1.0'?>
|
|
<wddxPacket version='1.0'>
|
|
<header/>
|
|
<data>
|
|
<string>$hashtable</string>
|
|
</data>
|
|
</wddxPacket>";
|
|
session_decode($wddx);
|
|
?>
|
|
DONE
|
|
--EXPECTF--
|
|
|
|
Warning: session_decode(): Failed to decode session object. Session has been destroyed in %s on line %d
|
|
DONE
|