Thread View: comp.os.vms
147 messages
147 total messages
Page 2 of 3
Started by Subcommandante XDelta
Thu, 22 Oct 2026 06:47
Page 2 of 3 • 147 total messages
Re: Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
Author: Dan Cross
Date: Sat, 24 Oct 2026 21:07
Date: Sat, 24 Oct 2026 21:07
10 lines
1228 bytes
1228 bytes
In article <11bj28d$313cm$1@dont-email.me>, Arne Vajhøj <arne@vajhoej.dk> wrote: >[snip] >DCL can add text blocks as well. But without symbol >substiution. Sure. - Dan C.
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
Author: Arne Vajhøj
Date: Sun, 25 Oct 2026 00:21
Date: Sun, 25 Oct 2026 00:21
47 lines
2909 bytes
2909 bytes
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.
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.
> 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
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
Author: Lawrence D’Oliveiro
Date: Sun, 25 Oct 2026 00:26
Date: Sun, 25 Oct 2026 00:26
15 lines
2028 bytes
2028 bytes
On Sat, 24 Oct 2026 20:02:57 -0400, Arne Vajhøj wrote: > PHP applications often do web sockets. > > Does not seem to be a problem in the real world. They can’t. WebSocket connections require an ongoing running task to manage the server end of the connection, which doesn’t fit into the PHP request/response model. > The simple rule for starting background tasks directly in > web applications is: don't do it. If an application needs background tasks, why should that change just because the UI is now web-based?
Re: PHP "Features"
Author: Lawrence D’Oliveiro
Date: Sun, 25 Oct 2026 00:28
Date: Sun, 25 Oct 2026 00:28
7 lines
1633 bytes
1633 bytes
On Sat, 24 Oct 2026 19:49:00 -0400, Arne Vajhøj wrote:
> test("BB\\' or 1=1 #")
>
> On 10/24/2026 6:43 PM, Lawrence D’Oliveiro wrote:
>>
>> Note that backslash-escapes are not standard SQL.
Re: PHP "Features"
Author: Lawrence D’Oliveiro
Date: Sun, 25 Oct 2026 00:32
Date: Sun, 25 Oct 2026 00:32
11 lines
1734 bytes
1734 bytes
On Sat, 24 Oct 2026 19:46:12 -0400, Arne Vajhøj wrote:
>> What do you use for LIKE and REGEXP clauses?
>
> prepare of course.
You mean, mysqli_stmt_prepare()? You think this will work?
mysqli_stmt_prepare(«stmt», "select «table» from «table» where «field» like \"%?%\"")
?
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
Author: Arne Vajhøj
Date: Sun, 25 Oct 2026 00:38
Date: Sun, 25 Oct 2026 00:38
43 lines
3147 bytes
3147 bytes
On 10/24/2026 3:42 PM, Dan Cross wrote:
> In article <11bivpt$305om$1@dont-email.me>,
> Arne Vajhøj <arne@vajhoej.dk> wrote:
>> The interesting part is what happens under the hood. JSP
>> pages are not interpreted - they are compiled. Or more
>> precisely: they are triple compiled. The JSP compiler
>> compiles from JSP to Java source, the Java compiler
>> compiles from Java source to Java byte code and the
>> JVM JIT compiles from Java byte code to native code.
>
> It may be relevant to point out that PHP is basically a compiled
> to a bespoke virtual machine (Zend) at this point; the old days
> of a slow, simple interpreter are long gone.
The traditional Zend engine is like traditional CPython:
convert the source to an intermediate byte code and
interpret that.
Performance is interpreter like not JIT compiler like.
Zend added some JIT in 8.0 and CPython in 3.13.
CPython JIT is a joke performance wise.
Zend JIT may be a little better.
> Facebook came up; it was (in)?famously written in PHP
> originally, but some may be familiar with the "Hack" language
> they developed that introdcued gradual typing for it; they also
> have a bespoke VM ("Hip Hop") that runs it. I doubt they care
> *too* much about what happens in the mainstream PHP world.
Hack is how Facebook think PHP 7.x & 8.x should have been.
Funny enough given where this discussion started, then it
does not support mixing of code and HTML - it is all code.
HHVM JIT compiles. And is pretty good at it.
And just to complete: PeachPie on CLR and Quercus on JVM obviously
also JIT compile, but are not as good as HHVM.
Arne
Re: Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
Author: Dan Cross
Date: Sun, 25 Oct 2026 00:45
Date: Sun, 25 Oct 2026 00:45
65 lines
3189 bytes
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.
Re: PHP "Features"
Author: Arne Vajhøj
Date: Sun, 25 Oct 2026 00:45
Date: Sun, 25 Oct 2026 00:45
19 lines
1874 bytes
1874 bytes
On 10/24/2026 1:22 PM, Dan Cross wrote: > I assume you've seen this? I think I may have posted it a > couple of days ago. > > https://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/ You have posted it before. I am not sure whether to laugh or cry. Stuff like: <quote> Subclasses cannot override private methods. Subclass overrides of public methods can’t even see, let alone call, the superclass’s private methods. Problematic for, say, test mocks. </quote> Arne
Re: PHP "Features"
Author: Arne Vajhøj
Date: Sun, 25 Oct 2026 01:02
Date: Sun, 25 Oct 2026 01:02
56 lines
2743 bytes
2743 bytes
On 10/24/2026 8:32 PM, Lawrence D’Oliveiro wrote: > On Sat, 24 Oct 2026 19:46:12 -0400, Arne Vajhøj wrote: >>> What do you use for LIKE and REGEXP clauses? >> >> prepare of course. > > You mean, mysqli_stmt_prepare()? You think this will work? > > mysqli_stmt_prepare(«stmt», "select «table» from «table» where «field» like \"%?%\"") > > ? No. The syntax is: mysqli_stmt_prepare(«stmt», "select «table» from «table» where «field» like ?") and then the value is: "%" + s + "%" Parameters has to be values. It is not a library thing - it is a SQL thing (usually - implementations may differ). mysql> SELECT * FROM t1 WHERE f2 LIKE 'B%'; +----+------+ | f1 | f2 | +----+------+ | 2 | BB | +----+------+ 1 row in set (0.00 sec) mysql> PREPARE stmt FROM 'SELECT * FROM t1 WHERE f2 LIKE ?'; Query OK, 0 rows affected (0.00 sec) Statement prepared mysql> SET @f2 = 'B%'; Query OK, 0 rows affected (0.00 sec) mysql> EXECUTE stmt USING @f2; +----+------+ | f1 | f2 | +----+------+ | 2 | BB | +----+------+ 1 row in set (0.00 sec) mysql> DEALLOCATE PREPARE stmt; Query OK, 0 rows affected (0.00 sec) Arne
Re: Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
Author: Dan Cross
Date: Sun, 25 Oct 2026 01:04
Date: Sun, 25 Oct 2026 01:04
71 lines
3777 bytes
3777 bytes
In article <11bjj1q$36q4q$1@dont-email.me>,
Arne Vajhøj <arne@vajhoej.dk> wrote:
>On 10/24/2026 3:42 PM, Dan Cross wrote:
>> In article <11bivpt$305om$1@dont-email.me>,
>> Arne Vajhøj <arne@vajhoej.dk> wrote:
>>> The interesting part is what happens under the hood. JSP
>>> pages are not interpreted - they are compiled. Or more
>>> precisely: they are triple compiled. The JSP compiler
>>> compiles from JSP to Java source, the Java compiler
>>> compiles from Java source to Java byte code and the
>>> JVM JIT compiles from Java byte code to native code.
>>
>> It may be relevant to point out that PHP is basically a compiled
>> to a bespoke virtual machine (Zend) at this point; the old days
>> of a slow, simple interpreter are long gone.
>
>The traditional Zend engine is like traditional CPython:
>convert the source to an intermediate byte code and
>interpret that.
Yes. Zend is a virtual machine that executes a bytecode,
similar to the JVM, BEAM, etc.
Zend arrived with PHP4. Prior to that, PHP just used a simple
interpreter that walked a parse tree and executed the program as
directly.
>Performance is interpreter like not JIT compiler like.
>
>Zend added some JIT in 8.0 and CPython in 3.13.
>
>CPython JIT is a joke performance wise.
>
>Zend JIT may be a little better.
The HHVM paper was presented at OOPSLA '14, citing PHP5 as
current; that was the Zend 2 era. They don't actually mention
Zend by name, but say, "The most popular PHP implementation is a
straightforward interpreter [25]." (Reference 25 is just,
"PHP5. Web site: http://php.net.")
The conclusion is that, while Zend was _likely_ an improvement
over the previous interpreter that executed directly from the
parse tree, it wasn't very good otherwise; probably only a
little more sophisticated than the one from TPOP.
>> Facebook came up; it was (in)?famously written in PHP
>> originally, but some may be familiar with the "Hack" language
>> they developed that introdcued gradual typing for it; they also
>> have a bespoke VM ("Hip Hop") that runs it. I doubt they care
>> *too* much about what happens in the mainstream PHP world.
>Hack is how Facebook think PHP 7.x & 8.x should have been.
>
>Funny enough given where this discussion started, then it
>does not support mixing of code and HTML - it is all code.
Huh. Weird.
>HHVM JIT compiles. And is pretty good at it.
One should hope so. They dove into a fair bit of prior art,
including LuaJIT, which is often given as an example of a
best-in-class JIT.
>And just to complete: PeachPie on CLR and Quercus on JVM obviously
>also JIT compile, but are not as good as HHVM.
Yup. It's a common technique.
- Dan C.
Re: PHP "Features"
Author: Dan Cross
Date: Sun, 25 Oct 2026 01:14
Date: Sun, 25 Oct 2026 01:14
24 lines
1652 bytes
1652 bytes
In article <11bjjen$36tte$1@dont-email.me>, Arne Vajhøj <arne@vajhoej.dk> wrote: >On 10/24/2026 1:22 PM, Dan Cross wrote: >> I assume you've seen this? I think I may have posted it a >> couple of days ago. >> >> https://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/ >You have posted it before. > >I am not sure whether to laugh or cry. > >Stuff like: > ><quote> >Subclasses cannot override private methods. Subclass overrides of public >methods can’t even see, let alone call, the superclass’s private >methods. Problematic for, say, test mocks. ></quote> This point was listed as a weakness in the critique. It begs the question, however, what does that sentence mean to you? - Dan C.
Re: PHP "Features"
Author: Arne Vajhøj
Date: Sun, 25 Oct 2026 01:20
Date: Sun, 25 Oct 2026 01:20
26 lines
2226 bytes
2226 bytes
On 10/24/2026 9:14 PM, Dan Cross wrote: > In article <11bjjen$36tte$1@dont-email.me>, > Arne Vajhøj <arne@vajhoej.dk> wrote: >> On 10/24/2026 1:22 PM, Dan Cross wrote: >>> I assume you've seen this? I think I may have posted it a >>> couple of days ago. >>> >>> https://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/ >> You have posted it before. >> >> I am not sure whether to laugh or cry. >> >> Stuff like: >> >> <quote> >> Subclasses cannot override private methods. Subclass overrides of public >> methods can’t even see, let alone call, the superclass’s private >> methods. Problematic for, say, test mocks. >> </quote> > > This point was listed as a weakness in the critique. It begs > the question, however, what does that sentence mean to you? It tells that the author is pretty clueless about OOP. Arne
Re: PHP "Features"
Author: Dan Cross
Date: Sun, 25 Oct 2026 01:30
Date: Sun, 25 Oct 2026 01:30
38 lines
2309 bytes
2309 bytes
In article <11bjlgb$37fah$1@dont-email.me>, Arne Vajhøj <arne@vajhoej.dk> wrote: >On 10/24/2026 9:14 PM, Dan Cross wrote: >> In article <11bjjen$36tte$1@dont-email.me>, >> Arne Vajhøj <arne@vajhoej.dk> wrote: >>> On 10/24/2026 1:22 PM, Dan Cross wrote: >>>> I assume you've seen this? I think I may have posted it a >>>> couple of days ago. >>>> >>>> https://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/ >>> You have posted it before. >>> >>> I am not sure whether to laugh or cry. >>> >>> Stuff like: >>> >>> <quote> >>> Subclasses cannot override private methods. Subclass overrides of public >>> methods can’t even see, let alone call, the superclass’s private >>> methods. Problematic for, say, test mocks. >>> </quote> >> >> This point was listed as a weakness in the critique. It begs >> the question, however, what does that sentence mean to you? > >It tells that the author is pretty clueless about OOP. Are you sure? Is there a single, universal, definition of the semantics of `private` in Object-Oriented languages? (Hint: have you ever used Ruby? Smalltalk?) Can you think of another explanation they may be driving at? For instance, mabye they are questioning why a dynamic language like PHP has a definition of `private` that is as rigid as C++'s, while not also providing a `friend`-like abstraction. - Dan C.
Re: PHP "Features"
Author: Lawrence D’Oliveiro
Date: Sun, 25 Oct 2026 01:31
Date: Sun, 25 Oct 2026 01:31
12 lines
1772 bytes
1772 bytes
On Sat, 24 Oct 2026 21:02:37 -0400, Arne Vajhøj wrote: > The syntax is: > > mysqli_stmt_prepare(«stmt», "select «table» from «table» where «field» > like ?") > > and then the value is: > > "%" + s + "%" Shall I point out what is wrong with that?
Re: PHP "Features"
Author: Lawrence D’Oliveiro
Date: Sun, 25 Oct 2026 01:34
Date: Sun, 25 Oct 2026 01:34
19 lines
1936 bytes
1936 bytes
On Sat, 24 Oct 2026 20:45:24 -0400, Arne Vajhøj wrote:
>> https://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/
>
> I am not sure whether to laugh or cry.
Discussing the PHP bug on another forum, another commenter offered
this little gem:
$a = INF;
$b = [];
$c = (object)[];
var_dump($a < $b); // true, as INF is less than an array
var_dump($b < $c); // true, as an array is less than an object
var_dump($c < $a); // true, as an object is less than INF
Is there such a thing as a “rock-paper-scissors” sorting algorithm?
Seems like PHP has it ...
Re: Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
Author: Scott Dorsey
Date: Sun, 25 Oct 2026 23:12
Date: Sun, 25 Oct 2026 23:12
35 lines
2638 bytes
2638 bytes
Dan Cross <cross@spitfire.i.gajendra.net> wrote: >Probably. Early development for the web was annoyingly tedious. >I remember being shocked at the things that were omitted, like >any semblence of a session model, a basic concept of identity >(beyond "HTTP Basic Authentication" headers), or any effort to >integrate with the underlying host's models at more than a >cursory level; certainly, efforts to improve the situation were >welcome along many dimensions. It's not FOR that. It's for displaying hyperlinked data. It was never intended to be stateful, it was never intended to be bidirectional and replace forms applications. If you wanted that, a dedicated application was how you were expected to do it. But then everybody wanted the web to do everything all of a sudden and everything went wrong. >Ok. I just thought it was very strange that so many people >embraced the web so enthusiastically; the protocol was awful, >the markup language underpowered (it couldn't even represent >basic mathematics, like fractions!), and again, no session >layer; all of that had to be built from scratch using cookies >or tokens in a URI or something, and any sort of integration >with existing authentication or identity sources similarly. >What about it was compelling? It was like a bunch of people >suddenly decided that building applications on top of anonymous >FTP was a good idea. I guess it had visual elements you >couldn't easily expose with VTAM over 3270s. Agreed. But the web was a wonderful thing and well-designed for what it was designed for. You can't blame the folks who designed it when so many people decided they wanted it to be something totally different. --scott -- "C'est un Nagra. C'est suisse, et tres, tres precis."
Re: Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
Author: Dan Cross
Date: Mon, 26 Oct 2026 00:40
Date: Mon, 26 Oct 2026 00:40
54 lines
3782 bytes
3782 bytes
In article <11bm2db$nkq$1@panix2.panix.com>, Scott Dorsey <kludge@panix.com> wrote: >Dan Cross <cross@spitfire.i.gajendra.net> wrote: >>Probably. Early development for the web was annoyingly tedious. >>I remember being shocked at the things that were omitted, like >>any semblence of a session model, a basic concept of identity >>(beyond "HTTP Basic Authentication" headers), or any effort to >>integrate with the underlying host's models at more than a >>cursory level; certainly, efforts to improve the situation were >>welcome along many dimensions. > >It's not FOR that. It's for displaying hyperlinked data. It was never >intended to be stateful, it was never intended to be bidirectional and >replace forms applications. If you wanted that, a dedicated application >was how you were expected to do it. But then everybody wanted the web >to do everything all of a sudden and everything went wrong. Well... Yeah. What I said was, "early development for the web was annoyingly tedious." As you said, it just wasn't built for that; my post was a list of deficiencies I observed at the time for development with the web model. >>Ok. I just thought it was very strange that so many people >>embraced the web so enthusiastically; the protocol was awful, >>the markup language underpowered (it couldn't even represent >>basic mathematics, like fractions!), and again, no session >>layer; all of that had to be built from scratch using cookies >>or tokens in a URI or something, and any sort of integration >>with existing authentication or identity sources similarly. >>What about it was compelling? It was like a bunch of people >>suddenly decided that building applications on top of anonymous >>FTP was a good idea. I guess it had visual elements you >>couldn't easily expose with VTAM over 3270s. > >Agreed. But the web was a wonderful thing and well-designed for >what it was designed for. You can't blame the folks who designed >it when so many people decided they wanted it to be something >totally different. I agree with you that it's not reasonable to blame them for the session layer and the rest that came from people wanting to use it for building actual applications, which was not the originally intended use case, though Brenners-Lee's browser for the NeXT _was_ bidirectional. But they don't escape criticism for HTTP and HTML. There wwas plenty of prior art for other data formats and protocols that could have been brought to bear that would have avoided the inefficiencies of HTTP. HTML was the example from Charles Goldfarb's book on SGML, plus anchors. Both could have been significantly better very early on, if not from the start. - Dan C.
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
Author: Fred. Zwarts
Date: Mon, 26 Oct 2026 09:45
Date: Mon, 26 Oct 2026 09:45
82 lines
5285 bytes
5285 bytes
Op 24.okt.2026 om 22:11 schreef Dan Cross: > In article <11biu7b$2vhq4$1@dont-email.me>, > Arne Vajhøj <arne@vajhoej.dk> wrote: >> On 10/23/2026 7:51 AM, Dan Cross wrote: >>> In article <20261023123938.000065e7@yahoo.com>, >>> Michael S <already5chosen@yahoo.com> wrote: >>>> On Thu, 22 Oct 2026 22:43:59 -0000 (UTC) >>>> Lawrence D’Oliveiro <ldo@nz.invalid> wrote: >>>>> PHP is a sorry mess, a long litany of sad design decisions. >>>>> >>>>> When I first saw PHP, it looked like they were trying to copy Perl, >>>>> but not quite understanding what they were copying. >>>>> >>>>> Nowadays, it looks like they’ve moved on to trying to copy Python. But >>>>> they still don’t understand what they’re copying. >>>> >>>> So why are they massively more successful than perl in their very >>>> lucrative niche of web server-side scripting? And why at least until >>>> recently [in this niche] they were massively more successful than >>>> python? >>>> My guess would be that they are doing something right. >>> >>> When I first saw PHP, I assumed they were trying to provide an >>> alternative to ASP and CFML, where one interleaved HTML and >>> program snippets. >> >> I suspect that demand created multiple similar solutions. > > Probably. Early development for the web was annoyingly tedious. > I remember being shocked at the things that were omitted, like > any semblence of a session model, a basic concept of identity > (beyond "HTTP Basic Authentication" headers), or any effort to > integrate with the underlying host's models at more than a > cursory level; certainly, efforts to improve the situation were > welcome along many dimensions. > >> PHP 1.0 : 08-Jun-1995 >> ColdFusion 1.0 : 10-Jul-1995 [different sources have different dates but >> they all say July] >> ASP 1.0 : 10-Dec-1996 > > The PHP of June 1995 did not look like the PHP one sees today. > The history at https://www.php.net/manual/en/history.php.php > describes the evolution and gives an example of PHP/FI 2.0 circa > 1997/1998; it is very different. That page says that PHP 3.0 is > the first version that's clearly related to the modern language. > >> Note that CFML typical use tags not script snippets. So in that >> regard it is more like JSP with JSTL and ASP.NET web forms than >> like PHP, ASP and JSP without JSTL. Or to put it differently: CFML >> was 7 years ahead of the rest. > > Ok. I just thought it was very strange that so many people > embraced the web so enthusiastically; the protocol was awful, > the markup language underpowered (it couldn't even represent > basic mathematics, like fractions!), That is out of the context of that time. At the time it was built most people did not use something that could display mathematics and fractions. For quite some time the line mode browser (and later lynx) was the most used browser. A graphics browser came much later and only then there grew a need for other characters then those that could be displayed on a VT200. > and again, no session > layer; all of that had to be built from scratch using cookies > or tokens in a URI or something, and any sort of integration > with existing authentication or identity sources similarly. > What about it was compelling? It was like a bunch of people > suddenly decided that building applications on top of anonymous > FTP was a good idea. I guess it had visual elements you > couldn't easily expose with VTAM over 3270s. > > Of course, it's much better _now_, but lots of vestiges of those > early mistakes still linger on; with a proper session layer, for > example, CSRF would not be a thing that people still have to > worry about, and SASL never really caught on, though OIDC is... > ok, I guess? > > - Dan C. >
Re: Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
Author: Dan Cross
Date: Mon, 26 Oct 2026 16:48
Date: Mon, 26 Oct 2026 16:48
27 lines
2110 bytes
2110 bytes
In article <11bn7f8$2s502$1@dont-email.me>, Fred. Zwarts <F.Zwarts@HetNet.nl> wrote: >Op 24.okt.2026 om 22:11 schreef Dan Cross: >> [snip] >> Ok. I just thought it was very strange that so many people >> embraced the web so enthusiastically; the protocol was awful, >> the markup language underpowered (it couldn't even represent >> basic mathematics, like fractions!), > >That is out of the context of that time. Not really. Tim Brenners-Lee wrote the initial browser on the NeXT; >At the time it was built most people did not use something that could >display mathematics and fractions. For quite some time the line mode >browser (and later lynx) was the most used browser. A graphics browser >came much later and only then there grew a need for other characters >then those that could be displayed on a VT200. Is this true? `nroff` with `neqn` could produce basic, ASCII art equations that displayed decently well on terminals back in the 1980s. Certainly lots of folks had bitmapped graphics displays by the early 90s. - Dan C.
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
Author: 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
Re: Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
Author: Scott Lurndal
Date: Mon, 26 Oct 2026 18:20
Date: Mon, 26 Oct 2026 18:20
33 lines
2462 bytes
2462 bytes
cross@spitfire.i.gajendra.net (Dan Cross) writes: >In article <11bn7f8$2s502$1@dont-email.me>, >Fred. Zwarts <F.Zwarts@HetNet.nl> wrote: >>Op 24.okt.2026 om 22:11 schreef Dan Cross: >>> [snip] >>> Ok. I just thought it was very strange that so many people >>> embraced the web so enthusiastically; the protocol was awful, >>> the markup language underpowered (it couldn't even represent >>> basic mathematics, like fractions!), >> >>That is out of the context of that time. > >Not really. Tim Brenners-Lee wrote the initial browser on the >NeXT; > >>At the time it was built most people did not use something that could >>display mathematics and fractions. For quite some time the line mode >>browser (and later lynx) was the most used browser. A graphics browser >>came much later and only then there grew a need for other characters >>then those that could be displayed on a VT200. > >Is this true? `nroff` with `neqn` could produce basic, ASCII >art equations that displayed decently well on terminals back in >the 1980s. Certainly lots of folks had bitmapped graphics >displays by the early 90s. I've a 9-track tape full of posters suitable for printing on standard 132-column printers with greenbar (or better white) fanfold paper. Dates to the late 1970s. Including a wall-sized moon and a picture of a 727 flying under the golden gate bridge (not to mention a couple of girly calendars).
Re: Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
Author: Dan Cross
Date: Mon, 26 Oct 2026 18:34
Date: Mon, 26 Oct 2026 18:34
49 lines
3091 bytes
3091 bytes
In article <DRMDS.14957$V9C6.3059@fx02.iad>, Scott Lurndal <slp53@pacbell.net> wrote: >cross@spitfire.i.gajendra.net (Dan Cross) writes: >>In article <11bn7f8$2s502$1@dont-email.me>, >>Fred. Zwarts <F.Zwarts@HetNet.nl> wrote: >>>Op 24.okt.2026 om 22:11 schreef Dan Cross: >>>> [snip] >>>> Ok. I just thought it was very strange that so many people >>>> embraced the web so enthusiastically; the protocol was awful, >>>> the markup language underpowered (it couldn't even represent >>>> basic mathematics, like fractions!), >>> >>>That is out of the context of that time. >> >>Not really. Tim Brenners-Lee wrote the initial browser on the >>NeXT; >> >>>At the time it was built most people did not use something that could >>>display mathematics and fractions. For quite some time the line mode >>>browser (and later lynx) was the most used browser. A graphics browser >>>came much later and only then there grew a need for other characters >>>then those that could be displayed on a VT200. >> >>Is this true? `nroff` with `neqn` could produce basic, ASCII >>art equations that displayed decently well on terminals back in >>the 1980s. Certainly lots of folks had bitmapped graphics >>displays by the early 90s. > >I've a 9-track tape full of posters suitable for printing >on standard 132-column printers with greenbar (or better >white) fanfold paper. Dates to the late 1970s. > >Including a wall-sized moon and a picture of a 727 >flying under the golden gate bridge Wow, I wouldn't mind seeing either of those! They sound cool. Look, I get that the web wasn't meant to be what it turned into. And to be honest, I don't want to go back to the bad old days of having to go to the bank to deposit checks or check my balance or whatever. But that doesn't mean that the technology was ever "good" in a measurable sense. That said, I wonder if the web would have succeeded if the technology were better; it's kind of the dumbest thing that could possibly work, and it clearly worked. - Dan C.
Re: Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
Author: Scott Lurndal
Date: Mon, 26 Oct 2026 18:58
Date: Mon, 26 Oct 2026 18:58
42 lines
2797 bytes
2797 bytes
cross@spitfire.i.gajendra.net (Dan Cross) writes: >In article <DRMDS.14957$V9C6.3059@fx02.iad>, >Scott Lurndal <slp53@pacbell.net> wrote: >>cross@spitfire.i.gajendra.net (Dan Cross) writes: >>>In article <11bn7f8$2s502$1@dont-email.me>, >>>Fred. Zwarts <F.Zwarts@HetNet.nl> wrote: >>>>Op 24.okt.2026 om 22:11 schreef Dan Cross: >>>>> [snip] >>>>> Ok. I just thought it was very strange that so many people >>>>> embraced the web so enthusiastically; the protocol was awful, >>>>> the markup language underpowered (it couldn't even represent >>>>> basic mathematics, like fractions!), >>>> >>>>That is out of the context of that time. >>> >>>Not really. Tim Brenners-Lee wrote the initial browser on the >>>NeXT; >>> >>>>At the time it was built most people did not use something that could >>>>display mathematics and fractions. For quite some time the line mode >>>>browser (and later lynx) was the most used browser. A graphics browser >>>>came much later and only then there grew a need for other characters >>>>then those that could be displayed on a VT200. >>> >>>Is this true? `nroff` with `neqn` could produce basic, ASCII >>>art equations that displayed decently well on terminals back in >>>the 1980s. Certainly lots of folks had bitmapped graphics >>>displays by the early 90s. >> >>I've a 9-track tape full of posters suitable for printing >>on standard 132-column printers with greenbar (or better >>white) fanfold paper. Dates to the late 1970s. >> >>Including a wall-sized moon and a picture of a 727 >>flying under the golden gate bridge > >Wow, I wouldn't mind seeing either of those! They sound cool. Al copied the tape to cdrom for me many years ago now. He should have it up on bitsavers somewhere.
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
Author: Arne Vajhøj
Date: Mon, 26 Oct 2026 19:39
Date: Mon, 26 Oct 2026 19:39
62 lines
3496 bytes
3496 bytes
On 10/26/2026 12:48 PM, Dan Cross wrote: > In article <11bn7f8$2s502$1@dont-email.me>, > Fred. Zwarts <F.Zwarts@HetNet.nl> wrote: >> Op 24.okt.2026 om 22:11 schreef Dan Cross: >>> [snip] >>> Ok. I just thought it was very strange that so many people >>> embraced the web so enthusiastically; the protocol was awful, >>> the markup language underpowered (it couldn't even represent >>> basic mathematics, like fractions!), >> >> That is out of the context of that time. > > Not really. Tim Brenners-Lee wrote the initial browser on the > NeXT; Tim Berners-Lee >> At the time it was built most people did not use something that could >> display mathematics and fractions. For quite some time the line mode >> browser (and later lynx) was the most used browser. A graphics browser >> came much later and only then there grew a need for other characters >> then those that could be displayed on a VT200. > > Is this true? `nroff` with `neqn` could produce basic, ASCII > art equations that displayed decently well on terminals back in > the 1980s. Certainly lots of folks had bitmapped graphics > displays by the early 90s. The start of WWW was very much text. Lynx browser and various Gopher clients. NeXT was not widely used. But the GUI browsers did hid the mass market pretty soon. Mosaic 1993 NetScape 1994 Internet Explorer 1995 And math was actually proposed back then. The HTML 3.0 proposal (1995) had math. But it never became standard. For two reasons: * too big a change for browsers to implement (I have no idea whether text based browsers played a role in that discussion) * no interest from NetScape and Microsoft as they were looking for more "flashy" things as part of their competition for the browser market - math support is not important in that regard Next standard became HTML 3.2 in 1997 without math. Math was kicked off to MathML and was first included in HTML almost two decades later. Arne
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
Author: Arne Vajhøj
Date: Mon, 26 Oct 2026 19:46
Date: Mon, 26 Oct 2026 19:46
21 lines
1911 bytes
1911 bytes
On 10/26/2026 3:39 PM, Arne Vajhøj wrote: > The start of WWW was very much text. Lynx browser and various Gopher > clients. > > NeXT was not widely used. > > But the GUI browsers did hid the mass market pretty soon. > > Mosaic 1993 > NetScape 1994 And back then VMS was actually supported. Foteos Macrides did Lynx. George Cook did Mosaic. And DEC did NetScape. Arne
Re: Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
Author: Dan Cross
Date: Mon, 26 Oct 2026 20:17
Date: Mon, 26 Oct 2026 20:17
99 lines
4751 bytes
4751 bytes
In article <11boa8g$tc8v$1@dont-email.me>, Arne Vajhøj <arne@vajhoej.dk> wrote: >On 10/26/2026 12:48 PM, Dan Cross wrote: >> In article <11bn7f8$2s502$1@dont-email.me>, >> Fred. Zwarts <F.Zwarts@HetNet.nl> wrote: >>> Op 24.okt.2026 om 22:11 schreef Dan Cross: >>>> [snip] >>>> Ok. I just thought it was very strange that so many people >>>> embraced the web so enthusiastically; the protocol was awful, >>>> the markup language underpowered (it couldn't even represent >>>> basic mathematics, like fractions!), >>> >>> That is out of the context of that time. >> >> Not really. Tim Brenners-Lee wrote the initial browser on the >> NeXT; > >Tim Berners-Lee Oops; I didn't mean to typo his name. >>> At the time it was built most people did not use something that could >>> display mathematics and fractions. For quite some time the line mode >>> browser (and later lynx) was the most used browser. A graphics browser >>> came much later and only then there grew a need for other characters >>> then those that could be displayed on a VT200. >> >> Is this true? `nroff` with `neqn` could produce basic, ASCII >> art equations that displayed decently well on terminals back in >> the 1980s. Certainly lots of folks had bitmapped graphics >> displays by the early 90s. > >The start of WWW was very much text. Lynx browser and various Gopher >clients. > >NeXT was not widely used. Berners-Lee got a NeXT at CERN specifically to build the web. This is in his book, "Weaving the Web" (pg 23). On page 28 he writes, "My first objective was to write the Web _client_---the program that would allow he creation, browsing, and editing of hypertext pages. It would look basically like a word processor, and the tools on the NeXT's system, called NeXTStep, were ideal for the task. I could create an application, menus, and windows easily, just draggina and dropping them into place with a mouse." So the web was meant to have a rich interface from the start. Though he does go on to say that Nicola Pellow write a "line-mode" browser for text terminals as a least-common denominator interrface very early on. >But the GUI browsers did hid the mass market pretty soon. > >Mosaic 1993 >NetScape 1994 >Internet Explorer 1995 Yes. >And math was actually proposed back then. > >The HTML 3.0 proposal (1995) had math. > >But it never became standard. > >For two reasons: >* too big a change for browsers to implement (I have no > idea whether text based browsers played a role in that > discussion) >* no interest from NetScape and Microsoft as they were > looking for more "flashy" things as part of their > competition for the browser market - math support > is not important in that regard > >Next standard became HTML 3.2 in 1997 without math. > >Math was kicked off to MathML and was first included >in HTML almost two decades later. Personally, I'd have been happy if they had just adopted TeX for mathematical markup, and just presented the raw markup in line mode browsers like Lynx; people have been doing the latter on USENET for decades. It doesn't seem like too much of a stretch to imagine they could have done better. Things like `utftex` these days render fullon LaTeX in a terminal window; well before that, we had tex2mail et al, dvi2tty, neqn and nroff, and so on. It is sad that it took so long for MathJax to get started; prior to that, the state of the art for putting math on the web was rendering equations from LaTeX into small images, and embedding those in an HTML document. Anyway. If you were used to working with troff or TeX, HTML was a definite step down. - Dan C.
Re: Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
Author: Dan Cross
Date: Tue, 27 Oct 2026 01:09
Date: Tue, 27 Oct 2026 01:09
18 lines
1606 bytes
1606 bytes
In article <IpNDS.8178$Hik6.6862@fx04.iad>, Scott Lurndal <slp53@pacbell.net> wrote: >cross@spitfire.i.gajendra.net (Dan Cross) writes: >>In article <DRMDS.14957$V9C6.3059@fx02.iad>, >>Scott Lurndal <slp53@pacbell.net> wrote: >>>[snip]] >>>Including a wall-sized moon and a picture of a 727 >>>flying under the golden gate bridge >> >>Wow, I wouldn't mind seeing either of those! They sound cool. > >Al copied the tape to cdrom for me many years ago now. He should >have it up on bitsavers somewhere. Cool, I'll poke around. Thanks. - Dan C.
Re: PHP "Features"
Author: Dan Cross
Date: Tue, 27 Oct 2026 01:21
Date: Tue, 27 Oct 2026 01:21
102 lines
3347 bytes
3347 bytes
In article <11bjm3a$i12$1@reader2.panix.com>,
Dan Cross <cross@spitfire.i.gajendra.net> wrote:
>In article <11bjlgb$37fah$1@dont-email.me>,
>Arne Vajhøj <arne@vajhoej.dk> wrote:
>>On 10/24/2026 9:14 PM, Dan Cross wrote:
>>> In article <11bjjen$36tte$1@dont-email.me>,
>>> Arne Vajhøj <arne@vajhoej.dk> wrote:
>>>> On 10/24/2026 1:22 PM, Dan Cross wrote:
>>>>> I assume you've seen this? I think I may have posted it a
>>>>> couple of days ago.
>>>>>
>>>>> https://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/
>>>> You have posted it before.
>>>>
>>>> I am not sure whether to laugh or cry.
>>>>
>>>> Stuff like:
>>>>
>>>> <quote>
>>>> Subclasses cannot override private methods. Subclass overrides of public
>>>> methods can’t even see, let alone call, the superclass’s private
>>>> methods. Problematic for, say, test mocks.
>>>> </quote>
>>>
>>> This point was listed as a weakness in the critique. It begs
>>> the question, however, what does that sentence mean to you?
>>
>>It tells that the author is pretty clueless about OOP.
>
>Are you sure? Is there a single, universal, definition of the
>semantics of `private` in Object-Oriented languages? (Hint:
>have you ever used Ruby? Smalltalk?)
>
>Can you think of another explanation they may be driving at?
>For instance, mabye they are questioning why a dynamic language
>like PHP has a definition of `private` that is as rigid as
>C++'s, while not also providing a `friend`-like abstraction.
Since Arne didn't answer, I'll answer for him: `private` does
not mean the same thing in every language. The following
examples are in Ruby:
```
term% ruby
class A
def foo
bar
end
private
def bar
puts "Hello from A's bar"
end
end
class B < A
def baz
bar
end
end
b = B.new
b.foo
b.baz
Hello from A's bar
Hello from A's bar
term% ruby
class A
def foo
bar
end
private
def bar
puts "Hello from A's bar"
end
end
class B < A
private
def bar
puts "Hello from B's bar"
end
end
a = A.new
a.foo
b = B.new
b.foo
Hello from A's bar
Hello from B's bar
term%
```
In *this* language, `private` doesn't mean what it means in C++.
The author of, "PHP: A Fractal of Bad Design" is not clueless
about OOP, but does draw on a wider breadth of knowledge of the
subject than some of the essay's critics.
- Dan C.
Re: PHP "Features"
Author: Simon Clubley
Date: Tue, 27 Oct 2026 19:02
Date: Tue, 27 Oct 2026 19:02
25 lines
2280 bytes
2280 bytes
On 2026-10-24, Lawrence DÿOliveiro <ldo@nz.invalid> wrote: > On Sat, 24 Oct 2026 21:02:37 -0400, Arne Vajhøj wrote: > >> The syntax is: >> >> mysqli_stmt_prepare(«stmt», "select «table» from «table» where «field» >> like ?") >> >> and then the value is: >> >> "%" + s + "%" > > Shall I point out what is wrong with that? LIKE wildcards are part of the value, not part of the statement. And yes, this means LIKE-specific escaping is involved if they appear within the value itself: https://dev.mysql.com/doc/refman/8.4/en/string-comparison-functions.html#operator_like Simon. -- Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP Walking destinations on a map are further away than they appear.
Re: PHP "Features"
Author: Simon Clubley
Date: Tue, 27 Oct 2026 19:08
Date: Tue, 27 Oct 2026 19:08
26 lines
2254 bytes
2254 bytes
On 2026-10-24, Lawrence DÿOliveiro <ldo@nz.invalid> wrote: > On Sat, 24 Oct 2026 11:59:30 -0400, Arne Vajhøj wrote: > >> Always === is a good workaround. > > A workaround is still a workaround. The weak typing that led to its > necessity is not ?good?. > I disagree with you on many things, but agree with you on that one. You should get strict equality by default with "==" and have to use "===" to get loose equality. It's like in C++ where [] does not do bounds checking and you have to use at() to get bounds checking. In both cases, they are the wrong way around. Things should be safe by default and you should have to do something unusual to get unsafe behaviour. Simon. -- Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP Walking destinations on a map are further away than they appear.
Re: PHP "Features"
Author: Simon Clubley
Date: Tue, 27 Oct 2026 19:33
Date: Tue, 27 Oct 2026 19:33
31 lines
2442 bytes
2442 bytes
On 2026-10-24, Dan Cross <cross@spitfire.i.gajendra.net> wrote: > > I assume you've seen this? I think I may have posted it a > couple of days ago. > > https://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/ > I had forgotten about this and it sums up things better than I can. BTW, I have yet to see someone propose a Rust-style scripting language as a replacement for PHP. :-) On a more serious note, I wish Python had taken hold instead of PHP in the web server world. I get on far better with Python than PHP and Python is a much more general purpose language that is the scripting language in all kinds of applications. Oh, and about the bit in the above URL about calling a PHP function and passing an array as its arguments, have a look at the splat operator introduced in current PHP versions to unpack an array as an argument list. Had cause to use it recently (I sometimes have to write PHP code to interface with things) and it appeared to work for me. It may do what you need in some circumstances instead of call_user_func_array(). Simon. -- Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP Walking destinations on a map are further away than they appear.
Re: PHP "Features"
Author: Simon Clubley
Date: Tue, 27 Oct 2026 19:49
Date: Tue, 27 Oct 2026 19:49
31 lines
2350 bytes
2350 bytes
On 2026-10-24, Lawrence DÿOliveiro <ldo@nz.invalid> wrote: > On Sat, 24 Oct 2026 20:45:24 -0400, Arne Vajhøj wrote: > >>> https://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/ >> >> I am not sure whether to laugh or cry. > > Discussing the PHP bug on another forum, another commenter offered > this little gem: > > $a = INF; > $b = []; > $c = (object)[]; > > var_dump($a < $b); // true, as INF is less than an array > var_dump($b < $c); // true, as an array is less than an object > var_dump($c < $a); // true, as an object is less than INF > > Is there such a thing as a ?rock-paper-scissors? sorting algorithm? > Seems like PHP has it ... Now do Javascript... Simon. PS: IOW, why are the most popular web languages (both client and server-side) so bloody insanely bad ? :-( -- Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP Walking destinations on a map are further away than they appear.
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
Author: Arne Vajhøj
Date: Tue, 27 Oct 2026 21:19
Date: Tue, 27 Oct 2026 21:19
30 lines
2609 bytes
2609 bytes
On 10/24/2026 8:26 PM, Lawrence D’Oliveiro wrote: > On Sat, 24 Oct 2026 20:02:57 -0400, Arne Vajhøj wrote: >> PHP applications often do web sockets. >> >> Does not seem to be a problem in the real world. > > They can’t. It is pretty easy to confirm that PHP do web sockets, so obviously it can. > WebSocket connections require an ongoing running task to > manage the server end of the connection, which doesn’t fit into the > PHP request/response model. Web is mostly HTTP(S) request and response - that does not prevent web solutions from supporting web sockets. PHP supports many different executions models. Some can support web sockets some can't. The two most common approaches for web sockets in PHP are: * any web server with PHP using any execution model serving the pages combined with a PHP CLI process serving web sockets * one of the modern PHP application servers (RoadRunner, FrankenPHP etc.) Pick your choice. Arne
Re: PHP "Features"
Author: Dan Cross
Date: Tue, 27 Oct 2026 22:48
Date: Tue, 27 Oct 2026 22:48
44 lines
2431 bytes
2431 bytes
In article <11bqv7e$1pp8h$4@dont-email.me>, Simon Clubley <clubley@remove_me.eisner.decus.org-Earth.UFP> wrote: >On 2026-10-24, Lawrence DÿOliveiro <ldo@nz.invalid> wrote: >> On Sat, 24 Oct 2026 20:45:24 -0400, Arne Vajhøj wrote: >> >>>> https://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/ >>> >>> I am not sure whether to laugh or cry. >> >> Discussing the PHP bug on another forum, another commenter offered >> this little gem: >> >> $a = INF; >> $b = []; >> $c = (object)[]; >> >> var_dump($a < $b); // true, as INF is less than an array >> var_dump($b < $c); // true, as an array is less than an object >> var_dump($c < $a); // true, as an object is less than INF >> >> Is there such a thing as a ?rock-paper-scissors? sorting algorithm? >> Seems like PHP has it ... > >Now do Javascript... > >Simon. > >PS: IOW, why are the most popular web languages (both client and server-side) >so bloody insanely bad ? :-( I know it's controversial to say, but I think it's because the web was based on fundamentally bad technology, but some of it is really interesting, and almost all of it is incredibly useful. Javascript is a great example; it's not a good language, but as Crocker pointed out in his book, some _aspects_ of it are very cool; it can certainly be used _well_. And for years, it was the only real game in town for running things in the browser, so what is one to do? Typescript is the obvious answer. :-) - Dan C.
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
Author: Lawrence D’Oliveiro
Date: Tue, 27 Oct 2026 22:49
Date: Tue, 27 Oct 2026 22:49
17 lines
2275 bytes
2275 bytes
On Tue, 27 Oct 2026 17:19:00 -0400, Arne Vajhøj wrote: > The two most common approaches for web sockets in PHP are: > * any web server with PHP using any execution model serving > the pages combined with a PHP CLI process serving web sockets That’s a clunky way, running two separate components that have to figure out some way of communicating between them. Particularly since only one side can respond to internal events, the other can’t. > * one of the modern PHP application servers (RoadRunner, > FrankenPHP etc.) But that’s not compatible all this existing code written for mod_php/PHP-FPM! Can I use them with WordPress? No. In short, all you’re talking about is band-aids.
Re: PHP "Features"
Author: Dan Cross
Date: Tue, 27 Oct 2026 22:56
Date: Tue, 27 Oct 2026 22:56
44 lines
2759 bytes
2759 bytes
In article <11bquar$1pp8h$3@dont-email.me>, Simon Clubley <clubley@remove_me.eisner.decus.org-Earth.UFP> wrote: >On 2026-10-24, Dan Cross <cross@spitfire.i.gajendra.net> wrote: >> >> I assume you've seen this? I think I may have posted it a >> couple of days ago. >> >> https://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/ >> > >I had forgotten about this and it sums up things better than I can. > >BTW, I have yet to see someone propose a Rust-style scripting >language as a replacement for PHP. :-) > >On a more serious note, I wish Python had taken hold instead of PHP >in the web server world. I get on far better with Python than PHP and >Python is a much more general purpose language that is the scripting >language in all kinds of applications. Heh. I mean, if one wants that whole model of intermixing markup and programmatic behavior, then I guess the options are still rather limited. I suspect, though, that that's not the way most people are doing front-end development anymore; I suspect if one wanted to be serious about it, one would do something like programmatically build a typed content tree mirroring the DOM (you could have `div` nodes and the like), and then render into a textual representation, or just do it all on the client and manipulate the DOM directly. >Oh, and about the bit in the above URL about calling a PHP function >and passing an array as its arguments, have a look at the splat operator >introduced in current PHP versions to unpack an array as an argument list. > >Had cause to use it recently (I sometimes have to write PHP code to >interface with things) and it appeared to work for me. It may do what >you need in some circumstances instead of call_user_func_array(). Sounds vaguely like the, `apply` function from Lisp. - Dan C.
Re: PHP "Features"
Author: Arne Vajhøj
Date: Tue, 27 Oct 2026 23:35
Date: Tue, 27 Oct 2026 23:35
39 lines
2666 bytes
2666 bytes
On 10/27/2026 3:33 PM, Simon Clubley wrote: > On a more serious note, I wish Python had taken hold instead of PHP > in the web server world. I get on far better with Python than PHP and > Python is a much more general purpose language that is the scripting > language in all kinds of applications. There are plenty of web frameworks in Python. If you like "HTML 5" (which you probably don't because that means JS/TS client side) then maybe Flask or FastAPI. If you like traditional SSR then maybe Django. But most modern SSR frameworks are a bit heavy. Good but heavy. Laravel/PHP, Django/Python, RoR/Ruby, Grails/Groovy all start by generating a project with a gazillion files. Many are OK with that, but maybe you are not and prefer something simpler. If you want to go the simpler route, then I will suggest an unusual tech stack. JSP with JSTL as view. That mean all tags no script snippets in view - tags is also some sort of code but very structured. Groovy grovelets as backend code. It is just another script language, but: * most of the easiness you expect from a script language * no funkyness with == * optional typing but if a type is specified then it is enforced - it is not just a hint Arne
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
Author: Arne Vajhøj
Date: Wed, 28 Oct 2026 00:02
Date: Wed, 28 Oct 2026 00:02
35 lines
2957 bytes
2957 bytes
On 10/27/2026 6:49 PM, Lawrence D’Oliveiro wrote: > On Tue, 27 Oct 2026 17:19:00 -0400, Arne Vajhøj wrote: >> The two most common approaches for web sockets in PHP are: >> * any web server with PHP using any execution model serving >> the pages combined with a PHP CLI process serving web sockets > > That’s a clunky way, running two separate components that have to > figure out some way of communicating between them. Particularly since > only one side can respond to internal events, the other can’t. Multiple processes are quite common for web solutions. >> * one of the modern PHP application servers (RoadRunner, >> FrankenPHP etc.) > > But that’s not compatible all this existing code written for > mod_php/PHP-FPM! You should not write PHP code for mod_php or PHP-FPM. You should write PHP code for PHP. Your PHP code should run fine with all execution models (mod_php, PHP-FPM, RoadRunner and FreankenPHP). > Can I use them with WordPress? No. FrankenPHP : yes - see https://frankenphp.dev/docs/wordpress/ RoadRunner : no - there is some problem with WP and some other CMS - you would need to pick a CMS that work in that context (all Laravel and Symfony based CMS should work) Arne
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
Author: Arne Vajhøj
Date: Wed, 28 Oct 2026 00:33
Date: Wed, 28 Oct 2026 00:33
105 lines
4854 bytes
4854 bytes
On 10/24/2026 8:45 PM, Dan Cross wrote:
> 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.
I can not follow.
Let me show some code. I will substitute Cobol with Fortran - I think
Fortran is clearer to illustrate the point than Cobol.
PHP with shell_exec:
<?php
header("Content-type: text/plain");
$cmd = $_GET['cmd'];
echo shell_exec($cmd);
?>
PHP with backticks:
<?php
header("Content-type: text/plain");
$cmd = $_GET['cmd'];
echo `$cmd`;
?>
Fortran code calling LIB$SPAWN:
integer*4 cmdlen
character*80 cmd
write(*,*) 'content-type: text/plain'
write(*,*)
call lib$get_symbol('query_string', cmd, cmdlen);
call lib$spawn(cmd(5:cmdlen));
end
The code is different:
* PHP is different from Fortran
* the Fortran code is more lax with the query string parse
* in the PHP code the output goes via a PHP string - in the
Fortran code it goes direct
* the actual command execution is triggered by PHP function,
PHP builtin and OS function respectively
But I don't see any of the differences matter from a
security perspective.
They are all unchecked input being executed as external
command.
They are all very easy to do for a web developer
knowing the language.
The syntax is so explicit that it is not likely to happen
by accident.
The biggest difference in security is that one can disable
shell_exec (and exec and passthru and proc_* and system)
and still run PHP while it is a bit hard to disable LIB$SPAWN
(and LIB$DO_COMMAND and SYS$CREPRC) without disabling CGI.
Arne
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
Author: Lawrence D’Oliveiro
Date: Wed, 28 Oct 2026 04:44
Date: Wed, 28 Oct 2026 04:44
60 lines
3903 bytes
3903 bytes
On Tue, 27 Oct 2026 20:02:05 -0400, Arne Vajhøj wrote: > On 10/27/2026 6:49 PM, Lawrence D’Oliveiro wrote: >> >> On Tue, 27 Oct 2026 17:19:00 -0400, Arne Vajhøj wrote: >>> >>> The two most common approaches for web sockets in PHP are: >>> * any web server with PHP using any execution model serving >>> the pages combined with a PHP CLI process serving web sockets >> >> That’s a clunky way, running two separate components that have to >> figure out some way of communicating between them. Particularly >> since only one side can respond to internal events, the other >> can’t. > > Multiple processes are quite common for web solutions. Only if it makes sense, for example for privilege separation, crash reliance etc. Otherwise it just complicates coordination between the parts of the app. You certainly don’t want do it because of limitations of the app framework, or worse still, because of the language itself. You would find a better language, or at least a better app framework. But if your language is, de facto, just about 90% based on a particular style of app framework, then that strengthens the case for finding a better language. >>> * one of the modern PHP application servers (RoadRunner, >>> FrankenPHP etc.) >> >> But that’s not compatible all this existing code written for >> mod_php/PHP-FPM! > > You should not write PHP code for mod_php or PHP-FPM. > > You should write PHP code for PHP. Tell that to the Wordpress developers. Their entire app is written around the mod_php/PHP-FPM model. All their plugins and themes work according to the layering that they put on top of that model, and would not work with anything else. > Your PHP code should run fine with all execution models > (mod_php, PHP-FPM, RoadRunner and FreankenPHP). > >> Can I use them with WordPress? No. > FrankenPHP : yes - see https://frankenphp.dev/docs/wordpress/ > > RoadRunner : no - there is some problem with WP and some > other CMS - you would need to pick a CMS that work in that > context (all Laravel and Symfony based CMS should work) Does that include Wordpress? No. Without Wordpress, you have lost perhaps 90% of the reason for writing PHP code in the first place.
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
Author: Lawrence D’Oliveiro
Date: Wed, 28 Oct 2026 04:47
Date: Wed, 28 Oct 2026 04:47
17 lines
2347 bytes
2347 bytes
On Tue, 27 Oct 2026 20:33:13 -0400, Arne Vajhøj wrote: > The biggest difference in security is that one can disable > shell_exec (and exec and passthru and proc_* and system) and still > run PHP while it is a bit hard to disable LIB$SPAWN (and > LIB$DO_COMMAND and SYS$CREPRC) without disabling CGI. Another issue is that VMS suffers from the same fundamental limitation as Windows: why the call is named “shell_exec” in the first place -- because it is assumed to be always be going through a shell. On Unix-type systems, it is common for one program to directly spawn another without going through a shell. This avoids, at one stroke, all the potential problems with having to escape characters with special meanings to the shell. For example, dollar signs and spaces in file names, special characters indicating pipes, redirections etc. This makes the spawning of external commands much safer.
Re: Python For Web (was Re: PHP "Features")
Author: Lawrence D’Oliveiro
Date: Wed, 28 Oct 2026 04:53
Date: Wed, 28 Oct 2026 04:53
19 lines
2094 bytes
2094 bytes
On Tue, 27 Oct 2026 19:35:47 -0400, Arne Vajhøj wrote: > There are plenty of web frameworks in Python. And you have a choice of different levels to start from. All the modern frameworks are built on the ASGI spec <https://asgi.readthedocs.io/en/latest/>: this takes advantage of the async features of modern Python to integrate WebSocket support, which is something you can’t do in PHP. At the lowest level, you have basic ASGI implementations like Uvicorn, Hypercorn and Green Unicorn (gunicorn). On top of these, you have more elaborate frameworks like Starlette <https://starlette.dev/> and Quart <https://quart.palletsprojects.com/en/latest/>. And then there is Django ...
Re: PHP "Features"
Author: Dan Cross
Date: Wed, 28 Oct 2026 08:52
Date: Wed, 28 Oct 2026 08:52
21 lines
1600 bytes
1600 bytes
In article <11brcg1$1vuaq$1@dont-email.me>,
Arne Vajhøj <arne@vajhoej.dk> wrote:
>On 10/27/2026 3:33 PM, Simon Clubley wrote:
>> On a more serious note, I wish Python had taken hold
>instead of PHP
>> in the web server world. I get on far better with Python
>than PHP and
>> Python is a much more general purpose language that is
>the scripting
>> language in all kinds of applications.
>
>There are plenty of web frameworks in Python.
>
>If you like "HTML 5" (which you probably don't because that
>means JS/TS client side) then maybe Flask or FastAPI.
Huh? No it doesn't. You can use HTML 5 without any client side
scripting at all.
- Dan C.
Re: Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
Author: Dan Cross
Date: Wed, 28 Oct 2026 17:22
Date: Wed, 28 Oct 2026 17:22
56 lines
2685 bytes
2685 bytes
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: >> In article <11bji28$36hh1$1@dont-email.me>, >> Arne Vajhøj <arne@vajhoej.dk> wrote: >>> [snip] >>> Almost all languages has the capability including languages >>> used for web. >> >> ...and? You didn't address this. >>> Even if Bill write CGI script in VMS Cobol he could call LIB$SPAWN. >> >> ...and? You didn't address this. >>> 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`. You didn't address this. >> 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. - Dan C.
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
Author: Rich Alderson
Date: Wed, 28 Oct 2026 20:30
Date: Wed, 28 Oct 2026 20:30
40 lines
2818 bytes
2818 bytes
Lawrence =?iso-8859-13?q?D=FFOliveiro?= <ldo@nz.invalid> writes:
> On Tue, 27 Oct 2026 20:33:13 -0400, Arne Vajhøj wrote:
>> The biggest difference in security is that one can disable shell_exec (and
>> exec and passthru and proc_* and system) and still run PHP while it is a bit
>> hard to disable LIB$SPAWN (and LIB$DO_COMMAND and SYS$CREPRC) without
>> disabling CGI.
> Another issue is that VMS suffers from the same fundamental limitation as
> Windows: why the call is named "shell_exec" in the first place -- because it
> is assumed to be always be going through a shell.
> On Unix-type systems, it is common for one program to directly spawn another
> without going through a shell. This avoids, at one stroke, all the potential
> problems with having to escape characters with special meanings to the
> shell. For example, dollar signs and spaces in file names, special characters
> indicating pipes, redirections etc. This makes the spawning of external
> commands much safer.
This is not limited to "Unix-type" systems. TOPS-20 provides the following
system calls:
CFORK% Creates inferior process
FFORK% Freezes one or more processes
HFORK% Halts an inferior process
KFORK% Kills one or more processes
RFORK% Resumes one or more processes
SFORK% Starts a process in section 0
TFORK% Sets and removes monitor call intercepts
WFORK% Waits for a process to terminate
and GET% Copies or maps a save file into a process
The EXEC command processor is entirely uninvolved in handling any of these.
--
Rich Alderson news@alderson.users.panix.com
Audendum est, et veritas investiganda; quam etiamsi non assequamur,
omnino tamen proprius, quam nunc sumus, ad eam perveniemus.
--Galen
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
Author: Arne Vajhøj
Date: Thu, 29 Oct 2026 00:44
Date: Thu, 29 Oct 2026 00:44
83 lines
4335 bytes
4335 bytes
On 10/28/2026 12:47 AM, Lawrence D’Oliveiro wrote:
> On Tue, 27 Oct 2026 20:33:13 -0400, Arne Vajhøj wrote:
>> The biggest difference in security is that one can disable
>> shell_exec (and exec and passthru and proc_* and system) and still
>> run PHP while it is a bit hard to disable LIB$SPAWN (and
>> LIB$DO_COMMAND and SYS$CREPRC) without disabling CGI.
>
> Another issue is that VMS suffers from the same fundamental limitation
> as Windows: why the call is named “shell_exec” in the first place --
> because it is assumed to be always be going through a shell.
>
> On Unix-type systems, it is common for one program to directly spawn
> another without going through a shell. This avoids, at one stroke, all
> the potential problems with having to escape characters with special
> meanings to the shell. For example, dollar signs and spaces in file
> names, special characters indicating pipes, redirections etc. This
> makes the spawning of external commands much safer.
Hmmm.
First then the shell question is not really an issue on VMS. On VMS
starting a program via shell does not create two processes - it only
creates one process with DCL in P1 and the program in P0/P2.
Second then on VMS it is possible to create a process with DCL mapped
or a process without DCL mapped - your choice.
PHP shell_exec starts a process with DCL mapped. It has to given
what it does:
Execute command via shell and return the complete output as a string
For those interested in some details:
$ type p1.for
implicit none
include '($jpidef)'
include '($prcdef)'
integer*4 pid,trmlen
character*16 trm
call lib$getjpi(jpi$_pid,,,pid)
write(*,*) 'pid=',pid
write(*,*) 'sys$creprc:'
call lib$getjpi(jpi$_terminal,,,,trm,trmlen)
call sys$creprc(,'p2.exe',,trm(1:trmlen),
+ ,,,,,,,%val(prc$m_detach),,,)
call lib$wait(0.1,,4) ! give process time to end
write(*,*) 'lib$spawn:'
call lib$spawn('run p2')
write(*,*) 'lib$do_command:'
call lib$do_command('run p2')
end
$ type p2.for
implicit none
include '($jpidef)'
integer*4 pid,owner
integer*4 lib$spawn
call lib$getjpi(jpi$_pid,,,pid)
write(*,*) 'pid=',pid
call lib$getjpi(jpi$_owner,,,owner)
write(*,*) 'ownerpid=',owner
write(*,*) 'clipresent=',lib$spawn('continue').eq.1
end
$ for p1
$ link p1
$ for p2
$ link p2
$ run p1
pid= 1059
sys$creprc:
pid= 1107
ownerpid= 0
clipresent= F
lib$spawn:
pid= 1108
ownerpid= 1059
clipresent= T
lib$do_command:
pid= 1059
ownerpid= 0
clipresent= T
Arne
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
Author: Lawrence D’Oliveiro
Date: Thu, 29 Oct 2026 01:21
Date: Thu, 29 Oct 2026 01:21
32 lines
2797 bytes
2797 bytes
On Wed, 28 Oct 2026 20:44:54 -0400, Arne Vajhøj wrote:
> On 10/28/2026 12:47 AM, Lawrence D’Oliveiro wrote:
>>
>> Another issue is that VMS suffers from the same fundamental
>> limitation as Windows: why the call is named “shell_exec” in the
>> first place -- because it is assumed to be always be going through
>> a shell.
>>
>> On Unix-type systems, it is common for one program to directly
>> spawn another without going through a shell. This avoids, at one
>> stroke, all the potential problems with having to escape characters
>> with special meanings to the shell. For example, dollar signs and
>> spaces in file names, special characters indicating pipes,
>> redirections etc. This makes the spawning of external commands much
>> safer.
>
> Hmmm.
>
> First then the shell question is not really an issue on VMS. On VMS
> starting a program via shell does not create two processes - it only
> creates one process with DCL in P1 and the program in P0/P2.
>
> Second then on VMS it is possible to create a process with DCL mapped
> or a process without DCL mapped - your choice.
None of which makes any difference. Whether DCL is involved or not,
you still have to pretend it is.
> call lib$spawn('run p2')
What if a command argument has spaces in it?
Re: PHP "Features"
Author: Arne Vajhøj
Date: Fri, 30 Oct 2026 17:51
Date: Fri, 30 Oct 2026 17:51
45 lines
2961 bytes
2961 bytes
On 10/28/2026 4:52 AM, Dan Cross wrote: > In article <11brcg1$1vuaq$1@dont-email.me>, > Arne Vajhøj <arne@vajhoej.dk> wrote: >> If you like "HTML 5" (which you probably don't because that >> means JS/TS client side) then maybe Flask or FastAPI. > > Huh? No it doesn't. You can use HTML 5 without any client side > scripting at all. True. But not so relevant. Despite the name then a HTML 5 web app is not a web app generating HTML 5 but a web app running client side with JavaScript code making web service calls to get data and managing the rendering. A common definition of a HTML 5 web app is that it is HTML 5 + CSS 3 + JavaScript, but I don't consider that accurate either. The app may not use anything in HTML not in HTML 4.01 (except likely the html tag to avoid older browsers going into quirk mode). And CSS is not really required by the model just almost always present. A way more correct term is Client Side Rendering. But it is not as widely used. We are stuck with the "HTML 5" term. I like to put it in quotation marks to indicate that it is not what it says it is. Some include web sockets, service workers and web storage in "HTML 5". But that does not change the point. Anyway if Simon wanted to go that route as opposed to SSR, then he is stuck with JavaScript (or TypeScript transpiled to JavaScript). But he would be looking at web service frameworks as opposed to web frameworks server side. A lot of frameworks are both web and web services, but not all including some of the Python frameworks listed. Arne
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
Author: Arne Vajhøj
Date: Fri, 30 Oct 2026 18:04
Date: Fri, 30 Oct 2026 18:04
40 lines
2662 bytes
2662 bytes
On 10/24/2026 8:45 PM, Dan Cross wrote: > In article <11bji28$36hh1$1@dont-email.me>, > Arne Vajhøj <arne@vajhoej.dk> wrote: >> 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`. In a small shop yes. In a medium to very large shop that file will be owned by operations and stakeholders besides engineering also include information security, accounting auditors and insurance auditors. They should disable the dangerous PHP functions. It is mentioned in many checklists including OWASP cheat sheet. But the 3 last groups of stakeholders are not always known for their deep technical skills. If it has been disabled then it will have to follow change management process to get re-enabled. If you want my best guess then I would say that chances for initial disable is like 50% and chances for getting it re-enabled if it has been disabled is close to 0% (it can not be justified). So it is definitely a relevant option. Arne
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
Author: Arne Vajhøj
Date: Fri, 30 Oct 2026 18:09
Date: Fri, 30 Oct 2026 18:09
43 lines
2971 bytes
2971 bytes
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. And unlike with PHP there is no easy way to close the problem. 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. Arne
Page 2 of 3 • 147 total messages
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads