🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

147 total messages Page 1 of 3 Started by Subcommandante XDelta Thu, 22 Oct 2026 06:47
Page 1 of 3 • 147 total messages
‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#26
Author: Subcommandante XDelta
Date: Thu, 22 Oct 2026 06:47
6 lines
1538 bytes
‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire

https://www.wired.com/story/this-is-not-a-drill-2-php-vulnerabilities-are-setting-the-internet-on-fire/

Just in case this impacts VMS shops.
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#27
Author: Scott Dorsey
Date: Thu, 22 Oct 2026 14:02
15 lines
1444 bytes
Subcommandante XDelta  <vlf@star.enet.dec.com> wrote:
>‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
>
>https://www.wired.com/story/this-is-not-a-drill-2-php-vulnerabilities-are-setting-the-internet-on-fire/
>
>Just in case this impacts VMS shops.

It will.  There is a VSI version of PHP out there are and it seems people
are using it.  This is a very serious vulnerability although there is no
exploit in the wild yet (and the VMS exploit is likely the last to be 
developed).  But I'd hope that VSI is at work on patches to incorporate the
fixes that were released yesterday.
--scott
-- 
"C'est un Nagra. C'est suisse, et tres, tres precis."
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#29
Author: Arne Vajhøj
Date: Thu, 22 Oct 2026 14:10
29 lines
2491 bytes
On 10/22/2026 10:02 AM, Scott Dorsey wrote:
> Subcommandante XDelta  <vlf@star.enet.dec.com> wrote:
>> ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
>>
>> https://www.wired.com/story/this-is-not-a-drill-2-php-vulnerabilities-are-setting-the-internet-on-fire/
>>
>> Just in case this impacts VMS shops.
> 
> It will.  There is a VSI version of PHP out there are and it seems people
> are using it.  This is a very serious vulnerability although there is no
> exploit in the wild yet (and the VMS exploit is likely the last to be
> developed).  But I'd hope that VSI is at work on patches to incorporate the
> fixes that were released yesterday.
PHP on VMS is a mess.

VSI PHP is an ancient version (8.0!) and lacking extensions. I don't
know if VSI will patch. The patch may not be a trivial "grab from
upstream" as 8.0 is official EOL.

Berryman PHP is much better. I don't think he has released an update
yet.

Latest flavor is Issinoho PHP, which is on latest and greatest 8.5.
And he did release an updated version yesterday.

Arne


Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#28
Author: Arne Vajhøj
Date: Thu, 22 Oct 2026 14:44
38 lines
2838 bytes
On 10/22/2026 10:10 AM, Arne Vajhøj wrote:
> On 10/22/2026 10:02 AM, Scott Dorsey wrote:
>> Subcommandante XDelta  <vlf@star.enet.dec.com> wrote:
>>> ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the 
>>> Internet on Fire
>>>
>>> https://www.wired.com/story/this-is-not-a-drill-2-php- 
>>> vulnerabilities-are-setting-the-internet-on-fire/
>>>
>>> Just in case this impacts VMS shops.
>>
>> It will.  There is a VSI version of PHP out there are and it seems people
>> are using it.  This is a very serious vulnerability although there is no
>> exploit in the wild yet (and the VMS exploit is likely the last to be
>> developed).  But I'd hope that VSI is at work on patches to 
>> incorporate the
>> fixes that were released yesterday.
> PHP on VMS is a mess.
> 
> VSI PHP is an ancient version (8.0!) and lacking extensions. I don't
> know if VSI will patch. The patch may not be a trivial "grab from
> upstream" as 8.0 is official EOL.
> 
> Berryman PHP is much better. I don't think he has released an update
> yet.
> 
> Latest flavor is Issinoho PHP, which is on latest and greatest 8.5.
> And he did release an updated version yesterday.
Of course if one just like traditional PHP code and do
not need features from recent versions, then using Quercus
and Tomcat avoids all this.

https://www.vajhoej.dk/arne/articles/vmsjavaweb.html#other_php

:-)

Arne
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#32
Author: Dennis Boone
Date: Thu, 22 Oct 2026 20:09
9 lines
1806 bytes
 > This is a very serious vulnerability although there is no
 > exploit in the wild yet (and the VMS exploit is likely the last to be 
 > developed).

"No exploit in the wild" is incorrect.

https://aws.amazon.com/es/blogs/security/amazon-threat-intelligence-identifies-php2shell-exploitation-prior-to-public-disclosure-in-madpot/

De
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#33
Author: Lawrence D’Oliveiro
Date: Thu, 22 Oct 2026 22:43
13 lines
1740 bytes
On Thu, 22 Oct 2026 10:10:58 -0400, Arne Vajhøj wrote:

> PHP on VMS is a mess.

s/ on VMS//

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.
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#34
Author: Alexander Schreiber
Date: Fri, 23 Oct 2026 09:01
32 lines
2355 bytes
Scott Dorsey <kludge@panix.com> wrote:
> Subcommandante XDelta  <vlf@star.enet.dec.com> wrote:
>>‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
>>
>>https://www.wired.com/story/this-is-not-a-drill-2-php-vulnerabilities-are-setting-the-internet-on-fire/
>>
>>Just in case this impacts VMS shops.
>
> It will.  There is a VSI version of PHP out there are and it seems people
> are using it.  This is a very serious vulnerability although there is no
> exploit in the wild yet 

That's right there with "this unexploded bomb is probably safe to play
with" ;-)

These days, given how fast we've seen AI tooling cobble together exploits,
it should be assumed that by the time a vulnerability is known, exploits are
out in the wild and used.

> (and the VMS exploit is likely the last to be 
> developed).

Maybe. Although given that anything running OpenVMS these days is most
likely hosting something interesting (as opposed to a blog nobody cares
about), I'd not be surprised if the platform gets more attention than
previously.

Kind regards,
           Alex.
-- 
"Opportunity is missed by most people because it is dressed in overalls and
 looks like work."                                      -- Thomas A. Edison
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#35
Author: Michael S
Date: Fri, 23 Oct 2026 09:39
24 lines
2253 bytes
On Thu, 22 Oct 2026 22:43:59 -0000 (UTC)
Lawrence D’Oliveiro <ldo@nz.invalid> wrote:

> On Thu, 22 Oct 2026 10:10:58 -0400, Arne Vajhøj wrote:
> 
> > PHP on VMS is a mess.  
> 
> s/ on VMS//
> 
> 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.
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#36
Author: Michael S
Date: Fri, 23 Oct 2026 09:42
42 lines
2862 bytes
On Fri, 23 Oct 2026 11:01:03 +0200
Alexander Schreiber <als@usenet.thangorodrim.de> wrote:

> Scott Dorsey <kludge@panix.com> wrote:
> > Subcommandante XDelta  <vlf@star.enet.dec.com> wrote:  
> >>‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the
> >>Internet on Fire
> >>
> >>https://www.wired.com/story/this-is-not-a-drill-2-php-vulnerabilities-are-setting-the-internet-on-fire/
> >>
> >>Just in case this impacts VMS shops.  
> >
> > It will.  There is a VSI version of PHP out there are and it seems
> > people are using it.  This is a very serious vulnerability although
> > there is no exploit in the wild yet   
> 
> That's right there with "this unexploded bomb is probably safe to play
> with" ;-)
> 
> These days, given how fast we've seen AI tooling cobble together
> exploits, it should be assumed that by the time a vulnerability is
> known, exploits are out in the wild and used.
> 
> > (and the VMS exploit is likely the last to be 
> > developed).  
> 
> Maybe. Although given that anything running OpenVMS these days is most
> likely hosting something interesting (as opposed to a blog nobody
> cares about), I'd not be surprised if the platform gets more
> attention than previously.
> 
> Kind regards,
>            Alex.

