Thread View: comp.os.linux.misc
13 messages
13 total messages
Started by The Natural Philosopher
Thu, 22 Oct 2026 18:16
PHP2Shell
Author: The Natural Philosopher
Date: Thu, 22 Oct 2026 18:16
Date: Thu, 22 Oct 2026 18:16
6 lines
1292 bytes
1292 bytes
Hundreds of articles about it but none detailing exactly how the exploits work Anyone know? -- Climate Change: Socialism wearing a lab coat.
Re: PHP2Shell
Author: Andy Burns
Date: Thu, 22 Oct 2026 18:28
Date: Thu, 22 Oct 2026 18:28
21 lines
1662 bytes
1662 bytes
The Natural Philosopher wrote: > Hundreds of articles about it but none detailing exactly how the > exploits work > Anyone know? Don't think full details have been released yet because the fix got leaked before the time the embargo was due to be lifted (about now rather than yesterday). Some hints in the CVEs ... "PHP enforces its user-configurable memory_limit by using longjmp() to abort any request that exceeds the limit, which raises an OOM error. This can interrupt PHP while internal request data is only partially initialised" "Internal state owned by a request can survive after its backing memory has been freed, for example after a fatal error. A later request handled by the same worker may use that stale state before normal initialisation resets it."
Re: PHP2Shell
Author: The Natural Philosopher
Date: Thu, 22 Oct 2026 18:36
Date: Thu, 22 Oct 2026 18:36
33 lines
2391 bytes
2391 bytes
On 22/10/2026 19:28, Andy Burns wrote:
> The Natural Philosopher wrote:
>
>> Hundreds of articles about it but none detailing exactly how the
>> exploits work
>> Anyone know?
>
> Don't think full details have been released yet because the fix got
> leaked before the time the embargo was due to be lifted (about now
> rather than yesterday).
>
> Some hints in the CVEs ...
>
> "PHP enforces its user-configurable memory_limit by using longjmp() to
> abort any request that exceeds the limit, which raises an OOM error.
> This can interrupt PHP while internal request data is only partially
> initialised"
>
> "Internal state owned by a request can survive after its backing memory
> has been freed, for example after a fatal error. A later request handled
> by the same worker may use that stale state before normal initialisation
> resets it."
That sounds like it is only relevant to large uploads: If the code
doesn't permit that you should be safe?
--
"Fanaticism consists in redoubling your effort when you have
forgotten your aim."
George Santayana
Re: PHP2Shell
Author: Andy Burns
Date: Thu, 22 Oct 2026 18:45
Date: Thu, 22 Oct 2026 18:45
10 lines
1334 bytes
1334 bytes
The Natural Philosopher wrote: > That sounds like it is only relevant to large uploads: If the code > doesn't permit that you should be safe? I did hear that causing the exploit depended on uploads, but wasn't sure enough that no uploads made it safe, so did recommend one customer to shut their customer portal down. The code is written/hosted by a 3rd party, I just point the DNS at it.
Re: PHP2Shell
Author: The Natural Philosopher
Date: Thu, 22 Oct 2026 18:50
Date: Thu, 22 Oct 2026 18:50
27 lines
2218 bytes
2218 bytes
On 22/10/2026 19:45, Andy Burns wrote: > The Natural Philosopher wrote: > >> That sounds like it is only relevant to large uploads: If the code >> doesn't permit that you should be safe? > > I did hear that causing the exploit depended on uploads, but wasn't sure > enough that no uploads made it safe, so did recommend one customer to > shut their customer portal down. > > The code is written/hosted by a 3rd party, I just point the DNS at it. Ah. Yes. I've blown PHP up with large uploads. And downloads. So I wrote the handler for those in C. I don't think any of my sites allow user upload beyond half a dozen parameters. Well that's a starting point: No doubt other stuff will emerge in due course -- Ideas are more powerful than guns. We would not let our enemies have guns, why should we let them have ideas? Josef Stalin
Re: PHP2Shell
Author: Richard Kettlewell
Date: Thu, 22 Oct 2026 18:58
Date: Thu, 22 Oct 2026 18:58
23 lines
1951 bytes
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/
Re: PHP2Shell
Author: Nuno Silva
Date: Thu, 22 Oct 2026 23:39
Date: Thu, 22 Oct 2026 23:39
31 lines
2358 bytes
2358 bytes
On 2026-10-22, Richard Kettlewell wrote: > 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/ Well yes, given a containment measure that has been mentioned has been to shut down php-based services, Crowdstrike does sound like the place to go for that, they surely have experience in making managed systems unavailable. > https://calif.io/php2shell/ -- Nuno Silva
Re: PHP2Shell
Author: The Doctor
Date: Fri, 23 Oct 2026 01:59
Date: Fri, 23 Oct 2026 01:59
20 lines
1702 bytes
1702 bytes
In article <njv3ugFjuhmU1@mid.individual.net>, Andy Burns <usenet@andyburns.uk> wrote: >The Natural Philosopher wrote: > >> That sounds like it is only relevant to large uploads: If the code >> doesn't permit that you should be safe? > >I did hear that causing the exploit depended on uploads, but wasn't sure >enough that no uploads made it safe, so did recommend one customer to >shut their customer portal down. > >The code is written/hosted by a 3rd party, I just point the DNS at it. PHP2SsHELL derived from PHPsHELL? -- Member - Liberal International This is doctor@nk.ca Ici doctor@nk.ca Yahweh, King & country!Never Satan President Republic!Beware AntiChrist rising! Look at Psalms 14 and 53 on Atheism ; 31 years in the ISP business!
Re: PHP2Shell
Author: Allodoxaphobia
Date: Wed, 28 Oct 2026 18:30
Date: Wed, 28 Oct 2026 18:30
7 lines
963 bytes
963 bytes
On Thu, 22 Oct 2026 19:16:24 +0100, The Natural Philosopher wrote: > > Hundreds of articles about it but none detailing exactly how the > exploits work > Anyone know? As well, is there a way to verify my web host(s) have patched??
Re: PHP2Shell
Author: Andy Burns
Date: Wed, 28 Oct 2026 19:34
Date: Wed, 28 Oct 2026 19:34
7 lines
1111 bytes
1111 bytes
Allodoxaphobia wrote: > is there a way to verify my web host(s) have patched?? Got somewhere you can run Python? I've only run it on Linux. <https://github.com/assetnote/php2shell-scanner>
Re: PHP2Shell
Author: The Natural Philosopher
Date: Wed, 28 Oct 2026 22:38
Date: Wed, 28 Oct 2026 22:38
17 lines
1751 bytes
1751 bytes
On 28/10/2026 18:30, Allodoxaphobia wrote: > On Thu, 22 Oct 2026 19:16:24 +0100, The Natural Philosopher wrote: >> >> Hundreds of articles about it but none detailing exactly how the >> exploits work >> Anyone know? > > As well, is there a way to verify my web host(s) have patched?? Mine says it has been BUT I though php was something I had installed myself -- How fortunate for governments that the people they administer don't think. Adolf Hitler
Re: PHP2Shell
Author: rbowman
Date: Thu, 29 Oct 2026 00:13
Date: Thu, 29 Oct 2026 00:13
14 lines
1367 bytes
1367 bytes
On Wed, 28 Oct 2026 22:38:43 +0000, The Natural Philosopher wrote: > On 28/10/2026 18:30, Allodoxaphobia wrote: >> On Thu, 22 Oct 2026 19:16:24 +0100, The Natural Philosopher wrote: >>> >>> Hundreds of articles about it but none detailing exactly how the >>> exploits work Anyone know? >> >> As well, is there a way to verify my web host(s) have patched?? > > Mine says it has been BUT I though php was something I had installed > myself No worries here. I never wanted anything to do with Personal Home Page.
Re: PHP2Shell
Author: Allodoxaphobia
Date: Fri, 30 Oct 2026 22:38
Date: Fri, 30 Oct 2026 22:38
11 lines
1039 bytes
1039 bytes
On Wed, 28 Oct 2026 19:34:05 +0000, Andy Burns wrote: > Allodoxaphobia wrote: > >> is there a way to verify my web host(s) have patched?? > > Got somewhere you can run Python? I've only run it on Linux. > ><https://github.com/assetnote/php2shell-scanner> Yes. TNX!! Jonesy
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads