Use after free and out of bounds read in xmlrpc_decode()
Malformed input to the xmlrpc_decode() function could trigger a use-after-free and an out-of-bounds read. An attacker could potentially achieve code execution if untrusted input is parsed via this function.
- Triaged in 4 months
- Fixed in 21 months
- Paid in 21 months
- Disclosed after 22 months
Malformed input can lead to use after free and out of bounds memory errors.
This has been fixed with the latest updates of PHP (7.1.26/7.2.14/7.3.1).
(Note: I reported those as separate bugs to PHP, but they had the same underlying bug and were fixed by the same commit. The release notes only mention "out of bounds read", but this is misleading, as a use after free error is potentially more severe.)
Bugs reported to PHP: https://bugs.php.net/bug.php?id=77242 https://bugs.php.net/bug.php?id=77249
Impact
If the xmlrpc functionality of PHP is used to parse untrusted input from a public API point it can potentially be used to gain code execution.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
If the xmlrpc functionality of PHP is used to parse untrusted input from a public API point it can potentially be used to gain code execution.
What the attacker needed
PHP xmlrpc used on untrusted input
The fix
The issue was fixed in PHP versions 7.1.26, 7.2.14, and 7.3.1.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
PHP has a built-in function for reading data in a format called XML-RPC. If that function is given malformed data, it can mishandle memory, which might let an attacker run their own code on the server.
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.