Hopefully, majority of those interesting VMS web servers are serving
various intranets rather than the Internet.
Or I am naive.


Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#37
Author: Abandoned Trolley
Date: Fri, 23 Oct 2026 10:00
13 lines
1876 bytes
> 
> 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.
> 



Meanwhile ...  around 40% of all the worlds web sites are powered by 
Wordpress
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#38
Author: Dan Cross
Date: Fri, 23 Oct 2026 11:51
36 lines
2363 bytes
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:
>
>> On Thu, 22 Oct 2026 10:10:58 -0400, Arne Vajhøj wrote:
>> 
>> > PHP on VMS is a mess.  
>> 
>> s/ on VMS//
>> 
>> 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.  The syntax was clearly inspired by Perl,
which was popular at the time among the audience that PHP seemed
targeted for.

In product terms, PHP has been amazingly successful.  From a
language design perspective, well...maybe not so much.

	- Dan C.
Re: ?This Is Not a Drill?: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#39
Author: Simon Clubley
Date: Fri, 23 Oct 2026 12:34
41 lines
2791 bytes
On 2026-10-23, Michael S <already5chosen@yahoo.com> wrote:
> On Thu, 22 Oct 2026 22:43:59 -0000 (UTC)
> Lawrence D?Oliveiro <ldo@nz.invalid> wrote:
>
>> On Thu, 22 Oct 2026 10:10:58 -0400, Arne Vajhøj wrote:
>> 
>> > PHP on VMS is a mess.  
>> 
>> s/ on VMS//
>> 
>> 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.
>

They have a large installed base and a large ecosystem to go with it.

That's it and that (unfortunately) is all they need to stay dominant
until something much more dramatically better comes along.

This is the actual vulnerability writeup:

https://www.wiz.io/blog/php2shell-php-rce

According to this writeup, only the last decade of releases are vulnerable.

Simon.

-- 
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
#40
Author: Simon Clubley
Date: Fri, 23 Oct 2026 12:40
27 lines
2278 bytes
On 2026-10-23, Michael S <already5chosen@yahoo.com> wrote:
> On Fri, 23 Oct 2026 11:01:03 +0200
> Alexander Schreiber <als@usenet.thangorodrim.de> wrote:
>> 
>> Maybe. Although given that anything running OpenVMS these days is most
>> likely hosting something interesting (as opposed to a blog nobody
>> cares about), I'd not be surprised if the platform gets more
>> attention than previously.
>> 

That is something I agree with as well, and the management focus may not
be on those VMS systems in the way that it is on the more mainstream
operating systems.

> Hopefully, majority of those interesting VMS web servers are serving
> various intranets rather than the Internet.
> Or I am naive.
>

I would hope that for something that important, those internal networks
are treated as potentially as hostile as those external networks.

Simon.

-- 
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
#41
Author: Arne Vajhøj
Date: Fri, 23 Oct 2026 14:04
13 lines
1977 bytes
On 10/23/2026 8:40 AM, Simon Clubley wrote:
> On 2026-10-23, Michael S <already5chosen@yahoo.com> wrote:
>> Hopefully, majority of those interesting VMS web servers are serving
>> various intranets rather than the Internet.
>> Or I am naive.
> 
> I would hope that for something that important, those internal networks
> are treated as potentially as hostile as those external networks.
Despite the CIO's favorite 100 slides PPT deck containing
the acronym ZTA 37 times then probably not ...

Arne
Re: ?This Is Not a Drill?: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#42
Author: Arne Vajhøj
Date: Fri, 23 Oct 2026 14:12
23 lines
2025 bytes
On 10/23/2026 8:34 AM, Simon Clubley wrote:
> This is the actual vulnerability writeup:
> 
> https://www.wiz.io/blog/php2shell-php-rce
> 
> According to this writeup, only the last decade of releases are vulnerable.
It says:

<quote>
Every PHP version released in the last decade is affected by at least 
one of these vulnerabilities, going back to version 5.4.
</quote>

5.4 is from 2012.

(last update to 5.4 was in 2015)

I don't like the wording, but "last decade" is part of 2012-2026.

But be careful about "only".

Arne
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#43
Author: Arne Vajhøj
Date: Fri, 23 Oct 2026 14:23
41 lines
3075 bytes
On 10/23/2026 5:39 AM, Michael S 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.
ASP and PHP was widely successful because they were easy
to use.

MS killed ASP Classic for ASP.NET - that probably made business
sense because the money are in enterprise web not in amateur
programmer web, but that left the easy web market to PHP.

Multiple generations of web developers has had PHP as sort
of default web language.

In some ways the popularity has been both a blessing and
a curse for PHP.

It is nice to be popular. But when everybody can code in
PHP then everyone - including some that probably should not
have - code in PHP.

Todays PHP is many things. There is a professional PHP segment
using Laravel, Symfony, Doctrine, Eloquent etc. powering many
of the worlds largest web sites. And then there is the large
number of hobby programmers that write PHP code so you want to
cry.

Arne
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#44
Author: Scott Lurndal
Date: Fri, 23 Oct 2026 14:32
11 lines
1469 bytes
drb@ihatespam.msu.edu (Dennis Boone) writes:
> > This is a very serious vulnerability although there is no
> > exploit in the wild yet (and the VMS exploit is likely the last to be 
> > developed).
>
>"No exploit in the wild" is incorrect.
>
>https://aws.amazon.com/es/blogs/security/amazon-threat-intelligence-identifies-php2shell-exploitation-prior-to-public-disclosure-in-madpot/

They noted 'attempts to exploit'.    As of yesterday, there had been no
successful attempts to my knowledge.
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#45
Author: Arne Vajhøj
Date: Fri, 23 Oct 2026 14:33
27 lines
2338 bytes
On 10/23/2026 6:00 AM, Abandoned Trolley wrote:
>> 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.
> 
> Meanwhile ...  around 40% of all the worlds web sites are powered by 
> Wordpress

WP is PHP.

And not surprising at all.

If one looked at the available CMS's like 15 years ago, then
one would see 1000 in PHP, 10 in .NET, 10 in Java and 10 in
Python. No surprise that one of the PHP based ended up on
top.

Also the PHP community's strong foundation among non-professional
developers probably helped a lot creating a CMS suitable for
ordinary people.

Arne


Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#46
Author: Abandoned Trolley
Date: Fri, 23 Oct 2026 14:59
16 lines
2110 bytes
On 23/10/2026 15:33, Arne Vajhøj wrote:
> On 10/23/2026 6:00 AM, Abandoned Trolley wrote:
>>> 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.
>>
>> Meanwhile ...  around 40% of all the worlds web sites are powered by 
>> Wordpress
> 
> WP is PHP.
> 


thats the exact point I was trying to make :-\
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#47
Author: Arne Vajhøj
Date: Fri, 23 Oct 2026 15:12
24 lines
2384 bytes
On 10/23/2026 10:59 AM, Abandoned Trolley wrote:
> On 23/10/2026 15:33, Arne Vajhøj wrote:
>> On 10/23/2026 6:00 AM, Abandoned Trolley wrote:
>>>> 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.
>>>
>>> Meanwhile ...  around 40% of all the worlds web sites are powered by 
>>> Wordpress
>>
>> WP is PHP.
> 
> thats the exact point I was trying to make :-\

