Upcoming hardening in PHP

submited by
Style Pass
2024-11-06 15:30:05

In 2022, cfreal gave a talk at BlackAlps 2022 on Generic Remote Exploit Techniques For The PHP Allocator, And 0days. I was there as well, told him that it was ridiculous that PHP's heap was such a soft target, and that I might do something about it eventually, if only to make PHP exploitation less dull.

Two years later, I opened a meta-issue on PHP's bug tracker, and (slowly) started to get to work. I was immediately joined by Arnaud Le Blanc on this endeavour, who actually did most of the work and was kind enough to ping-pong on reviews. Here's what we did so far:

All those cool things either have landed or will likely soon, so keep your PHP stack up to date. And as usual if you need more hardening, there is always Snuffleupagus.

I find it fascinating that people are putting so much efforts optimizing exploitation techniques, yet ~nobody bothers fixing them, even if it only takes a couple of lines of code and 20 minutes.

Leave a Comment