🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.vms
Article #133

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

#133
From: Dan Cross
Date: Fri, 30 Oct 2026 21:56
72 lines
3744 bytes
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.

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

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.

>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.

>And what does that mean?
>
>It means that from a shell executing perspective then
>rational people should recommend using PHP over
>native languages like Cobol and Fortran.
>
>Obviously there can be many other security related
>reasons to not use PHP, but shell executing is not
>one of them.

Nope.  It is one of them.  But there are so many to choose from
it hardly matters.

The bottom line is, there are better alternatives to PHP; there
have been for years, and one should use one of those.

	- Dan C.
Technical Details
Message-ID: <11c33qb$gvr$1@reader2.panix.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!panix!.POSTED.spitfire.i.gajendra.net!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>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!panix!.POSTED.spitfire.i.gajendra.net!not-for-mail
From: cross@spitfire.i.gajendra.net (Dan Cross)
Newsgroups: comp.os.vms
Subject: Re: Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
Date: Fri, 30 Oct 2026 21:56:27 -0000 (UTC)
Organization: PANIX Public Access Internet and UNIX, NYC
Message-ID: <11c33qb$gvr$1@reader2.panix.com>
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>
Injection-Date: Fri, 30 Oct 2026 21:56:27 -0000 (UTC)
Injection-Info: reader2.panix.com; posting-host="spitfire.i.gajendra.net:166.84.136.80";
	logging-data="17403"; mail-complaints-to="abuse@panix.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: cross@spitfire.i.gajendra.net (Dan Cross)