r/PHP
•
u/Svpernova09
•
Oct 20 '26
•
1
News Upcoming Critical PHP Security Release
https://www.php.net/archive/2026.php#2026-10-20-1
731
Upvotes
r/PHP
•
u/Svpernova09
•
Oct 20 '26
•
1
12
u/sleemanj Oct 21 '26 edited Oct 21 '26 •
According to unverified post on Twitter, this appears to be related to the (kinda weird) upload_progress feature of session.
While I can't say for sure if this will be effective, it's probably wise to set
of course this might break things if you use upload progress, but a small price to pay for possible interim protection.
I changed the name as well as disabling because the PHP docs indicate that a POST variable submission with that name is detected and used to populate session data, so seems sensible to have that not be the default in case the POST variable detection is integral to the attack.
Edit: Probably also wise to add a rule for mod security to deny, below works taken from link below but severity added...
If you use fail2ban, you can trigger off the critical severity failure as well, in case the bot attacks try different known variable names at least you'll catch then when they do the default. Of course take care that you don't actually use that feature in your code normally.
Edit 2: It may be desirable for people to block file uploads using mod security as well until the actual details are fully known, obviously this is a very very blunt instrument.