OK.

If counting web sites (meaning that both www.facebook.com and
www.myauntscatshomepage.com count as one) then the web is
40% WP + 30% all other PHP + 30% everything else.

Arne
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#48
Author: Bill Gunshannon
Date: Fri, 23 Oct 2026 16:36
18 lines
1736 bytes
On 10/23/26 10:32, Scott Lurndal wrote:
> drb@ihatespam.msu.edu (Dennis Boone) writes:
>>> This is a very serious vulnerability although there is no
>>> exploit in the wild yet (and the VMS exploit is likely the last to be
>>> developed).
>>
>> "No exploit in the wild" is incorrect.
>>
>> https://aws.amazon.com/es/blogs/security/amazon-threat-intelligence-identifies-php2shell-exploitation-prior-to-public-disclosure-in-madpot/
> 
> They noted 'attempts to exploit'.    As of yesterday, there had been no
> successful attempts to my knowledge.

The ones you don't know about are a bigger threat than the ones you
do know about.

bill
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#49
Author: Bill Gunshannon
Date: Fri, 23 Oct 2026 16:40
45 lines
2773 bytes
On 10/23/26 07:51, 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:
>>
>>> On Thu, 22 Oct 2026 10:10:58 -0400, Arne Vajhøj wrote:
>>>
>>>> PHP on VMS is a mess.
>>>
>>> s/ on VMS//
>>>
>>> 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.  The syntax was clearly inspired by Perl,
> which was popular at the time among the audience that PHP seemed
> targeted for.
> 
> In product terms, PHP has been amazingly successful.  From a
> language design perspective, well...maybe not so much.
> 


When I first saw PHP I saw a massive security problem.  Sadly, people
still insisted on using it.  Being retired I no longer have to spend my
time cleaning up for other peoples mistakes but I doubt that the
security behind PHP has improved.

bill

Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#50
Author: Scott Dorsey
Date: Fri, 23 Oct 2026 18:15
15 lines
1388 bytes
Michael S  <already5chosen@yahoo.com> wrote:
>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?

This is a very good question that I have been asking myself for years.

>My guess would be that they are doing something right.

Clearly they are doing something right but it's clearly not anything
technical.
--scott
-- 
"C'est un Nagra. C'est suisse, et tres, tres precis."
Re: ?This Is Not a Drill?: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#51
Author: Simon Clubley
Date: Fri, 23 Oct 2026 18:36
32 lines
2501 bytes
On 2026-10-23, Scott Dorsey <kludge@panix.com> wrote:
> Michael S  <already5chosen@yahoo.com> wrote:
>>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?
>
> This is a very good question that I have been asking myself for years.
>

Because Perl is horrible to learn and use compared to PHP.

At a technical level, PHP is a horrible language but it is easy to learn.
It is the 21st century version of Visual Basic.

>>My guess would be that they are doing something right.
>
> Clearly they are doing something right but it's clearly not anything
> technical.

It wasn't about doing something right. They got lucky. They were able
to establish a large foothold in an empty market segment waiting to
be filled. Perl was starting in this segment, but it was far easier
for people to use PHP to fill this segment.

The PHP solutions now have the installed base advantage. Unfortunately.

Simon.

-- 
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
#52
Author: Arne Vajhøj
Date: Fri, 23 Oct 2026 19:37
72 lines
3327 bytes
On 10/23/2026 2:36 PM, Simon Clubley wrote:
> On 2026-10-23, Scott Dorsey <kludge@panix.com> wrote:
>> Michael S  <already5chosen@yahoo.com> wrote:
>>> 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?
>>
>> This is a very good question that I have been asking myself for years.
> 
> Because Perl is horrible to learn and use compared to PHP.

There are people that like Perl.

Does not include me though.

> At a technical level, PHP is a horrible language but it is easy to learn.
> It is the 21st century version of Visual Basic.

True.

It seems that generally simple easy to learn languages
tend to become more popular than complex hard to learn
languages.

>>> My guess would be that they are doing something right.
>>
>> Clearly they are doing something right but it's clearly not anything
>> technical.
> 
> It wasn't about doing something right. They got lucky. They were able
> to establish a large foothold in an empty market segment waiting to
> be filled. Perl was starting in this segment, but it was far easier
> for people to use PHP to fill this segment.

I would not say that they filled an empty space.

PHP and ASP delivered something people wanted.

ASP was more popular than PHP.

But then MS killed ASP with .NET and left amateur web
programming to PHP.

PHP did not overtake ASP until the mid 00's.

> The PHP solutions now have the installed base advantage. Unfortunately.
PHP is still rather unique with a low barrier to entry skill wise.

What web technologies today are easy to use for spaghetti programming?

Plain PHP without one of the PHP MVC frameworks can still do it.

JSF with Facelets : no
ASP.NET web form : no
Spring MVC with Thymeleaf : no
Ktor : no
Grails : no
ASP.NET MVC with Razor : no
RoR : no
Django : no

Anything where the tutorial start with model/view/controller
or component is more or less limiting the user base to IT
professionals.

Arne




Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#53
Author: Lawrence D’Oliveiro
Date: Fri, 23 Oct 2026 19:51
49 lines
3371 bytes
On Fri, 23 Oct 2026 10:23:16 -0400, Arne Vajhøj wrote:

> On 10/23/2026 5:39 AM, Michael S 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.
>>
> ASP and PHP was widely successful because they were easy
> to use.

Obviously there was the inertia element; according to “at least until
recently”, that now no longer applies. Inertia can eventually be
overcome.

I was expecting NodeJS to be number one for web development now, and
it probably is. But Python has some pretty good tooling in this area
too -- as in many others, given the innate flexibility of the
language.

> In some ways the popularity has been both a blessing and
> a curse for PHP.

It wasn’t popularity that made PHP such a mediocre product. It was its
mediocrity that attracted the kind of mediocre programmer that found
it approachable.

> Todays PHP is many things. There is a professional PHP segment using
> Laravel, Symfony, Doctrine, Eloquent etc. powering many of the
> worlds largest web sites.

Most or all of those are still built around the strict
one-page-per-file request/response model. They can’t handle
WebSockets, just for example. Or basic background tasks, that might
need to run independently of page requests from users.
Re: Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#54
Author: Dan Cross
Date: Fri, 23 Oct 2026 21:11
54 lines
3627 bytes
In article <nk1gv8F1eecU1@mid.individual.net>,
Bill Gunshannon  <bill.gunshannon@gmail.com> wrote:
>On 10/23/26 07:51, Dan Cross wrote:
>> [snip]
>> 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.  The syntax was clearly inspired by Perl,
>> which was popular at the time among the audience that PHP seemed
>> targeted for.
>> 
>> In product terms, PHP has been amazingly successful.  From a
>> language design perspective, well...maybe not so much.
>
>When I first saw PHP I saw a massive security problem.  Sadly, people
>still insisted on using it.  Being retired I no longer have to spend my
>time cleaning up for other peoples mistakes but I doubt that the
>security behind PHP has improved.

It feels a bit silly asking this now, but in what way?  I mean,
what at the time stuck out as an obvious security hole?

