🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.vms
Article #64

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

#64
From: Arne Vajhøj
Date: Sat, 24 Oct 2026 19:34
39 lines
2676 bytes
On 10/23/2026 9:59 PM, Dan Cross wrote:
> With the disclaimer that I've never really used PHP other than
> playing around once or twice, I kind of remember that it could
> use backticks to perform command substitution, like Perl or a
> Unix shell.  My guess is that if user input had `cmd` in it and
> was interpolated into a print statement or something without
> escaping, it would run a command and interpolate the output
> into whatever it printed.

Backticks can be used as short form for calling shell_exec.

$ type dan.php
<?php
$cmd = 'show def';
echo "bla `$cmd` bla\n";
$dd1 = shell_exec($cmd);
echo $dd1;
$dd2 = `$cmd`;
echo $dd2;
?>
$ php dan.php
bla `show def` bla
   DISK2:[ARNE]
   DISK2:[ARNE]

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

Having a short form like PHP backticks is probably unique.

But it is really just a shell_exec call.

And of course input to that type of function should be checked.

Arne
Technical Details
Message-ID: <11bj186$30n6f$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <11bcbi1$k068$1@dont-email.me> <nk1gv8F1eecU1@mid.individual.net> <11bgih8$f7a$1@reader2.panix.com> <nk2bhaF5j2sU1@mid.individual.net> <11bh3ei$19g$1@reader2.panix.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!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, 24 Oct 2026 15:34:43 -0400
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <11bj186$30n6f$1@dont-email.me>
References: <11bcbi1$k068$1@dont-email.me> <nk1gv8F1eecU1@mid.individual.net>
 <11bgih8$f7a$1@reader2.panix.com> <nk2bhaF5j2sU1@mid.individual.net>
 <11bh3ei$19g$1@reader2.panix.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 24 Oct 2026 19:34:31 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3169487"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+ABy2ovqV/YgeSDb6qkm6t6+8aDwqje4U="; posting-host="90629bce1c2634862ed525d6a667363b"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:rrUEF/qd4r6FcYKD0mALEReUsIY= sha256:11Jorp91oogNaNFO2a8Xw3Uy5ZnQbiRk4RSWkaqMNtg=
	sha1:NnOj8LQFGkhg+NEWk8WYXLTSt8s= sha256:zV6scGsQRV8cn0vKX0QBMF2YAKZFPCZ/isXrraOBqnc=
In-Reply-To: <11bh3ei$19g$1@reader2.panix.com>
Content-Language: en-US