[php-src] PR #16640: GH-16590 (UAF in session_encode())
| From: | nielsdos | Date: | Tue, 29 Oct 2024 18:49:12 +0000 |
| Subject: | [php-src] PR #16640: GH-16590 (UAF in session_encode()) | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-29438@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/16640
Author: nielsdos
The
PS_ENCODE_LOOP does not protect the session hash table that it iterates over.
Change it by temporarily creating a copy.
Only applied on 8.4 because of the ABI break. That should be fine as no one should be writing
malicious code like this in the first place.
Asking RMs for permission: @SakiTakamachi @NattyNarwhal @ericmann