The early web was a mess.  The protocol was hugely wasteful; the
markup language was anemic, and people were resorting to all
kinds of bad ideas to try and build content (constructing forms
from tables, for example, so that boxes could be aligned).  The
web had coalesced around an example from a book with a single
addition, but like a high-school kegger, the word got out and it
quickly got out of hand. A lot of non-technical people were
authoring web pages and web sites by writing HTML directly.
They didn't _want_ to become programmers.

CFML, ASP, and PHP stepped into that world and filled a bit of a
void.  It inverted the model; you weren't writing programs to
generate markup guided by the program's behavior, you were
injecting behavior by embedding little snippets of programs in
your markup.  The design-oriented types who wanted to focus on
content could largely do that.  I don't think that has to be
inherently insecure, though I can see how having someone around
to add a bit of domain expertise to the mix can prevent a lot of
problems down the road.  Textual interpolation is a powerful
tool; so is a chainsaw.  Both can do a lot of damage.

The web model, built around links between tree-oriented document
objects serialied into an overly-verbose text format with
(frankly) weird parsing rules has caused a lot of damage.  The
tree-oriented structure itself isn't bad, but it's expression in
HTML is not good, either.  I think that leads to more problems
than just PHP.

But PHP is also a "Fractal of Bad Design":
https://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/

	- Dan C.
Re: Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#55
Author: Dan Cross
Date: Fri, 23 Oct 2026 21:12
30 lines
2277 bytes
In article <11bfqk8$1se9o$1@dont-email.me>,
Arne Vajhøj <arne@vajhoej.dk> wrote:
>On 10/23/2026 5:39 AM, Michael S 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.
>
>ASP and PHP was widely successful because they were easy
>to use.

They also exposed a model people wanted: behavior embedded
inside of markup, as opposed to the model that dominated early
on, where behavior dictates the generatoin of markup.  "Content"
people wanted to focus on content and presentation, but software
development, for both good and bad.

	- Dan C.
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#56
Author: Bill Gunshannon
Date: Sat, 24 Oct 2026 00:13
40 lines
2751 bytes
On 10/23/26 17:11, Dan Cross wrote:
> In article <nk1gv8F1eecU1@mid.individual.net>,
> Bill Gunshannon  <bill.gunshannon@gmail.com> wrote:
>> On 10/23/26 07:51, Dan Cross wrote:
>>> [snip]
>>> 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.  The syntax was clearly inspired by Perl,
>>> which was popular at the time among the audience that PHP seemed
>>> targeted for.
>>>
>>> In product terms, PHP has been amazingly successful.  From a
>>> language design perspective, well...maybe not so much.
>>
>> When I first saw PHP I saw a massive security problem.  Sadly, people
>> still insisted on using it.  Being retired I no longer have to spend my
>> time cleaning up for other peoples mistakes but I doubt that the
>> security behind PHP has improved.
> 
> It feels a bit silly asking this now, but in what way?  I mean,
> what at the time stuck out as an obvious security hole?
> 
I'll just throw out the one I saw abused the most.
And, again, I am no longer involved maybe this went
away eventually but....

It was possible to get PHP to execute arbitrary commands
sent to it when it was used on the web.  I saw people
from outside the university doing things like listing
directories and uploading files containing potentially
dangerous code.

And, no, I no longer have any of the examples.  It was
possible to tighten security up to stop it but that also
stopped things the professors and students wanted to do.

I do  not now and would never consider using PHP for anything.

bill
Re: Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#57
Author: Dan Cross
Date: Sat, 24 Oct 2026 01:59
54 lines
3412 bytes
In article <nk2bhaF5j2sU1@mid.individual.net>,
Bill Gunshannon  <bill.gunshannon@gmail.com> wrote:
>On 10/23/26 17:11, Dan Cross wrote:
>> In article <nk1gv8F1eecU1@mid.individual.net>,
>> Bill Gunshannon  <bill.gunshannon@gmail.com> wrote:
>>> On 10/23/26 07:51, Dan Cross wrote:
>>>> [snip]
>>>> 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.  The syntax was clearly inspired by Perl,
>>>> which was popular at the time among the audience that PHP seemed
>>>> targeted for.
>>>>
>>>> In product terms, PHP has been amazingly successful.  From a
>>>> language design perspective, well...maybe not so much.
>>>
>>> When I first saw PHP I saw a massive security problem.  Sadly, people
>>> still insisted on using it.  Being retired I no longer have to spend my
>>> time cleaning up for other peoples mistakes but I doubt that the
>>> security behind PHP has improved.
>> 
>> It feels a bit silly asking this now, but in what way?  I mean,
>> what at the time stuck out as an obvious security hole?
>> 
>I'll just throw out the one I saw abused the most.
>And, again, I am no longer involved maybe this went
>away eventually but....
>
>It was possible to get PHP to execute arbitrary commands
>sent to it when it was used on the web.  I saw people
>from outside the university doing things like listing
>directories and uploading files containing potentially
>dangerous code.
>
>And, no, I no longer have any of the examples.  It was
>possible to tighten security up to stop it but that also
>stopped things the professors and students wanted to do.
>
>I do  not now and would never consider using PHP for anything.

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.

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

	- Dan C.
PHP "Features"
#58
Author: Simon Clubley
Date: Sat, 24 Oct 2026 12:12
60 lines
3629 bytes
On 2026-10-23, Dan Cross <cross@spitfire.i.gajendra.net> wrote:
> In article <nk2bhaF5j2sU1@mid.individual.net>,
> Bill Gunshannon  <bill.gunshannon@gmail.com> wrote:
>>
>>It was possible to get PHP to execute arbitrary commands
>>sent to it when it was used on the web.  I saw people
>>from outside the university doing things like listing
>>directories and uploading files containing potentially
>>dangerous code.
>>
>>And, no, I no longer have any of the examples.  It was
>>possible to tighten security up to stop it but that also
>>stopped things the professors and students wanted to do.
>>
>>I do  not now and would never consider using PHP for anything.
>
> 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.
>
> 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).
>

You are correct Dan that it had to be a programming error for that
to happen (it was not some builtin feature of PHP) but it is also
_way_ too easy to make silly programming errors in PHP.

Some simple examples:

1) Equality in PHP is loose equality "==" by default. You have to use
"===" to get strict equality. This leads to warnings like this scattered
throughout the PHP manual: (See the Return Values section.)

https://www.php.net/manual/en/function.fgetc.php

This is a great source of subtle errors. I don't like to see PHP code
that uses loose equality for this reason.

2) Things that should be errors are warnings and execution continues by
default unless you make the error reporting level more strict in your
code. I always use strict error reporting when I have to use PHP for
this reason.

3) mysqli_real_escape_string() doesn't always work:

https://www.php.net/manual/en/mysqli.real-escape-string.php

(See the Warning: section)

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"
#59
Author: Arne Vajhøj
Date: Sat, 24 Oct 2026 15:59
142 lines
4937 bytes
On 10/24/2026 8:12 AM, Simon Clubley wrote:
> Some simple examples:
> 
> 1) Equality in PHP is loose equality "==" by default. You have to use
> "===" to get strict equality. This leads to warnings like this scattered
> throughout the PHP manual: (See the Return Values section.)
> 
> https://www.php.net/manual/en/function.fgetc.php
> 
> This is a great source of subtle errors. I don't like to see PHP code
> that uses loose equality for this reason.

The type juggling thing is not good.

Sins of the past.

Always === is a good workaround.

