File tree Expand file tree Collapse file tree 5 files changed +614
-585
lines changed Expand file tree Collapse file tree 5 files changed +614
-585
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,12 @@ PHP NEWS
59
59
(Andrew Nester)
60
60
. Fixed bug #75015 (Crash in recursive iterator destructors). (Julien)
61
61
62
+ - Standard:
63
+ . Fixed bug #74103 (heap-use-after-free when unserializing invalid array
64
+ size). (Nikita)
65
+ . Fixed bug #75054 (A Denial of Service Vulnerability was found when
66
+ performing deserialization). (Nikita)
67
+
62
68
- XMLRPC:
63
69
. Fixed bug #74975 (Incorrect xmlrpc serialization for classes with declared
64
70
properties). (blar)
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ Bug #74103: heap-use-after-free when unserializing invalid array size
3
+ --FILE--
4
+ <?php
5
+ var_dump (unserialize ('a:7:{i:0;i:04;s:1:"a";i:2;i:00009617006;i:4;s:1:"a";i:4;s:1:"a";R:5;s:1:"7";R:3;s:1:"a";R:5;;s:18;}} ' ));
6
+ ?>
7
+ --EXPECTF--
8
+ Notice: unserialize(): Error at offset 68 of 100 bytes in %s on line %d
9
+ bool(false)
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ Bug #75054: A Denial of Service Vulnerability was found when performing deserialization
3
+ --FILE--
4
+ <?php
5
+ $ poc = 'a:9:{i:0;s:4:"0000";i:0;s:4:"0000";i:0;R:2;s:4:"5003";R:2;s:4:"0000";R:2;s:4:"0000";R:2;s:4:" ' ;
6
+ $ poc .= "\x06" ;
7
+ $ poc .= '000";R:2;s:4:"0000";d:0;s:4:"0000";a:9:{s:4:"0000"; ' ;
8
+ var_dump (unserialize ($ poc ));
9
+ ?>
10
+ --EXPECTF--
11
+ Notice: unserialize(): Error at offset 43 of 145 bytes in %s on line %d
12
+ bool(false)
You can’t perform that action at this time.
0 commit comments