🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.vms
Article #82

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

#82
From: Dan Cross
Date: Sun, 25 Oct 2026 00:45
65 lines
3189 bytes
In article <11bji28$36hh1$1@dont-email.me>,
Arne Vajhøj <arne@vajhoej.dk> wrote:
>On 10/24/2026 5:04 PM, Dan Cross wrote:
>> In article <11bj186$30n6f$1@dont-email.me>,
>> Arne Vajhøj <arne@vajhoej.dk> wrote:
>>> On 10/23/2026 9:59 PM, Dan Cross wrote:
>>>> It's probably true that a language like PHP shouldn't have that
>>>> kind of thing built into it.  But it's also true that that's a
>>>> programming error (failure to sanitize one's input).
>>>
>>> Practically every technology provide a way to execute external
>>> commands.
>> 
>> Indeed, but the danger isn't the mechanism, it is the specific
>> implementation.  PHP is very often used to build applications
>> that are exposed to all kinds of untrusted inputs.  Backticks in
>> an environment where much input is untrusted, for example, seem
>> unnecessarily permissive.
>
>Almost all languages has the capability including languages
>used for web.

...and?

>Even if Bill write CGI script in VMS Cobol he could call LIB$SPAWN.

...and?

>And unlike many other languages then it easy to block in PHP.
>
>Just add:
>
>disable_functions = shell_exec
>
>to php.ini and it is gone.

This misses the point.  A) the person writing the program has to
be the one configuring `php.ini`.  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.

>> term% php
>> <?php
>> $cmd='`pwd`';
>> echo $cmd;
>> eval("echo $cmd;");
>> ?>
>> `pwd`/home/cross
>> term%
>> 
>> Sure, its a cheat to use `eval` here, but maybe interpolation of
>> backticks should not be allowed anywhere except an assignment,
>> and perhaps PHP shouldn't have an `eval`.
>
>eval is another function that need to be very strictly controlled.

Yup.

	- Dan C.
Technical Details
Message-ID: <11bjjek$j9t$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> <11bj186$30n6f$1@dont-email.me> <11bj6gh$mru$1@reader2.panix.com> <11bji28$36hh1$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: Sun, 25 Oct 2026 00:45:08 -0000 (UTC)
Organization: PANIX Public Access Internet and UNIX, NYC
Message-ID: <11bjjek$j9t$1@reader2.panix.com>
References: <11bcbi1$k068$1@dont-email.me> <11bj186$30n6f$1@dont-email.me> <11bj6gh$mru$1@reader2.panix.com> <11bji28$36hh1$1@dont-email.me>
Injection-Date: Sun, 25 Oct 2026 00:45:08 -0000 (UTC)
Injection-Info: reader2.panix.com; posting-host="spitfire.i.gajendra.net:166.84.136.80";
	logging-data="19773"; mail-complaints-to="abuse@panix.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: cross@spitfire.i.gajendra.net (Dan Cross)