> 2) Things that should be errors are warnings and execution continues by
> default unless you make the error reporting level more strict in your
> code. I always use strict error reporting when I have to use PHP for
> this reason.

Strict is good.

I believe you can change it globally in php.ini.

> 3) mysqli_real_escape_string() doesn't always work:
> 
> https://www.php.net/manual/en/mysqli.real-escape-string.php
> 
> (See the Warning: section)
It always works as documented and intended.

First note that the recommended way to use mysqli is to use prepare.
mysqli_real_escape_string only exist for extraordinary circumstances.

Regarding the warning then:

# This function does not add quotes around the result; they must be
# added by the caller.

Yes.

$ type simon.php
<?php

function test($s) {
     $con = mysqli_connect('ARNEPC5', 'arne', 'hemmeligt', 'Test');
     echo sprintf("%s -> %s\n", $s, mysqli_real_escape_string($con, $s));
}

test('AB');
test("A'B");
test('A\B');

?>
$ php simon.php
AB -> AB
A'B -> A\'B
A\B -> A\\B

But there is a reason that the function is called escape
and not escape_and_quote - it just escapes - it does not quote.

People need to use:

$sql = sprintf('SELECT ... WHERE ... f = '%s', 
mysqli_real_escape_string($con, $f));

instead of just:

$sql = sprintf('SELECT ... WHERE ... f = %s, 
mysqli_real_escape_string($con, $f));

(note that the old mysql_real_escape_string did
not quote either)

But that is what the function does.

# If the NO_BACKSLASH_ESCAPES SQL mode is enabled on the connection,
# only the single quote (') is escaped, so a value placed between double
# quotes (") can terminate the string and allow SQL injection.

Sounds a bit cryptic but is actually relative simple.

mysql> CREATE TABLE simon (
     ->     id INTEGER NOT NULL PRIMARY KEY,
     ->     txt VARCHAR(50)
     -> );
Query OK, 0 rows affected (0.02 sec)

mysql> INSERT INTO simon VALUES(1, 'A\\B');
Query OK, 1 row affected (0.01 sec)

mysql> SELECT * FROM simon;
+----+------+
| id | txt  |
+----+------+
|  1 | A\B  |
+----+------+
1 row in set (0.00 sec)

mysql> SET @@session.sql_mode = CONCAT(@@session.sql_mode, 
',NO_BACKSLASH_ESCAPES');
Query OK, 0 rows affected (0.00 sec)

mysql> INSERT INTO simon VALUES(2, 'A\\B');
Query OK, 1 row affected (0.01 sec)

mysql> SELECT * FROM simon;
+----+------+
| id | txt  |
+----+------+
|  1 | A\B  |
|  2 | A\\B |
+----+------+
2 rows in set (0.00 sec)

PHP mysqli_real_escape_string put backslashes in front of problematic
characters.

MySQL NO_BACKSLASH_ESCAPES tell MySQL to not treat backslashes
special.

It is obvious that those two do not work well together.

Neither issue qualify as mysqli_real_escape_string not
working in my book.

I understand that they put the warning in though - I am sure
some users have messed up with these.

Arne







Re: PHP "Features"
#60
Author: Dan Cross
Date: Sat, 24 Oct 2026 17:22
53 lines
3225 bytes
In article <11bi7bg$2mdi4$1@dont-email.me>,
Simon Clubley  <clubley@remove_me.eisner.decus.org-Earth.UFP> wrote:
>On 2026-10-23, Dan Cross <cross@spitfire.i.gajendra.net> wrote:
>> In article <nk2bhaF5j2sU1@mid.individual.net>,
>> Bill Gunshannon  <bill.gunshannon@gmail.com> wrote:
>>>
>>>It was possible to get PHP to execute arbitrary commands
>>>sent to it when it was used on the web.  I saw people
>>>from outside the university doing things like listing
>>>directories and uploading files containing potentially
>>>dangerous code.
>>>
>>>And, no, I no longer have any of the examples.  It was
>>>possible to tighten security up to stop it but that also
>>>stopped things the professors and students wanted to do.
>>>
>>>I do  not now and would never consider using PHP for anything.
>>
>> 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.
>>
>> 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).
>
>You are correct Dan that it had to be a programming error for that
>to happen (it was not some builtin feature of PHP) but it is also
>_way_ too easy to make silly programming errors in PHP.

Oh, don't get me wrong; I don't thnk that PHP is a _good_
language.  But failure to validate input is not unique to PHP.

>Some simple examples:
>
>1) Equality in PHP is loose equality "==" by default. [...]
>2) Things that should be errors are warnings and execution continues by
>default unless you make the error reporting level more strict in your
>code. I always use strict error reporting when I have to use PHP for
>this reason.
>3) mysqli_real_escape_string() doesn't always work: [...]

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/

	- Dan C.
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#61
Author: Arne Vajhøj
Date: Sat, 24 Oct 2026 18:43
40 lines
2959 bytes
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.

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

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.

Arne



Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#62
Author: Arne Vajhøj
Date: Sat, 24 Oct 2026 19:10
184 lines
7187 bytes
On 10/23/2026 5:11 PM, Dan Cross wrote:
> The early web was a mess.  The protocol was hugely wasteful; the
> markup language was anemic, and people were resorting to all
> kinds of bad ideas to try and build content (constructing forms
> from tables, for example, so that boxes could be aligned).  The
> web had coalesced around an example from a book with a single
> addition, but like a high-school kegger, the word got out and it
> quickly got out of hand. A lot of non-technical people were
> authoring web pages and web sites by writing HTML directly.
> They didn't _want_ to become programmers.
> 
> CFML, ASP, and PHP stepped into that world and filled a bit of a
> void.  It inverted the model; you weren't writing programs to
> generate markup guided by the program's behavior, you were
> injecting behavior by embedding little snippets of programs in
> your markup.  The design-oriented types who wanted to focus on
> content could largely do that.  I don't think that has to be
> inherently insecure, though I can see how having someone around
> to add a bit of domain expertise to the mix can prevent a lot of
> problems down the road.  Textual interpolation is a powerful
> tool; so is a chainsaw.  Both can do a lot of damage.
No doubt that the switch from CGI to ASP and PHP changed
who could and who did make dynamic web pages.

But at the core ASP and PHP are really just a way to
save a gazillion "response write".

Here is super simple example of DCL CGI:

$ write sys$output "content-type: text/html"
$ write sys$output ""
$ write sys$output "<html>"
$ write sys$output "<head>"
$ write sys$output "<title>Show time</title>"
$ write sys$output "</head>"
$ write sys$output "<body>"
$ write sys$output "<h1>Show time</h1>"
$ write sys$output "<p>"
$ write sys$output "Time is " + f$time() + "."
$ write sys$output "</p>"
$ write sys$output "</body>"
$ write sys$output "</html>"
$ exit

(I chose DCL because with my Perl skills I would
not bother the Perl gurus here with my way of writing
Perl)

In PHP it becomes:

<html>
<head>
<title>Show time</title>
</head>
<body>
<h1>Show time</h1>
<p>
Time is <?php echo date('d-M-Y H:i:s', time()); ?>.
</p>
</body>
</html>

What is the real difference here? We avoid the response
write ($ write sys$output) for all the static pieces.
Making it a lot more readable.

It becomes even more clear if we look at JSP.

First a Servlet:

package test;

import java.io.*;
import java.text.*;
import java.util.*;

import javax.servlet.*;
import javax.servlet.annotation.*;
import javax.servlet.http.*;

