πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.linux.misc
Article #1574

Re: PHP2Shell

#1574
From: Richard Kettlewell
Date: Thu, 22 Oct 2026 18:58
23 lines
1951 bytes
The Natural Philosopher <tnp@invalid.invalid> writes:
> Hundreds of articles about it but none detailing exactly how the
> exploits work
> Anyone know?

The advisories sketch what the bugs look like:

https://github.com/php/php-src/security/advisories/GHSA-w8hw-w9fx-j79w
https://github.com/php/php-src/security/advisories/GHSA-6wmf-4rv5-p3rp

Briefly, error paths don’t clean up internal state adequately, and leave
invalid states (e.g. pointers to freed data, wrong array bounds, etc)
which can be exploited during subsequent requests.

More details, with (roughly) increasing levels of detail from one to the
next, can be found here:

https://www.wiz.io/blog/php2shell-php-rce
https://www.crowdstrike.com/en-us/blog/crowdstrike-protects-customers-from-php-rce-zero-days/
https://calif.io/php2shell/

-- 
https://www.greenend.org.uk/rjk/
Technical Details
Message-ID: <wwvik2ta7f4.fsf@LkoBDZeT.terraraq.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nntp.terraraq.uk!.POSTED.tunnel.sfere.anjou.terraraq.uk!not-for-mail
References: <11bdjto$13lnp$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nntp.terraraq.uk!.POSTED.tunnel.sfere.anjou.terraraq.uk!not-for-mail
From: Richard Kettlewell <invalid@invalid.invalid>
Newsgroups: comp.os.linux.misc
Subject: Re: PHP2Shell
Date: Thu, 22 Oct 2026 19:58:55 +0100
Organization: terraraq NNTP server
Message-ID: <wwvik2ta7f4.fsf@LkoBDZeT.terraraq.uk>
References: <11bdjto$13lnp$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: innmantic.terraraq.uk; posting-host="tunnel.sfere.anjou.terraraq.uk:172.17.207.6";
	logging-data="45458"; mail-complaints-to="usenet@innmantic.terraraq.uk"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:BOjw2fEv4CfbLoW3nAolwV8JhWE=
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^
     F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha
     +r0NzP?vnz:e/knOY)PI-
X-Boydie: NO