Article View: comp.os.vms
Article #96Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
From: Bill Gunshannon
Date: Mon, 26 Oct 2026 18:10
Date: Mon, 26 Oct 2026 18:10
63 lines
3128 bytes
3128 bytes
On 10/24/26 20:21, Arne Vajhøj 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.
>
> Even if Bill write CGI script in VMS Cobol he could call LIB$SPAWN.
I have written CGI in COBOL, but not on VMS as I have never had reason
to run a web server on VMS. And I would certainly not write something
that allowed outside third parties to call LIB$SPAWN to execute
arbitrary code snippets.
>
> 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.
I take it you missed the part where I said the guys who signed my
paycheck said you can't disable it.
In any event, it is a really bad "feature" and shows a total lack of
consideration for security.
>
>> 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.
>
> Arne
bill
Technical Details
Message-ID:
<nk9jdcFb1n3U1@mid.individual.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<11bcbi1$k068$1@dont-email.me> <nk2bhaF5j2sU1@mid.individual.net> <11bh3ei$19g$1@reader2.panix.com> <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!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Bill Gunshannon <bill.gunshannon@gmail.com> Newsgroups: comp.os.vms Subject: Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire Date: Mon, 26 Oct 2026 14:10:51 -0400 Lines: 63 Message-ID: <nk9jdcFb1n3U1@mid.individual.net> References: <11bcbi1$k068$1@dont-email.me> <nk2bhaF5j2sU1@mid.individual.net> <11bh3ei$19g$1@reader2.panix.com> <11bj186$30n6f$1@dont-email.me> <11bj6gh$mru$1@reader2.panix.com> <11bji28$36hh1$1@dont-email.me> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: individual.net s4hNLCsxIBuXzynjnh9YhAn/ofyCmTs1ioGbt+wuXyUM0flUCa Cancel-Lock: sha1:kULmnlFUkwLdplrUwVg1IS21mo0= sha256:a0P7XFzc9K2BNWI2/Z1dXjUJ+63ZTGrmF+yBfhsK/DU= User-Agent: Mozilla Thunderbird Content-Language: en-US In-Reply-To: <11bji28$36hh1$1@dont-email.me>