public class TimServlet extends HttpServlet {
     private static DateFormat df = new SimpleDateFormat("dd-MMM-yyyy 
HH:mm:ss");
     public void doGet(HttpServletRequest request, HttpServletResponse 
response) throws ServletException, IOException {
         PrintWriter out = response.getWriter();
         out.write("<html>\n");
         out.write("<head>\n");
         out.write("<title>Show time</title>\n");
         out.write("</head>\n");
         out.write("<body>\n");
         out.write("<h1>Show time</h1>\n");
         out.write("<p>\n");
         out.write("Time is ");
         out.write(df.format(new Date()));
         out.write(".\n");
         out.write("</p>\n");
         out.write("</body>\n");
         out.write("</html>\n");
     }
}

And then an equivalent JSP:

<%@ page import="java.util.*,java.text.*" %>
<%!
private static DateFormat df = new SimpleDateFormat("dd-MMM-yyyy HH:mm:ss");
%>
<html>
<head>
<title>Show time</title>
</head>
<body>
<h1>Show time</h1>
<p>
Time is <% out.write(df.format(new Date())); %>.
</p>
</body>
</html>

Again we save a bunch of response write (out.write) for
all the static pieces.

(we also save some Java declaration overhead, but that
is just because Java is a bit verbose)

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.

So we can look at the generated Java code:

package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import java.text.*;

public final class tim_jsp extends org.apache.jasper.runtime.HttpJspBase
     implements org.apache.jasper.runtime.JspSourceDependent,
                  org.apache.jasper.runtime.JspSourceImports {

private static DateFormat df = new SimpleDateFormat("dd-MMM-yyyy HH:mm:ss");

   // lots of code not relevant for this example

   public void _jspService(final javax.servlet.http.HttpServletRequest 
request, final javax.servlet.http.HttpServletResponse respons
e)
       throws java.io.IOException, javax.servlet.ServletException {

       // more code not so relevant

       out.write('\n');
       out.write("\n");
       out.write("<html>\n");
       out.write("<head>\n");
       out.write("<title>Show time</title>\n");
       out.write("</head>\n");
       out.write("<body>\n");
       out.write("<h1>Show time</h1>\n");
       out.write("<p>\n");
       out.write("Time is ");
  out.write(df.format(new Date()));
       out.write(".\n");
       out.write("</p>\n");
       out.write("</body>\n");
       out.write("</html>\n");

       // more code not so relevant

   }
}

Basically the infrastructure has converted to JSP page to a
servlet with the tedious out.write generated.

Arne
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#63
Author: Arne Vajhøj
Date: Sat, 24 Oct 2026 19:15
39 lines
2878 bytes
On 10/23/2026 8:13 PM, Bill Gunshannon wrote:
> On 10/23/26 17:11, Dan Cross wrote:
>> In article <nk1gv8F1eecU1@mid.individual.net>,
>> Bill Gunshannon  <bill.gunshannon@gmail.com> wrote:
>>> When I first saw PHP I saw a massive security problem.  Sadly, people
>>> still insisted on using it.  Being retired I no longer have to spend my
>>> time cleaning up for other peoples mistakes but I doubt that the
>>> security behind PHP has improved.
>>
>> It feels a bit silly asking this now, but in what way?  I mean,
>> what at the time stuck out as an obvious security hole?
>>
> I'll just throw out the one I saw abused the most.
> And, again, I am no longer involved maybe this went
> away eventually but....
> 
> It was possible to get PHP to execute arbitrary commands
> sent to it when it was used on the web.

PHP has both an exec and a proc_open function.

You can also call LIB$SPAWN form Cobol.

In both cases it is wise to check the input.

 >                                         I saw people
 > from outside the university doing things like listing
 > directories and uploading files containing potentially
 > dangerous code.

File upload is a key feature in PHP. Because many web
sited need it.

There are also lots of ways to control file upload in PHP.

Which should be utilized.

Arne
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#64
Author: 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
Re: Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#65
Author: Scott Dorsey
Date: Sat, 24 Oct 2026 19:39
24 lines
1989 bytes
Dan Cross <cross@spitfire.i.gajendra.net> wrote:
>The early web was a mess.  The protocol was hugely wasteful; the
>markup language was anemic, and people were resorting to all
>kinds of bad ideas to try and build content (constructing forms
>from tables, for example, so that boxes could be aligned).  The
>web had coalesced around an example from a book with a single
>addition, but like a high-school kegger, the word got out and it
>quickly got out of hand. A lot of non-technical people were
>authoring web pages and web sites by writing HTML directly.
>They didn't _want_ to become programmers.

The early web was intended to provide content, and there was some HTML
to tell the browser basically what the content was like, but the format
and presentation was up to the browser.

When this was the case, writing HTML directly wasn't difficult at all.

What happened was that people made the decision that they should be 
able to override the desires of the browser and force specific formatting
on the material.  And that ruined everything.
--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
#66
Author: Dan Cross
Date: Sat, 24 Oct 2026 19:42
111 lines
5241 bytes
In article <11bivpt$305om$1@dont-email.me>,
Arne Vajhøj <arne@vajhoej.dk> wrote:
>On 10/23/2026 5:11 PM, Dan Cross wrote:
>> The early web was a mess.  The protocol was hugely wasteful; the
>> markup language was anemic, and people were resorting to all
>> kinds of bad ideas to try and build content (constructing forms
>> from tables, for example, so that boxes could be aligned).  The
>> web had coalesced around an example from a book with a single
>> addition, but like a high-school kegger, the word got out and it
>> quickly got out of hand. A lot of non-technical people were
>> authoring web pages and web sites by writing HTML directly.
>> They didn't _want_ to become programmers.
>> 
>> CFML, ASP, and PHP stepped into that world and filled a bit of a
>> void.  It inverted the model; you weren't writing programs to
>> generate markup guided by the program's behavior, you were
>> injecting behavior by embedding little snippets of programs in
>> your markup.  The design-oriented types who wanted to focus on
>> content could largely do that.  I don't think that has to be
>> inherently insecure, though I can see how having someone around
>> to add a bit of domain expertise to the mix can prevent a lot of
>> problems down the road.  Textual interpolation is a powerful
>> tool; so is a chainsaw.  Both can do a lot of damage.
>
>No doubt that the switch from CGI to ASP and PHP changed
>who could and who did make dynamic web pages.
>
>But at the core ASP and PHP are really just a way to
>save a gazillion "response write".

Yup.  That's exactly what I mean when I say that it "inverted
the model": it went from using content embedded in programs, to
program (fragment)s embedded in content.  You can teach a
designer HTML fairly easily, regardless of whether they have any
interest in programming or not.  It's not a big lift to get them
to embed `<?php ...?>` tags into that content to add a little
dynamic sauce.  Teaching them Java, Perl, or C?  That's a
different matter.

>Here is super simple example of DCL CGI:
>
>$ write sys$output "content-type: text/html"
>$ write sys$output ""
>$ write sys$output "<html>"
>$ write sys$output "<head>"
>$ write sys$output "<title>Show time</title>"
>$ write sys$output "</head>"
>$ write sys$output "<body>"
>$ write sys$output "<h1>Show time</h1>"
>$ write sys$output "<p>"
>$ write sys$output "Time is " + f$time() + "."
>$ write sys$output "</p>"
>$ write sys$output "</body>"
>$ write sys$output "</html>"
>$ exit

I guess Perl could use a "HERE" document for that:

#!/usr/bin/perl
use warnings;
use strict;
use POSIX qw(strftime);
my $now = uc strftime "%d-%b-%Y %T", localtime;
print <<"EOF";
<html>
<head>
<title>Show time</title>
</head>
<body>
<h1>Show time</h1>
<p>
Time is $now.
</p>
</body>
</html>
EOF

>(I chose DCL because with my Perl skills I would
>not bother the Perl gurus here with my way of writing
>Perl)

"There's more than one way to do it!"

>[snip]
>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.

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.

https://github.com/facebook/hhvm
https://research.facebook.com/publications/the-hiphop-virtual-machine/
https://engineering.fb.com/2014/03/20/developer-tools/hack-a-new-programming-language-for-hhvm/
https://hacklang.org

Regardless, PHP is not a good language, and there are better
alternatives for the application space.

