🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.vms
Article #163

Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire

#163
From: Arne Vajhøj
Date: Sat, 14 Nov 2026 18:23
73 lines
4256 bytes
On 10/30/2026 5:56 PM, Dan Cross wrote:
> In article <11c2mfu$fsse$1@dont-email.me>,
> Arne Vajhøj <arne@vajhoej.dk> wrote:
>> On 10/28/2026 1:22 PM, Dan Cross wrote:
>>> In article <11brfro$20u59$1@dont-email.me>,
>>> Arne Vajhøj <arne@vajhoej.dk> wrote:
>>>> On 10/24/2026 8:45 PM, Dan Cross wrote:
>>>>> B) you are comparing
>>>>> interfaces that are designed for _explicit_ use in controlled
>>>>> ways with one designed to easily interpolate values that are
>>>>> ambient *in the lexical context of the invoking code*.  One is
>>>>> significantly _easier_ to misuse than the other.  Because that
>>>>> language is also designed to process inherently untrusted data,
>>>>> it must be used with significant care; yet it is positioned as
>>>>> the easy-to-use beginners language.  That's a dangerous mix.
>>>> I can not follow.
>>>>
>>>> Let me show some code. I will substitute Cobol with Fortran
>>>
>>> No.  You posted three code snippets that all do approximately
>>> the same thing, but at the same time, failed to address the
>>> substance of what i raised above.
>>>
>>>> [snip]
>>>> But I don't see any of the differences matter from a
>>>> security perspective.
>>>
>>> That was the point.
>>
>> I showed that native languages had the same
>> issue as PHP.
> 
> No, you really did not.  You merely showed that other languages
> can spawn programs using `LIB$SPAWN` or similar mechanisms.

That *is* the same issue as shell_exec in PHP.

> What you missed is that it is the unique combination of
> anti-patterns manifest in PHP that make it dangerouus in this
> regard.

The ability to execute shell commands is the ability
to execute shell commands. No more no less.

> Consider this analogy: `strcpy()` is dangerous because you
> cannot tell it how big the destination buffer is.  `strlcpy()`
> is much safer because you _do_ tell it the size of the
> destination buffer, it promises to NUL-terminate the destination
> (as long as size>0), _and_ it tells how much space the source
> required, so that you can detect truncation.  That doesn't mean
> that it is perfectly safe, because you can still give it a bad
> destination length; you _can_ call it with `SIZE_MAX`, but most
> programmers do not.

The analogy is whether C is less safe or as safe/unsafe
as another language XYZ that has a let us say cpystr function
with the same problem.

And the answer is that C is as safe/unsafe as XYZ (in
this regard).

>> And unlike with PHP there is no easy way to close the
>> problem.
> 
> I doubt that disabling shell actually prevents you from calling
> `LIB$SPAWN` via other means.

There is a list of functions able to spawn shell commands. I
even think I listed them in another post. Disable them all
and no spawn.

Arne
Technical Details
Message-ID: <11da8sv$25hpa$5@dont-email.me>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <11bcbi1$k068$1@dont-email.me> <11brfro$20u59$1@dont-email.me> <11btavo$6v$1@reader2.panix.com> <11c2mfu$fsse$1@dont-email.me> <11c33qb$gvr$1@reader2.panix.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Arne Vajhøj <arne@vajhoej.dk>
Newsgroups: comp.os.vms
Subject: Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
Date: Sat, 14 Nov 2026 13:23:08 -0500
Organization: A noiseless patient Spider
Lines: 73
Message-ID: <11da8sv$25hpa$5@dont-email.me>
References: <11bcbi1$k068$1@dont-email.me> <11brfro$20u59$1@dont-email.me>
 <11btavo$6v$1@reader2.panix.com> <11c2mfu$fsse$1@dont-email.me>
 <11c33qb$gvr$1@reader2.panix.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 14 Nov 2026 18:22:23 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2279210"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18Arkkk0r8waXuOSnREF2e62m0Fpdnk+Ho="; posting-host="61d91260449277eb6ca39880cc2a736b"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:3PdVSpLgq6z9vjGEgiTGLlFjV40= sha256:yC/+xJodZmhrxSV0rfBjUmo52/seCoSQkphpNFVW6Xw=
	sha1:x23jcWJwJEp/F03R4SJXNHdtw/M= sha256:16gaH4UVve7hhrrh3kPuuMYEdopf+23mH9y4dhDBI1s=
In-Reply-To: <11c33qb$gvr$1@reader2.panix.com>
Content-Language: en-US