	- Dan C.
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#67
Author: Arne Vajhøj
Date: Sat, 24 Oct 2026 19:51
70 lines
2996 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:
>> Here is super simple example of DCL CGI:
>>
>> $ write sys$output "content-type: text/html"
>> $ write sys$output ""
>> $ write sys$output "<html>"
>> $ write sys$output "<head>"
>> $ write sys$output "<title>Show time</title>"
>> $ write sys$output "</head>"
>> $ write sys$output "<body>"
>> $ write sys$output "<h1>Show time</h1>"
>> $ write sys$output "<p>"
>> $ write sys$output "Time is " + f$time() + "."
>> $ write sys$output "</p>"
>> $ write sys$output "</body>"
>> $ write sys$output "</html>"
>> $ exit
> 
> I guess Perl could use a "HERE" document for that:
> 
> #!/usr/bin/perl
> use warnings;
> use strict;
> use POSIX qw(strftime);
> my $now = uc strftime "%d-%b-%Y %T", localtime;
> print <<"EOF";
> <html>
> <head>
> <title>Show time</title>
> </head>
> <body>
> <h1>Show time</h1>
> <p>
> Time is $now.
> </p>
> </body>
> </html>
> EOF
> 
>> (I chose DCL because with my Perl skills I would
>> not bother the Perl gurus here with my way of writing
>> Perl)
> 
> "There's more than one way to do it!"
DCL can add text blocks as well. But without symbol
substiution.

$ type sys$input
content-type: text/html

<html>
<head>
<title>Show time</title>
</head>
<body>
<h1>Show time</h1>
<p>
$
$ write sys$output "Time is " + f$time() + "."
$ type sys$input
</p>
</body>
</html>
$
$ exit

Arne
Re: Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#68
Author: Dan Cross
Date: Sat, 24 Oct 2026 20:11
71 lines
4313 bytes
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!), 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
#69
Author: Dan Cross
Date: Sat, 24 Oct 2026 21:04
74 lines
3318 bytes
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:
>> 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.

Yes.

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

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.

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

>Having a short form like PHP backticks is probably unique.

No, that syntax comes from the Unix shell by way of Perl.

And there are other historical antecedents; consider `ADDRESS
CMS` in Rexx on VM/CMS, for example.  Sometimes these are
useful: the ability to `ADDRESS XEDIT` made REXX programs
extremely powerful in that environment.  But letting untrusted
sending commands derived from unfiltered, untrusted, inputs
would be dangerous.

>But it is really just a shell_exec call.
>
>And of course input to that type of function should be checked.

Yup.

	- Dan C.
Re: PHP "Features"
#70
Author: Lawrence D’Oliveiro
Date: Sat, 24 Oct 2026 22:43
44 lines
2965 bytes
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”.

> First note that the recommended way to use mysqli is to use prepare.
> mysqli_real_escape_string only exist for extraordinary
> circumstances.

What do you use for LIKE and REGEXP clauses?

> But there is a reason that the function is called escape
> and not escape_and_quote - it just escapes - it does not quote.

You need a function that turns an object in the application language
into an appropriate literal in the query language, including quotes
where appropriate but leaving them out if not. For example, whatever
in your language maps to “NULL” in SQL must never be quoted!

For example, here’s function I’ve been using in Python code, that
does strictly standard SQL quoting:

    def sql_string(s) :
        "returns an SQL string literal that evaluates to s."
        if s == None :
            q = "null"
        elif isinstance(s, int) :
            q = "%d" % s
        elif isinstance(s, (bytes, bytearray)) :
            q = "X'" + "".join("%02x" % d for d in s) + "'"
        elif isinstance(s, str) :
            q = "'" + s.replace("'", "''") + "'"
        else :
            raise TypeError("can only convert bytes, str, int or None types")
        #end if
        return q
    #end sql_string

> PHP mysqli_real_escape_string put backslashes in front of
> problematic characters.

Note that backslash-escapes are not standard SQL.
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#71
Author: Lawrence D’Oliveiro
Date: Sat, 24 Oct 2026 22:47
24 lines
2301 bytes
On Sat, 24 Oct 2026 15:10:02 -0400, Arne Vajhøj wrote:

> But at the core ASP and PHP are really just a way to save a
> gazillion "response write".

Perl had shell-style here-docs to get around this.

Python has triple-quoted strings which can extend across multiple
lines, and also C-style implicit string concatenation, so you can
write things like this:

    out.write \
      (
        "<dialog class=\"example\" id=\"test-dialog\">\n"
        "<form id=\"dialog-form\" method=\"post\" action=\"/submit\">\n"
        "<p><label>Need input: <input type=\"text\" name=\"input\"></label>\n"
        "<p><button id=\"cancel\">Cancel</button>\n"
        "<p><button id=\"submit\">OK</button>\n"
        "</form>\n"
        "</dialog>\n"
        "<div>\n"
        "<button id=\"show-dialog\">Show Dialog</button>\n"
        "</div>\n"
      )
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#72
Author: Lawrence D’Oliveiro
Date: Sat, 24 Oct 2026 22:51
9 lines
1772 bytes
On Sat, 24 Oct 2026 15:34:43 -0400, Arne Vajhøj wrote:

> Having a short form like PHP backticks is probably unique.

Another feature copied from Perl, which in turn adopted the common
convention from older Unix shells.

Backticks still work in current POSIX-compliant shells, but these days
many prefer $( ... )-style bracketing.
Re: PHP "Features"
#73
Author: Arne Vajhøj
Date: Sat, 24 Oct 2026 23:46
21 lines
2020 bytes
On 10/24/2026 6:43 PM, Lawrence D’Oliveiro wrote:
> On Sat, 24 Oct 2026 11:59:30 -0400, Arne Vajhøj wrote:
>> First note that the recommended way to use mysqli is to use prepare.
>> mysqli_real_escape_string only exist for extraordinary
>> circumstances.
> 
> What do you use for LIKE and REGEXP clauses?

prepare of course.

>> PHP mysqli_real_escape_string put backslashes in front of
>> problematic characters.
> 
> Note that backslash-escapes are not standard SQL.

True.

But mysqli_ is only for MySQL, so ...

Arne
Re: PHP "Features"
#74
Author: Arne Vajhøj
Date: Sat, 24 Oct 2026 23:49
76 lines
3954 bytes
On 10/24/2026 6:43 PM, Lawrence D’Oliveiro wrote:
>> But there is a reason that the function is called escape
>> and not escape_and_quote - it just escapes - it does not quote.
> 
> You need a function that turns an object in the application language
> into an appropriate literal in the query language, including quotes
> where appropriate but leaving them out if not. For example, whatever
> in your language maps to “NULL” in SQL must never be quoted!
> 
> For example, here’s function I’ve been using in Python code, that
> does strictly standard SQL quoting:
> 
>      def sql_string(s) :
>          "returns an SQL string literal that evaluates to s."
>          if s == None :
>              q = "null"
>          elif isinstance(s, int) :
>              q = "%d" % s
>          elif isinstance(s, (bytes, bytearray)) :
>              q = "X'" + "".join("%02x" % d for d in s) + "'"
>          elif isinstance(s, str) :
>              q = "'" + s.replace("'", "''") + "'"
>          else :
>              raise TypeError("can only convert bytes, str, int or None types")
>          #end if
>          return q
>      #end sql_string
Two good rules:
1) never ever do you own quoting code instead of using prepare
2) never ever believe anything a person writing own quoting code instead
    of using prepare says about security

import pymysql

def sql_string(s) :
     "returns an SQL string literal that evaluates to s."
     if s == None :
         q = "null"
     elif isinstance(s, int) :
         q = "%d" % s
     elif isinstance(s, (bytes, bytearray)) :
         q = "X'" + "".join("%02x" % d for d in s) + "'"
     elif isinstance(s, str) :
         q = "'" + s.replace("'", "''") + "'"
     else :
         raise TypeError("can only convert bytes, str, int or None types")
     #end if
     return q
#end sql_string

def test(b):
     print(b + ' -> SELECT f1,f2 FROM t1 WHERE f2 = ' + sql_string(b))
     con = 
pymysql.connect(host='arnepc5',user='arne',password='hemmeligt',db='test')
     c = con.cursor()
     c.execute('SELECT f1,f2 FROM t1 WHERE f2 = ' + sql_string(b))
     data = c.fetchall()
     c.close()
     for row in data:
         print('%d %s' % (row[0], row[1]))
     con.close()

test("BB")
test("BB\\' or 1=1 #")

gives:

BB -> SELECT f1,f2 FROM t1 WHERE f2 = 'BB'
2 BB
BB\' or 1=1 # -> SELECT f1,f2 FROM t1 WHERE f2 = 'BB\'' or 1=1 #'
1 A
2 BB
3 CCC

Arne
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#76
Author: Arne Vajhøj
Date: Sun, 25 Oct 2026 00:02
49 lines
3095 bytes
On 10/23/2026 3:51 PM, Lawrence D’Oliveiro wrote:
> On Fri, 23 Oct 2026 10:23:16 -0400, Arne Vajhøj wrote:
>> Todays PHP is many things. There is a professional PHP segment using
>> Laravel, Symfony, Doctrine, Eloquent etc. powering many of the
>> worlds largest web sites.
> 
> Most or all of those are still built around the strict
> one-page-per-file request/response model. They can’t handle
> WebSockets, just for example.

PHP applications often do web sockets.

Does not seem to be a problem in the real world.

>                        Or basic background tasks, that might
> need to run independently of page requests from users.

The simple rule for starting background tasks directly in
web applications is: don't do it.

The advanced rule for starting background tasks directly in
web applications is: only do it if your server/framework
configuration allows for configuring separate pools for
request workers and for background workers.

Otherwise nobody knows how many workers there will be running.

The safe approach is for the web app to hand it over to
another application - the web application put the task
in a message queue and a processor application pick them
up and execute.

That said then PHP has a huge problem in this regard.

Not due to the language, but due to the many different
executions models.

CGI, FastCGI, mod_apache, isapi, RoadRunner, FrankenPHP
etc..

Some of them could implement background task running
support, but other simply can't.

Arne




Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#75
Author: Arne Vajhøj
Date: Sun, 25 Oct 2026 00:15
26 lines
2424 bytes
On 10/24/2026 4:11 PM, Dan Cross wrote:
> In article <11biu7b$2vhq4$1@dont-email.me>,
> Arne Vajhøj <arne@vajhoej.dk> wrote:
>> 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.
Wikipedia PHP article has the same example.

Very different indeed.

But it is still mixing code and HTML (for whatever reason
the example does not actually use HTML tags but it could
have).

It is not <?php ... ?> but SSI style <!-- ... --> and
the language is not C style but more basic'ish.

Arne
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#1
Author: Lawrence D’Oliveiro
Date: Mon, 26 Oct 2026 22:34
36 lines
2802 bytes
On Mon, 26 Oct 2026 15:39:12 -0400, Arne Vajhøj wrote:

> The start of WWW was very much text. Lynx browser and various Gopher
> clients.

Gopher was not WWW.

WWW was pretty much the “killer app” of the Internet, as far as the
general public was concerned. And by WWW they meant web pages that
looked good in a GUI.

> NeXT was not widely used.
>
> But the GUI browsers did hid the mass market pretty soon.
>
> Mosaic 1993
> NetScape 1994
> Internet Explorer 1995

Lots of proprietary companies were very dismissive of the WWW in the
early days.

On the one hand, you had Microsoft trying to take control of it by
imposing proprietary architectures. Does anyone remember “Project
Blackbird”, or the original concept for MSN? Nowdays nothing is left
of the original “MSN” other than a domain name.

Quark, the well-known desktop publishing solutions vendor, also had a
try, with its “Immedia” product line. And I think Autodesk made a play
for proprietariness as well. All disappeared without a trace.

And on the content side, existing services like Compuserve, Prodigy,
AOL etc felt that the open Internet could never offer the quality of
content available (at a price) on their proprietary platforms. In the
end, connectivity won out over content, and they had to abandon their
proprietary connections and embrace the Internet to survive.
'Quality' of commercial Internet services (was: Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet...
#2
Author: Nuno Silva
Date: Wed, 28 Oct 2026 11:14
42 lines
3581 bytes
[ Instead of removing the vms group, I'll set Followup-To alt.unix.geeks
  and crosspost to there too. ]

On 2026-10-26, Lawrence D’Oliveiro wrote:

> And on the content side, existing services like Compuserve, Prodigy,
> AOL etc felt that the open Internet could never offer the quality of
> content available (at a price) on their proprietary platforms. In the
> end, connectivity won out over content, and they had to abandon their
> proprietary connections and embrace the Internet to survive.

Yeah, that has got to be bold coming from the people who made Eternal
September happen :-P

And nowadays we have a bunch of companies actively ruining the
Internet. Say, search engines are getting ruined on purpose, GenAI
outfits are actively hammering servers making it possibly expensive or
exhausting to actually serve relevant content on the web, some companies
now insist on mandatory ID upload masquerading as age verification (can
one even watch e.g. "It's not porn, it's HBO" without an age-verified
account nowadays? I think last I checked all links led to
Youtube...). And this on top of some already requiring phone numbers.

And the whole mess that is corporate players imposing rules and
filtering that just makes it impossible to do e-mail normally
(e.g. Microsoft reportedly requires your server to send spam-levels
amount of messages to gain reputation, which does sound somehow
wrong...).

And then you have politicians which enjoy only hanging in commercial
social media and commercial communication systems, limiting their
reachability, ensuring they get a biased view of the room they're in,
and possibly even costing them elections or at least actively hampering
campaigns (there were reports of Twitter censoring left-wing links in
France a couple years ago, and I think also reports of social media
hampering left-wing political communications in Brasil).

And I get the feeling these are all problems that have been expected or
known *in the 90s*...

-- 
Nuno Silva
Page 1 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