🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

147 total messages Page 3 of 3 Started by Subcommandante XDelta Thu, 22 Oct 2026 06:47
Page 3 of 3 • 147 total messages
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#140
Author: Lawrence D’Oliveiro
Date: Thu, 29 Oct 2026 01:55
39 lines
3178 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.

That’s not the issue, though. The issue is how you pass command-line
arguments to the spawned program.

> Second then on VMS it is possible to create a process with DCL mapped
> or a process without DCL mapped - your choice.

If you want to pass a command line, you need to have a command-line
interpreter -- no choice.

On Windows, you can pass a command line direct to the spawned program
without going a command-line interpreter, but you still have to format
it in a way to pretend it is still going through a CLI.

So my original comment does need a correction: VMS doesn’t quite
suffer from the “same fundamental limitation” as Windows: it suffers
from a worse one.
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#127
Author: Arne Vajhøj
Date: Fri, 30 Oct 2026 18:45
14 lines
1904 bytes
On 10/28/2026 9:21 PM, Lawrence D’Oliveiro wrote:
> On Wed, 28 Oct 2026 20:44:54 -0400, Arne Vajhøj wrote:
>>         call lib$spawn('run p2')
> 
> What if a command argument has spaces in it?

RUN is a DCL command.

Standard DCL rules.

At least regarding spaces.

Arne
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#128
Author: Arne Vajhøj
Date: Fri, 30 Oct 2026 18:52
91 lines
4021 bytes
On 10/28/2026 9:55 PM, Lawrence D’Oliveiro wrote:
> On Wed, 28 Oct 2026 20:44:54 -0400, Arne Vajhøj wrote:
>> On 10/28/2026 12:47 AM, Lawrence D’Oliveiro wrote:
>>> 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.
> 
> That’s not the issue, though. The issue is how you pass command-line
> arguments to the spawned program.

OK

>> Second then on VMS it is possible to create a process with DCL mapped
>> or a process without DCL mapped - your choice.
> 
> If you want to pass a command line, you need to have a command-line
> interpreter -- no choice.

> So my original comment does need a correction: VMS doesn’t quite
> suffer from the “same fundamental limitation” as Windows: it suffers
> from a worse one.

I don't see the problem.

VMS is not Unix. There are some paradigm differences.

If you are going to start a Fortran or Pascal program that
uses LIB$GET_FOREIGN to get the command line, then a
command line need to exist.

If you think only C then you can avoid the command line.

$ type pp1.c
#include <stdio.h>
#include <unistd.h>
#include <wait.h>

int main()
{
     printf("pp1 pid=%d\n", getpid());
     pid_t pid = vfork();
     if(pid == 0)
     {
        char *args[] = { "pp2.exe", "a", "b b", "c c c", NULL };
        execv(args[0], args);
     }
     else
     {
         int status;
         wait(&status);
         printf("done\n");
     }
     return 0;
}
$ type pp2.c
#include <stdio.h>
#include <unistd.h>

int main(int argc, char *argv[])
{
     printf("pp2 pid=%d\n", getpid());
     for(int i = 1; i < argc; i++)
     {
         printf("%s\n", argv[i]);
     }
     return 0;
}
$ cc pp1
$ link pp1
$ cc pp2
$ link pp2
$ run pp1
pp1 pid=1059
pp2 pid=1072
a
b b
c c c
done

Arne
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#129
Author: Arne Vajhøj
Date: Fri, 30 Oct 2026 18:54
11 lines
2014 bytes
On 10/28/2026 12:44 AM, Lawrence D’Oliveiro wrote:
> Without Wordpress, you have lost perhaps 90% of the reason for writing
> PHP code in the first place.

????

Most people use WP to avoid having to write PHP (or
any other programming language).

Arne
Re: PHP "Features"
#130
Author: Arne Vajhøj
Date: Fri, 30 Oct 2026 19:01
38 lines
2477 bytes
On 10/27/2026 3:08 PM, Simon Clubley wrote:
> 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.
I think the natural association is that === means "more equal"
than ==, so I don't think that is a good way.

I would say either live with how it is (the sins of the past) or
come up with a plan to drop loose equality.

PHP 9.x:

declare(strict_equality=1)

makes == behave like === and === gives warning.

PHP 10.x:

== behave like === and === gives warning unless

declare(strict_equality=0)

PHP 11.x:

== is always strict and === is gone.

Arne


Re: PHP "Features"
#132
Author: Dan Cross
Date: Fri, 30 Oct 2026 21:48
37 lines
2172 bytes
In article <11c2lef$ffno$1@dont-email.me>,
Arne Vajhøj <arne@vajhoej.dk> wrote:
>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.

Mmm, that's not what you said, though.

>[snip]
>A way more correct term is Client Side Rendering. But it
>is not as widely used.

Mmm, a web browser already renders HTML on the client side,
regardless of whether or not CSS is used, and whether or not
Javascript or Typescript is being used to dynamically modify
the DOM on the client.

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

It would probably be clearer if you said, "HTML 5 application"
if that's what you mean.

	- Dan C.
Re: Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#133
Author: Dan Cross
Date: Fri, 30 Oct 2026 21:56
72 lines
3744 bytes
In article <11c2mfu$fsse$1@dont-email.me>,
Arne Vajhøj <arne@vajhoej.dk> wrote:
>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.

No, you really did not.  You merely showed that other languages
can spawn programs using `LIB$SPAWN` or similar mechanisms.

What you missed is that it is the unique combination of
anti-patterns manifest in PHP that make it dangerouus in this
regard.

Consider this analogy: `strcpy()` is dangerous because you
cannot tell it how big the destination buffer is.  `strlcpy()`
is much safer because you _do_ tell it the size of the
destination buffer, it promises to NUL-terminate the destination
(as long as size>0), _and_ it tells how much space the source
required, so that you can detect truncation.  That doesn't mean
that it is perfectly safe, because you can still give it a bad
destination length; you _can_ call it with `SIZE_MAX`, but most
programmers do not.

>And unlike with PHP there is no easy way to close the
>problem.

I doubt that disabling shell actually prevents you from calling
`LIB$SPAWN` via other means.

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

Nope.  It is one of them.  But there are so many to choose from
it hardly matters.

The bottom line is, there are better alternatives to PHP; there
have been for years, and one should use one of those.

	- Dan C.
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#134
Author: Lawrence D’Oliveiro
Date: Fri, 30 Oct 2026 23:06
9 lines
1692 bytes
On Fri, 30 Oct 2026 14:04:22 -0400, Arne Vajhøj wrote:

> They should disable the dangerous PHP functions.

What if that breaks a particular PHP application that somebody needs
to run?

Having a global config file to control language features is a stupid
idea.
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#135
Author: Lawrence D’Oliveiro
Date: Sat, 31 Oct 2026 02:28
13 lines
2090 bytes
On Fri, 30 Oct 2026 14:54:08 -0400, Arne Vajhøj wrote:

> On 10/28/2026 12:44 AM, Lawrence D’Oliveiro wrote:
>>
>> Without Wordpress, you have lost perhaps 90% of the reason for
>> writing PHP code in the first place.
>
> ????
>
> Most people use WP to avoid having to write PHP (or any other
> programming language).

You don’t know about the whole Wordpress themes/plugins ecosystem?
Re: PHP "Features"
#159
Author: Arne Vajhøj
Date: Sat, 14 Nov 2026 18:22
460 lines
11373 bytes
On 10/24/2026 9:30 PM, Dan Cross 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?

At least the principles behind OO are pretty well established.

But let us take a step back first.

One of the biggest problems in software development is the
code base scalability problem. As a code base grow bigger
then it becomes increasingly difficult to make changes
without breaking something somewhere else.

The general solution to the problem is to isolate the different
parts of the code base from each other. A given part of the
code base has some exported API that is made available to the
world and an internal implementation. As long as the exported
API is kept then the internal implementation can be changed
without breaking things everywhere in the larger code base.

This applies everywhere not just in OO context. But it is central
in OO context. It is often called encapsulation or information hiding.

Two features in OO are responsible for providing this:
* polymorphism meaning that code operates on more abstract
   super types (including interfaces or classes with only
   pure virtual methods) without even knowing the actual
   implementing type
* members are divided in private and non-private where non-private
   members become the exported API that must be kept and private
   becomes implementation that can be changed

This is probably the main reason behind the success of OO in
software development for large code bases the last 40 years.
The OO way is not the only way, but experience has proven it to
be a very effective way.

Implementations differs a little.

I would say that the normal or expected is:

private = visible only within class
protected = visible within class and its subclasses
public = visible to everyone

If it is like that then nobody should be surprised.

But variations exist.

Many languages have additional visibilities.

Some languages slightly change the meaning. Notable Java protected
makes it visible to both sub classes and classes in same package.

But it is all within the the general idea of private stuff
that can be changed without impacting anything else and
non-private stuff where changes can break anything. The
non-private just exist in many flavors.

Expecting access to private stuff outside class is against all
OO principles and all general software development principles.

So yes - the quoted is bad.

(often it is possible to gain access to private stuff using reflection,
but general view is that those playing with that deserve the problems
they get themselves into)

>                                           (Hint:
> have you ever used Ruby?  Smalltalk?)

I am not that familiar with Ruby.

But I have read about it.

Ruby define private as not allowing an explicit receiver.

What that really means is that Ruby sees private as related
to the object not related to the class.

That may make sense from a philosophical perspective. Hiding
an objects information from itself sounds unnatural.

But it is a disaster from a practical code perspective.

Encapsulation is totally broken.

A few examples.

Using JRuby as I don't have MRI on VMS.

$ jruby --version
jruby 9.4.3.0 (3.1.4) 2023-06-07 3086960792 OpenJDK 64-Bit Server VM 
25.502-b07 on 1.8.0_502-b07 +jit [x86_64-OpenVMS]

3.1 is not latest and greatest but not super old either.

Example 1 - simple value holder

$ type lib1.rb
class P
   attr_reader :v
   def initialize()
     @v = 0
   end
   def add1()
     addn(1)
   end
   def add2()
     addn(2)
   end

   private

   def addn(n)
     @v += n
   end
end

$ type test1.rb
require_relative 'lib1'

class C < P
   def add3()
     addn(3)
   end
end

o = C.new
o.add3
printf "v=#{o.v}\n"
$ jruby test1.rb
v=3

Library maintainer decide to do a little refactoring of the
implementation but maintaining the external API.

$ type lib1.rb
class P
   attr_reader :v
   def initialize()
     @v = 0
   end
   def add1()
     add()
   end
   def add2()
     add(2)
   end

   private

   def add(n = 1)
     @v += n
   end
end

$ jruby test1.rb
NoMethodError: undefined method `addn' for #<C:0xe8ea697 @v=0>
     add3 at test1.rb:5
   <main> at test1.rb:10

This is not really a problem. Library user get an error and can
fix the code.

Example 2 - simple value holder with a modification counter

$ type lib2.rb
class P
   attr_reader :v
   attr_reader :mods
   def initialize()
     @v = 0
     @mods = 0
   end
   def add1()
     addn(1)
     incmods()
   end
   def add2()
     addn(2)
     incmods()
   end

   private

   def addn(n)
     @v += n
   end
   def incmods()
     @mods += 1
   end
end

$ type test2.rb
require_relative 'lib2'

class C < P
   def add3()
     addn(3)
     incmods()
   end
end

o = C.new
o.add3
printf "v=#{o.v} mods=#{o.mods}\n"
$ jruby test2.rb
v=3 mods=1

Library maintainer decide to do a little refactoring of the
implementation but maintaining the external API.

$ type lib2.rb
class P
   attr_reader :v
   attr_reader :mods
   def initialize()
     @v = 0
     @mods = 0
   end
   def add1()
     addn(1)
   end
   def add2()
     addn(2)
   end

   private

   def addn(n)
     @v += n
     incmods()
   end
   def incmods()
     @mods += 1
   end
end

$ jruby test2.rb
v=3 mods=2

The change in the library's private parts silently changed behavior of
the library user.

Example 3 - same just with the library user doing the modification counter

$ type lib3.rb
class P
   attr_reader :v
   def initialize()
     @v = 0
   end
   def add1()
     addn(1)
   end
   def add2()
     addn(2)
   end

   private

   def addn(n)
     @v += n
   end
end

$ type test3.rb
require_relative 'lib3'

class C < P
   attr_reader :mods
   def initialize()
     super
     @mods = 0
   end

   private

   def addn(n)
     super
     @mods += 1
   end
end

o = C.new
o.add1
o.add2
printf "v=#{o.v} mods=#{o.mods}\n"
$ jruby test3.rb
v=3 mods=2

Library maintainer decide to do a little refactoring of the
implementation but maintaining the external API.

$ type lib3.rb
class P
   attr_reader :v
   def initialize()
     @v = 0
   end
   def add1()
     @v += 1
   end
   def add2()
     addn(2)
   end

   private

   def addn(n)
     @v += n
   end
end

$ jruby test3.rb
v=3 mods=1

The change in the library's private parts silently changed behavior of
the library user.

Ruby private does not enforce encapsulation.

Changes to a libraries private stuff may change behavior of
programs using the libraries.

That is against everything we should be striving for.

The typical justification from Ruby people are:
1) the private keyword show intent and they trust developers and
    do not want to police them
2) there are several other constructs in Ruby that would make
    it very easy to circumvent a real private visibility anyway

Examples of the latter:

$ type lib6.rb
class X
   def initialize()
     @v = 0
   end
   def read()
     @v = @v + 1
     @v
   end

   private

   def reset()
     @v = 0
   end
end

$ type test6.rb
require_relative 'lib6'

o = X.new
printf "v=#{o.read()}\n"
printf "v=#{o.read()}\n"
printf "v=#{o.read()}\n"
o.reset()
printf "v=#{o.read()}\n"
$ jruby test6.rb
v=1
v=2
v=3
NoMethodError: private method `reset' called for #<X:0x11b455e5 @v=3>
   <main> at test6.rb:7

Ruby allows library users to extend classes. So even if private
restricted to class, then it is easy to circumvent.

$ type test6hack.rb
require_relative 'lib6'

class X
   def myreset()
     reset()
   end
end

o = X.new
printf "v=#{o.read()}\n"
printf "v=#{o.read()}\n"
printf "v=#{o.read()}\n"
o.myreset()
printf "v=#{o.read()}\n"
$ jruby test6hack.rb
v=1
v=2
v=3
v=1

Ruby calling methods via send does not check at all.

$ type test6hackd.rb
require_relative 'lib6'

o = X.new
printf "v=#{o.read()}\n"
printf "v=#{o.read()}\n"
printf "v=#{o.read()}\n"
o.send(:reset)
printf "v=#{o.read()}\n"
$ jruby test6hackd.rb
v=1
v=2
v=3
v=1

I do not consider those justifications good OO or good
software engineering. I prefer the compiler to actually enforce
the rules.

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

That is different discussion. A discussion that come up
occasionally.

Most dynamic languages chose to implement visibility
in some form.

When PHP redesigned their OO in version 5.0 they decided
to do it Java'ish.

And the benefits of encapsulation applies to both static
and dynamic languages.

Arne
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#160
Author: Arne Vajhøj
Date: Sat, 14 Nov 2026 18:22
15 lines
1941 bytes
On 10/30/2026 7:06 PM, Lawrence D’Oliveiro wrote:
> Having a global config file to control language features is a stupid
> idea.

But having a central config file to control the security of a
server is a smart idea.

And this is a server config.

The specifics depend on how PHP is used. Apache with mod_php
has a PHPIniDir directive to select php.ini file. For CLI
you can specify location at command line.

Arne
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#161
Author: Arne Vajhøj
Date: Sat, 14 Nov 2026 18:22
25 lines
2597 bytes
On 10/30/2026 10:28 PM, Lawrence D’Oliveiro wrote:
> On Fri, 30 Oct 2026 14:54:08 -0400, Arne Vajhøj wrote:
>> On 10/28/2026 12:44 AM, Lawrence D’Oliveiro wrote:
>>> Without Wordpress, you have lost perhaps 90% of the reason for
>>> writing PHP code in the first place.
>>
>> ????
>>
>> Most people use WP to avoid having to write PHP (or any other
>> programming language).
> 
> You don’t know about the whole Wordpress themes/plugins ecosystem?

I do but it does not change anything.

It is still:
* gigantic number of non-programmers publishing via WP
* huge number of hobby programmers writing awful PHP
* large number of professional programmers doing
   business web apps typical in Laravel or Symfony
* small number of programmers doing WP, WP plugins,
   Laravel, Symfony etc.

Arne
Re: PHP "Features"
#162
Author: Arne Vajhøj
Date: Sat, 14 Nov 2026 18:22
92 lines
3067 bytes
On 10/26/2026 9:21 PM, Dan Cross wrote:
> 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

> In *this* language, `private` doesn't mean what it means in C++.

In Ruby it means object private instead of class private. And as
demonstrated in my other post then it is a OO encapsulation
disaster.

But the second example quoted here is actually not different from C++.
Because C++ interprets visibility as just that and does not
include overrideability.

#include <iostream>

using namespace std;

class A
{
private:
     virtual void bar() { cout << "Hello from A's bar" << endl; }
public:
     void foo() { bar(); }
};

class B : public A
{
private:
     void bar() { cout << "Hello from B's bar" << endl; }
};

int main()
{
     A *a = new A();
     a->foo();
     B *b = new B();
     b->foo();
     return 0;
}

also outputs:

Hello from A's bar
Hello from B's bar

It has very little practical impact as those C++
developers that really want to limit bar to A
just omit the virtual.

The construct of private virtual is still used though
because some very smart people have found out that
base classes with public non-virtual methods and
private pure virtual methods has some advantages.
It provides better encapsulation.

Anyway - it does not really relate much to the topic
at hand - just wanted to note that for this particular
example Ruby actually is like C++.

Arne







Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#163
Author: Arne Vajhøj
Date: Sat, 14 Nov 2026 18:23
73 lines
4256 bytes
On 10/30/2026 5:56 PM, Dan Cross wrote:
> In article <11c2mfu$fsse$1@dont-email.me>,
> Arne Vajhøj <arne@vajhoej.dk> wrote:
>> 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.
> 
> No, you really did not.  You merely showed that other languages
> can spawn programs using `LIB$SPAWN` or similar mechanisms.

That *is* the same issue as shell_exec in PHP.

> What you missed is that it is the unique combination of
> anti-patterns manifest in PHP that make it dangerouus in this
> regard.

The ability to execute shell commands is the ability
to execute shell commands. No more no less.

> Consider this analogy: `strcpy()` is dangerous because you
> cannot tell it how big the destination buffer is.  `strlcpy()`
> is much safer because you _do_ tell it the size of the
> destination buffer, it promises to NUL-terminate the destination
> (as long as size>0), _and_ it tells how much space the source
> required, so that you can detect truncation.  That doesn't mean
> that it is perfectly safe, because you can still give it a bad
> destination length; you _can_ call it with `SIZE_MAX`, but most
> programmers do not.

The analogy is whether C is less safe or as safe/unsafe
as another language XYZ that has a let us say cpystr function
with the same problem.

And the answer is that C is as safe/unsafe as XYZ (in
this regard).

>> And unlike with PHP there is no easy way to close the
>> problem.
> 
> I doubt that disabling shell actually prevents you from calling
> `LIB$SPAWN` via other means.

There is a list of functions able to spawn shell commands. I
even think I listed them in another post. Disable them all
and no spawn.

Arne
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#164
Author: Arne Vajhøj
Date: Sat, 14 Nov 2026 18:23
35 lines
2778 bytes
On 10/30/2026 7:06 PM, Lawrence D’Oliveiro wrote:
> On Fri, 30 Oct 2026 14:04:22 -0400, Arne Vajhøj wrote:
>> They should disable the dangerous PHP functions.
> 
> What if that breaks a particular PHP application that somebody needs
> to run?
As with anything else then it would need to be looked at.

(I will assume shell_exec, exec, proc_open, system, passthru etc.)

* Does the output from the system that end up executing the command
   represent what is really needed (think single node vs cluster)?
* Is that output only available via external command and not via
   an API (VMS PHP offers access to $getjpi and $getdvi)?
* Does the application provide business value?
* Has the usage been reviewed for security vulnerabilities
   (command injection)?
* Are there a process in place to ensure that all future
   updates are also reviewed?

If 5 x YES then it will likely be allowed.

But this is not a typical web application.

The only type of application I can think of is some sort
of system administration web application.

I have not had the need to run external commands from
web app since 1996.

And I tell you if 1996 Arne brought that C CGI code to
review in front of 2026 Arne, then it would be thumbs down.

Arne
Re: PHP "Features"
#165
Author: Arne Vajhøj
Date: Sat, 14 Nov 2026 18:23
308 lines
9153 bytes
On 10/27/2026 7:35 PM, Arne Vajhøj wrote:
> 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

Here comes a little comparison with Python and PHP.

Tested with:
* Python 3.10
* PHP 8.1
* Groovy 4.0

Not latest and greatest but what I have on my 9.2-3 system.

Let us look at simple assignment.

$ type asg.py
iv = 123
sv = 'ABC'
print('%s : %d, %s : %s' % (type(iv), iv, type(sv), sv))
iv = 'DEF'
sv = 456
print('%s : %s, %s : %d' % (type(iv), iv, type(sv), sv))
$ python asg.py
<class 'int'> : 123, <class 'str'> : ABC
<class 'str'> : DEF, <class 'int'> : 456
$ type asgtyp.py
iv: int = 123
sv: str = 'ABC'
print('%s : %d, %s : %s' % (type(iv), iv, type(sv), sv))
iv = 'DEF'
sv = 456
print('%s : %s, %s : %d' % (type(iv), iv, type(sv), sv))
$ python asgtyp.py
<class 'int'> : 123, <class 'str'> : ABC
<class 'str'> : DEF, <class 'int'> : 456
$ type asg.php
<?php

$iv = 123;
$sv = "ABC";
echo sprintf("%s : %d, %s : %s\n", gettype($iv), $iv, gettype($sv), $sv);
$iv = "DEF";
$sv = 456;
echo sprintf("%s : %s, %s : %d\n", gettype($iv), $iv, gettype($sv),$sv);

?>
$ php asg.php
integer : 123, string : ABC
string : DEF, integer : 456
$ type asg.groovy
iv = 123
sv = "ABC"
printf("%s : %d, %s : %s\n", iv.getClass().name, iv, sv.getClass().name, sv)
iv = "DEF"
sv = 456
printf("%s : %s, %s : %d\n", iv.getClass().name, iv, sv.getClass().name, sv)
$ groovy asg.groovy
java.lang.Integer : 123, java.lang.String : ABC
java.lang.String : DEF, java.lang.Integer : 456
$ type asgtyp.groovy
int iv = 123
String sv = "ABC"
printf("%s : %d, %s : %s\n", iv.getClass().name, iv, sv.getClass().name, sv)
iv = "DEF"
sv = 456
printf("%s : %s, %s : %d\n", iv.getClass().name, iv, sv.getClass().name, sv)
$ groovy asgtyp.groovy
java.lang.Integer : 123, java.lang.String : ABC
Caught: org.codehaus.groovy.runtime.typehandling.GroovyCastException: 
Cannot cast object 'DEF' with class 'java.lang.String' to class 'int'
org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot 
cast object 'DEF' with class 'java.lang.String' to class 'int'
         at ASGTYP.run(ASGTYP.GROOVY:4)

We see that:
* Python without type hint, Python with type hint, PHP and Groovy 
without type
   happily allows variables changing type with assignment [BAD]
* Groovy with type gives an error when assigning a wrong type [GOOD]

Let us look at function call.

$ type fc.py
def f(v):
     vtyp = type(v)
     print(f"{vtyp} : {v}")

f(123)
f("123")
f("ABC")
$ python fc.py
<class 'int'> : 123
<class 'str'> : 123
<class 'str'> : ABC
$ type fctyp.py
def f(v: int):
     vtyp = type(v)
     print(f"{vtyp} : {v}")

f(123)
f("123")
f("ABC")
$ python fctyp.py
<class 'int'> : 123
<class 'str'> : 123
<class 'str'> : ABC
$ type fc.php
<?php

function f($v) {
     $vtyp = gettype($v);
     echo "$vtyp : $v\r\n";
}

f(123);
f("123");
f("ABC");

?>
$ php fc.php
integer : 123
string : 123
string : ABC
$ type fctyp.php
<?php

function f(int $v) {
     $vtyp = gettype($v);
     echo "$vtyp : $v\r\n";
}

f(123);
f("123");
f("ABC");

?>
$ php fctyp.php
integer : 123
integer : 123
PHP Fatal error:  Uncaught TypeError: f(): Argument #1 ($v) must be of 
type int, string given, called in /disk2/arne/typ/fctyp.php on line 10 
and defined in /disk2/arne/typ/fctyp.php:3
Stack trace:
#0 /disk2/arne/typ/fctyp.php(10): f('ABC')
#1 {main}
   thrown in /disk2/arne/typ/fctyp.php on line 3

Fatal error: Uncaught TypeError: f(): Argument #1 ($v) must be of type 
int, string given, called in /disk2/arne/typ/fctyp.php on line 10 and 
defined in /disk2/arne/typ/fctyp.php:3
Stack trace:
#0 /disk2/arne/typ/fctyp.php(10): f('ABC')
#1 {main}
   thrown in /disk2/arne/typ/fctyp.php on line 3
$ type fctypx.php
<?php

declare(strict_types=1);

function f(int $v) {
     $vtyp = gettype($v);
     echo "$vtyp : $v\r\n";
}

f(123);
f("123");
f("ABC");

?>
$ php fctypx.php
integer : 123
PHP Fatal error:  Uncaught TypeError: f(): Argument #1 ($v) must be of 
type int, string given, called in /disk2/arne/typ/fctypx.php on line 11 
and defined in /disk2/arne/typ/fctypx.php:5
Stack trace:
#0 /disk2/arne/typ/fctypx.php(11): f('123')
#1 {main}
   thrown in /disk2/arne/typ/fctypx.php on line 5

Fatal error: Uncaught TypeError: f(): Argument #1 ($v) must be of type 
int, string given, called in /disk2/arne/typ/fctypx.php on line 11 and 
defined in /disk2/arne/typ/fctypx.php:5
Stack trace:
#0 /disk2/arne/typ/fctypx.php(11): f('123')
#1 {main}
   thrown in /disk2/arne/typ/fctypx.php on line 5
$ type fc.groovy
def f(v) {
     vtyp = v.getClass().name
     println("$vtyp : $v")
}

f(123)
f("123")
f("ABC")
$ groovy fc.groovy
java.lang.Integer : 123
java.lang.String : 123
java.lang.String : ABC
$ type fctyp.groovy
def f(int v) {
     vtyp = v.getClass().name
     println("$vtyp : $v")
}

f(123)
f("123")
f("ABC")
$ groovy fctyp.groovy
java.lang.Integer : 123
Caught: groovy.lang.MissingMethodException: No signature of method: 
FCTYP.f() is applicable for argument types: (String) values: [123]
Possible solutions: f(int), is(java.lang.Object), NV(java.lang.Object), 
SV([Ljava.lang.Object;), run(), run()
groovy.lang.MissingMethodException: No signature of method: FCTYP.f() is 
applicable for argument types: (String) values: [123]
Possible solutions: f(int), is(java.lang.Object), NV(java.lang.Object), 
SV([Ljava.lang.Object;), run(), run()
         at FCTYP.run(FCTYP.GROOVY:7)

We see that:
* Python without type hint, Python with type hint, PHP without type hint and
   Groovy without type happily allows calls with any data type [BAD]
* PHP with type hint but no strict_types=1 gives an error when called with a
   value that cannot be converted to correct type but does automatic 
conversion
   when called with a value that can be converted to correct type 
[QUESTIONABLE]
* PHP with type hint plus strict_types=1 and Groovy with type gives an error
   when called with wrong type [GOOD]

Let us look at function overload.

$ type fol.py
def f(v: int):
     print(f"int : {v}")

def f(v: str):
     print(f"str : {v}")

f(123)
f("ABC")
$ python fol.py
str : 123
str : ABC
$ type fol.php
<?php

function f(int $v) {
     echo "int : $v\r\n";
}

function f(string $v) {
     echo "string : $v\r\n";
}

f(123);
f("ABC");

?>
$ php fol.php
PHP Fatal error:  Cannot redeclare f() (previously declared in 
/disk2/arne/typ/fol.php:3) in /disk2/arne/typ/fol.php on line 8

Fatal error: Cannot redeclare f() (previously declared in 
/disk2/arne/typ/fol.php:3) in /disk2/arne/typ/fol.php on line 8
$ type fol.groovy
def f(int v) {
     println("int : $v")
}

def f(String v) {
     println("String : $v")
}

f(123)
f("ABC")
$ groovy fol.groovy
int : 123
String : ABC

We see that:
* Python just let the last function overwrite the previous one and 
ignores type
   hints [BAD]
* PHP gives an error [ACCEPTABLE]
* Groovy it works [GOOD]

So if you want a script language with type safety, then:
   Python - definitely avoid
   PHP - getting better with newer features
   Groovy - use types and you got what you want

And I know you can code in Groovy.  :-)

Arne

Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#166
Author: Arne Vajhøj
Date: Sat, 14 Nov 2026 19:08
40 lines
2784 bytes
On 11/14/2026 1:22 PM, Arne Vajhøj wrote:
> But having a central config file to control the security of a
> server is a smart idea.
> 
> And this is a server config.
Note that besides PHP there is one other web technology
available on VMS that can block shell access.

Java can prevent Runtime.exec calls via the SecurityManager.

And Tomcat can be started with a security manager. Just
specify -security at command line and Tomcat ships
with a catalina.policy file.

But there are some problems:
* SecurityManager is gone from Java 24 and onwards so whenever
   Java 25 hits VMS then no more SecurityManager (I could say
   a few words with my opinion about JCP's decision to
   remove the SecurityManager, but I better not use
   such words publicly ...)
* the syntax of security policy files are a bit
   cryptic (despite actually being VMS like)

Regarding the second point then the syntax is like:

grant {
     permission java.io.FilePermission "-","read,write";
};


And while:
- default no access only explicit granted access matters
- read and write vs execute (to allow exec would be "read,write,execute)
does match VMS thinking then the overall syntax is more like
'WTF is that?'.

Arne


Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#169
Author: Lawrence D’Oliveiro
Date: Sat, 14 Nov 2026 22:17
11 lines
1800 bytes
On Sat, 14 Nov 2026 13:22:17 -0500, Arne Vajhøj wrote:

> On 10/30/2026 7:06 PM, Lawrence D’Oliveiro wrote:
>>
>> Having a global config file to control language features is a
>> stupid idea.
>
> But having a central config file to control the security of a server
> is a smart idea.

But php.ini doesn’t do that. It only covers PHP.
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#170
Author: Lawrence D’Oliveiro
Date: Sat, 14 Nov 2026 22:19
11 lines
1989 bytes
On Sat, 14 Nov 2026 14:08:58 -0500, Arne Vajhøj wrote:

> Note that besides PHP there is one other web technology available on
> VMS that can block shell access.

On Linux, you rely on more wide-ranging access controls, like container
namespaces. Those controls work across all languages, all runtimes, all
libraries, all everything, because they are enforced by the kernel.

*That* is how to do security. Not by relying on poorly-designed
mechanisms specific to one poorly-designed language.
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#171
Author: Lawrence D’Oliveiro
Date: Sat, 14 Nov 2026 22:20
15 lines
1929 bytes
On Sat, 14 Nov 2026 13:23:20 -0500, Arne Vajhøj wrote:

> On 10/30/2026 7:06 PM, Lawrence D’Oliveiro wrote:
>>
>> On Fri, 30 Oct 2026 14:04:22 -0400, Arne Vajhøj wrote:
>>>
>>> They should disable the dangerous PHP functions.
>>
>> What if that breaks a particular PHP application that somebody
>> needs to run?
>>
> As with anything else then it would need to be looked at.

The whole concept of a global mechanism for configuring language
features is wrong.
Re: PHP "Features"
#172
Author: Lawrence D’Oliveiro
Date: Sat, 14 Nov 2026 22:28
26 lines
2143 bytes
On Sat, 14 Nov 2026 13:23:35 -0500, Arne Vajhøj wrote:

> * Python without type hint, Python with type hint, PHP and Groovy
> without type
>    happily allows variables changing type with assignment [BAD]

Do you know why they’re called “hints”?

> Let us look at function overload.
>
> $ type fol.py
> def f(v: int):
>      print(f"int : {v}")
>
> def f(v: str):
>      print(f"str : {v}")

That’s not how to do it
<https://docs.python.org/3/library/functools.html#functools.singledispatch>.

Remember, “def” and “class” statements are not declarations, they are
best considered as a special form of assignment statement.

> And I know you can code in Groovy.  :-)

Groovy does also have more flexible syntax (DSLs) ...
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#173
Author: Arne Vajhøj
Date: Sat, 14 Nov 2026 22:32
21 lines
2218 bytes
On 11/14/2026 5:20 PM, Lawrence D’Oliveiro wrote:
> On Sat, 14 Nov 2026 13:23:20 -0500, Arne Vajhøj wrote:
>> On 10/30/2026 7:06 PM, Lawrence D’Oliveiro wrote:
>>> On Fri, 30 Oct 2026 14:04:22 -0400, Arne Vajhøj wrote:
>>>> They should disable the dangerous PHP functions.
>>>
>>> What if that breaks a particular PHP application that somebody
>>> needs to run?
>>>
>> As with anything else then it would need to be looked at.
> 
> The whole concept of a global mechanism for configuring language
> features is wrong.

But this is not.

This is a server or application config (depending on execution
model).

Arne
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#174
Author: Arne Vajhøj
Date: Sat, 14 Nov 2026 22:37
28 lines
2690 bytes
On 11/14/2026 5:19 PM, Lawrence D’Oliveiro wrote:
> On Sat, 14 Nov 2026 14:08:58 -0500, Arne Vajhøj wrote:
>> Note that besides PHP there is one other web technology available on
>> VMS that can block shell access.
> 
> On Linux, you rely on more wide-ranging access controls, like container
> namespaces. Those controls work across all languages, all runtimes, all
> libraries, all everything, because they are enforced by the kernel.
> 
> *That* is how to do security. Not by relying on poorly-designed
> mechanisms specific to one poorly-designed language.

Linux containers, FreeBSD jails and Solaris zones provide
an additional layer of security - it limits what can be
reached if a security vulnerability in the application
is utilized to try and do something malicious.

It is the next level of traditional minimum privileges
and access restrictions.

It is not an alternative to hardening application
and server. It is an addition.

Do not relax application hardening or server hardening
because "it runs in a container so no problem".

Arne
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#175
Author: Lawrence D’Oliveiro
Date: Sat, 14 Nov 2026 22:40
25 lines
2569 bytes
On Sat, 14 Nov 2026 17:37:24 -0500, Arne Vajhøj wrote:

> On 11/14/2026 5:19 PM, Lawrence D’Oliveiro wrote:
>>
>> On Sat, 14 Nov 2026 14:08:58 -0500, Arne Vajhøj wrote:
>>>
>>> Note that besides PHP there is one other web technology available
>>> on VMS that can block shell access.
>>
>> On Linux, you rely on more wide-ranging access controls, like
>> container namespaces. Those controls work across all languages, all
>> runtimes, all libraries, all everything, because they are enforced
>> by the kernel.
>>
>> *That* is how to do security. Not by relying on poorly-designed
>> mechanisms specific to one poorly-designed language.
>
> It is not an alternative to hardening application and server. It is
> an addition.

You were talking about blocking shell access. You can set up a Linux
container that only runs the one app as pid 1, with no “shell”
anywhere in the visible filesystem to access.

*That* is how to “block shell access”.
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#177
Author: Lawrence D’Oliveiro
Date: Sat, 14 Nov 2026 22:41
27 lines
2453 bytes
On Sat, 14 Nov 2026 17:32:44 -0500, Arne Vajhøj wrote:

> On 11/14/2026 5:20 PM, Lawrence D’Oliveiro wrote:
>>
>> On Sat, 14 Nov 2026 13:23:20 -0500, Arne Vajhøj wrote:
>>>
>>> On 10/30/2026 7:06 PM, Lawrence D’Oliveiro wrote:
>>>>
>>>> On Fri, 30 Oct 2026 14:04:22 -0400, Arne Vajhøj wrote:
>>>>>
>>>>> They should disable the dangerous PHP functions.
>>>>
>>>> What if that breaks a particular PHP application that somebody
>>>> needs to run?
>>>>
>>> As with anything else then it would need to be looked at.
>>
>> The whole concept of a global mechanism for configuring language
>> features is wrong.
>
> But this is not.
>
> This is a server or application config (depending on execution
> model).

Application config should be provided as part of the application.
That’s what “hardening” of applications is all about, isn’t it?
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#176
Author: Arne Vajhøj
Date: Sat, 14 Nov 2026 22:41
24 lines
2391 bytes
On 11/14/2026 5:17 PM, Lawrence D’Oliveiro wrote:
> On Sat, 14 Nov 2026 13:22:17 -0500, Arne Vajhøj wrote:
>> On 10/30/2026 7:06 PM, Lawrence D’Oliveiro wrote:
>>> Having a global config file to control language features is a
>>> stupid idea.
>>
>> But having a central config file to control the security of a server
>> is a smart idea.
> 
> But php.ini doesn’t do that. It only covers PHP.

True. But point is that it is central - not that it is one file.

If you have an Apache and are using mod_php to run PHP,
then you have a httpd.conf, various included .conf files
(like one for SSL and one for PHP) and you have a
php.ini.

They get created by admin/operations. They get audited
by internal and external IS.

Arne

Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#179
Author: Lawrence D’Oliveiro
Date: Sat, 14 Nov 2026 22:48
48 lines
3356 bytes
On Sat, 14 Nov 2026 17:41:59 -0500, Arne Vajhøj wrote:

> On 11/14/2026 5:17 PM, Lawrence D’Oliveiro wrote:
>>
>> On Sat, 14 Nov 2026 13:22:17 -0500, Arne Vajhøj wrote:
>>>
>>> On 10/30/2026 7:06 PM, Lawrence D’Oliveiro wrote:
>>>>
>>>> Having a global config file to control language features is a
>>>> stupid idea.
>>>
>>> But having a central config file to control the security of a
>>> server is a smart idea.
>>
>> But php.ini doesn’t do that. It only covers PHP.
>
> True. But point is that it is central - not that it is one file.

Central meaning it affects *all* apps running under that PHP
installation.

What if a particular configuration setting needed to keep one app
secure breaks a different PHP application that somebody else needs to
run?

This is why having a global config file to control language features
is a stupid idea.

> If you have an Apache and are using mod_php to run PHP, then you
> have a httpd.conf, various included .conf files (like one for SSL
> and one for PHP) and you have a php.ini.

If I were running a Python app, I would still have all the Apache
config, no Python-specific Apache module (thank goodness), and no
python.ini.

What I might also have is separate systemd .service files, one for
running each application, which defines the environment that that
application sees, and blocks it from seeing anything it shouldn’t. As
I mentioned before, this kind of thing is not language-specific, it’s
enforced by the kernel, so it’s a much more robust (and general) way
of doing things.

> They get created by admin/operations. They get audited by internal
> and external IS.

How does the auditor fix things if a php.ini setting needed to secure
one app breaks another one?
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#181
Author: Arne Vajhøj
Date: Sat, 14 Nov 2026 22:58
41 lines
3134 bytes
On 11/14/2026 5:40 PM, Lawrence D’Oliveiro wrote:
> On Sat, 14 Nov 2026 17:37:24 -0500, Arne Vajhøj wrote:
>> On 11/14/2026 5:19 PM, Lawrence D’Oliveiro wrote:
>>> On Sat, 14 Nov 2026 14:08:58 -0500, Arne Vajhøj wrote:
>>>> Note that besides PHP there is one other web technology available
>>>> on VMS that can block shell access.
>>>
>>> On Linux, you rely on more wide-ranging access controls, like
>>> container namespaces. Those controls work across all languages, all
>>> runtimes, all libraries, all everything, because they are enforced
>>> by the kernel.
>>>
>>> *That* is how to do security. Not by relying on poorly-designed
>>> mechanisms specific to one poorly-designed language.
>>
>> It is not an alternative to hardening application and server. It is
>> an addition.
> 
> You were talking about blocking shell access. You can set up a Linux
> container that only runs the one app as pid 1, with no “shell”
> anywhere in the visible filesystem to access.
> 
> *That* is how to “block shell access”.

No shell obvious prevent shell access.

But you should talk to the guy that like to post to
comp.os.vms about how Linux allows for starting a
process without a shell avoiding the need for escaping.

:-)

At least one of the other PHP functions use that
mechanism.

Containers are a great technology, but it is not the
right tool to prevent web applications from executing
commands.

Arne
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#182
Author: Lawrence D’Oliveiro
Date: Sat, 14 Nov 2026 23:01
43 lines
3247 bytes
On Sat, 14 Nov 2026 17:58:38 -0500, Arne Vajhøj wrote:

> On 11/14/2026 5:40 PM, Lawrence D’Oliveiro wrote:
>>
>> On Sat, 14 Nov 2026 17:37:24 -0500, Arne Vajhøj wrote:
>>>
>>> On 11/14/2026 5:19 PM, Lawrence D’Oliveiro wrote:
>>>>
>>>> On Sat, 14 Nov 2026 14:08:58 -0500, Arne Vajhøj wrote:
>>>>>
>>>>> Note that besides PHP there is one other web technology
>>>>> available on VMS that can block shell access.
>>>>
>>>> On Linux, you rely on more wide-ranging access controls, like
>>>> container namespaces. Those controls work across all languages,
>>>> all runtimes, all libraries, all everything, because they are
>>>> enforced by the kernel.
>>>>
>>>> *That* is how to do security. Not by relying on poorly-designed
>>>> mechanisms specific to one poorly-designed language.
>>>
>>> It is not an alternative to hardening application and server. It
>>> is an addition.
>>
>> You were talking about blocking shell access. You can set up a
>> Linux container that only runs the one app as pid 1, with no
>> “shell” anywhere in the visible filesystem to access.
>>
>> *That* is how to “block shell access”.
>
> No shell obvious prevent shell access.
>
> But you should talk to the guy that like to post to comp.os.vms
> about how Linux allows for starting a process without a shell
> avoiding the need for escaping.

How else do you think that pid 1 gets started?

> Containers are a great technology, but it is not the right tool to
> prevent web applications from executing commands.

If the commands are not visible in the filesystem, there is no way to
start them.
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#183
Author: Arne Vajhøj
Date: Sun, 15 Nov 2026 00:42
44 lines
3142 bytes
On 11/14/2026 5:48 PM, Lawrence D’Oliveiro wrote:
> On Sat, 14 Nov 2026 17:41:59 -0500, Arne Vajhøj wrote:
>> On 11/14/2026 5:17 PM, Lawrence D’Oliveiro wrote:
>>> On Sat, 14 Nov 2026 13:22:17 -0500, Arne Vajhøj wrote:
>>>> On 10/30/2026 7:06 PM, Lawrence D’Oliveiro wrote:
>>>>> Having a global config file to control language features is a
>>>>> stupid idea.
>>>>
>>>> But having a central config file to control the security of a
>>>> server is a smart idea.
>>>
>>> But php.ini doesn’t do that. It only covers PHP.
>>
>> True. But point is that it is central - not that it is one file.
> 
> Central meaning it affects *all* apps running under that PHP
> installation.

The details depend on the execution context.

Apache with mod_php can be problematic because PHPIniDir is per
server not per virtual host.

The modern servers will typical be
   1 app - 1 server - 1 IP endpoint - 1 php.ini
so no problem.

>> If you have an Apache and are using mod_php to run PHP, then you
>> have a httpd.conf, various included .conf files (like one for SSL
>> and one for PHP) and you have a php.ini.
> 
> If I were running a Python app, I would still have all the Apache
> config, no Python-specific Apache module (thank goodness), and no
> python.ini.
> 
> What I might also have is separate systemd .service files, one for
> running each application,

Similar to what the modern PHP servers does.

It wastes memory, but provides flexibility.

Arne
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#184
Author: Lawrence D’Oliveiro
Date: Sun, 15 Nov 2026 01:55
26 lines
2782 bytes
On Sat, 14 Nov 2026 19:42:33 -0500, Arne Vajhøj wrote:

> On 11/14/2026 5:48 PM, Lawrence D’Oliveiro wrote:
>>
>> What I might also have is separate systemd .service files, one for
>> running each application,
>
> Similar to what the modern PHP servers does.
>
> It wastes memory, but provides flexibility.

It’s the only rational way to do it.

PHP servers like PHP-FPM, of course, just transplant the original
mod_php environment into an isolated process, unchanged. And they use
creaky old protocols like FastCGI to communicate back to the web
server. (Heard of anything else that uses FastCGI? I haven’t.)

The approach used by other languages, like NodeJS and Python, is to
have your app run its own mini-HTTP server, which is “reverse” proxied
through a “real” web server (Apache, Nginx etc) to the outside world.
The latter takes care of the tricky stuff like SSL/TLS and virtual
hosting, and of course helping to keep the bad guys out, while your
app gets its own event loop, its own ability to run background tasks
according to its own triggers, and the ability to handle asynchronous
requests and maintain long-running connections like WebSockets.
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#185
Author: Arne Vajhøj
Date: Sun, 15 Nov 2026 15:37
52 lines
4140 bytes
On 11/14/2026 8:55 PM, Lawrence D’Oliveiro wrote:
> On Sat, 14 Nov 2026 19:42:33 -0500, Arne Vajhøj wrote:
>> On 11/14/2026 5:48 PM, Lawrence D’Oliveiro wrote:
>>> What I might also have is separate systemd .service files, one for
>>> running each application,
>>
>> Similar to what the modern PHP servers does.
>>
>> It wastes memory, but provides flexibility.
> 
> It’s the only rational way to do it.
> 
> PHP servers like PHP-FPM, of course, just transplant the original
> mod_php environment into an isolated process, unchanged. And they use
> creaky old protocols like FastCGI to communicate back to the web
> server. (Heard of anything else that uses FastCGI? I haven’t.)
> 
> The approach used by other languages, like NodeJS and Python, is to
> have your app run its own mini-HTTP server, which is “reverse” proxied
> through a “real” web server (Apache, Nginx etc) to the outside world.
> The latter takes care of the tricky stuff like SSL/TLS and virtual
> hosting, and of course helping to keep the bad guys out, while your
> app gets its own event loop, its own ability to run background tasks
> according to its own triggers, and the ability to handle asynchronous
> requests and maintain long-running connections like WebSockets.

FastCGI is old but when it came around then it was an improvement
over CGI. It was used from many languages. PHP may be the best
known, but once upon a time Python was there as well - once upon a
time was before WSGI/ASGI became the standard.

Tomcat -> Spring Boot and IIS -> Kestrel are probably the best examples
of the change from multi-app server to single-app server. You pay with
memory to get independence.

There is also a similar move in the PHP world. From Apache+mod_php,
Apache+FPM, niginx+FPM etc. to FrankenPHP, RoadRunner etc.. And in
some ways it is a double win - you get isolation *and* potentially
better performance. I have recently seen claims that for nginx+FPM
vs FrankenPHP then simple PHP code is same, but Laravel applications
are 3 times faster with FrankenPHP. 3 times faster is worth taking.

It is all about independence and performance. Web sockets in PHP is
not a problem for PHP people. And async background tasks would typical
be handed off to something else via a message queue. Something else may
very likely not be PHP - Java, Python or Go would be likely candidates.

Arne



Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#187
Author: Lawrence D’Oliveiro
Date: Sun, 15 Nov 2026 19:24
24 lines
2811 bytes
On Sun, 15 Nov 2026 10:37:02 -0500, Arne Vajhøj wrote:

> There is also a similar move in the PHP world. From Apache+mod_php,
> Apache+FPM, niginx+FPM etc. to FrankenPHP, RoadRunner etc..

Interesting. I looked those up. FrankenPHP builds on Mercure, which is
also used by Symfony. It communicates back with the client using
server-sent events instead of WebSockets. SSE is an older protocol,
which only works in one direction and has other constraints on it --
you really don’t want to be using it any more, now that WebSockets are
available.

As for RoadRunner -- it is not only built on Go, it seems to be
oriented towards avoiding the need to write any more PHP code than
you’ve already got, instead doing all your new development in Go. In
other words, it offers an off-ramp to transition away from PHP!

> And async background tasks would typical be handed off to something
> else via a message queue.

It’s all part of the internal workings of the application. It
shouldn’t be something that a user/admin should have to delve into as
part of the setup -- which is what they typically have to do with PHP,
with cron tasks.
Re: PHP "Features"
#188
Author: Dan Cross
Date: Sun, 15 Nov 2026 21:00
48 lines
2106 bytes
In article <11da8s3$25hpa$4@dont-email.me>,
Arne Vajhøj <arne@vajhoej.dk> wrote:
>On 10/26/2026 9:21 PM, Dan Cross wrote:
>> 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
>
>> In *this* language, `private` doesn't mean what it means in C++.
>
>In Ruby it means object private instead of class private. And as
>demonstrated in my other post then it is a OO encapsulation
>disaster.
>
>But the second example quoted here is actually not different from C++.
>Because C++ interprets visibility as just that and does not
>include overrideability.

I think you missed the point.  If you want to criticize the
author of, "PHP: a Fractal of Bad Design" for "not knowing OO"
because of what they wrote about `private` methods, then you'd
better know what they were referring to.  Consider that,
perhaps, that author _may_ know just a little bit more than you
do about OO.

	- Dan C.
Re: Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#189
Author: Dan Cross
Date: Sun, 15 Nov 2026 21:05
87 lines
4379 bytes
In article <11da8sv$25hpa$5@dont-email.me>,
Arne Vajhøj <arne@vajhoej.dk> wrote:
>On 10/30/2026 5:56 PM, Dan Cross wrote:
>> In article <11c2mfu$fsse$1@dont-email.me>,
>> Arne Vajhøj <arne@vajhoej.dk> wrote:
>>> 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.
>>
>> No, you really did not.  You merely showed that other languages
>> can spawn programs using `LIB$SPAWN` or similar mechanisms.
>
>That *is* the same issue as shell_exec in PHP.

Nope.  Not even close.

>> What you missed is that it is the unique combination of
>> anti-patterns manifest in PHP that make it dangerouus in this
>> regard.
>
>The ability to execute shell commands is the ability
>to execute shell commands. No more no less.

I'm afraid you do not seem to understand what other people are
telling you.  Repeating the same thing over and over again is
not going to change that.

>> Consider this analogy: `strcpy()` is dangerous because you
>> cannot tell it how big the destination buffer is.  `strlcpy()`
>> is much safer because you _do_ tell it the size of the
>> destination buffer, it promises to NUL-terminate the destination
>> (as long as size>0), _and_ it tells how much space the source
>> required, so that you can detect truncation.  That doesn't mean
>> that it is perfectly safe, because you can still give it a bad
>> destination length; you _can_ call it with `SIZE_MAX`, but most
>> programmers do not.
>
>The analogy is whether C is less safe or as safe/unsafe
>as another language XYZ that has a let us say cpystr function
>with the same problem.
>
>And the answer is that C is as safe/unsafe as XYZ (in
>this regard).

You do not understand the analogy.

>>> And unlike with PHP there is no easy way to close the
>>> problem.
>>
>> I doubt that disabling shell actually prevents you from calling
>> `LIB$SPAWN` via other means.
>
>There is a list of functions able to spawn shell commands. I
>even think I listed them in another post. Disable them all
>and no spawn.

...and someone writes a module that invokes, `lib$spawn`; does
the language prevent that?  Or they invoke something that does
it via FFI....does the language prevent that?

	- Dan C.
Re: ?This Is Not a Drill?: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#191
Author: Simon Clubley
Date: Mon, 16 Nov 2026 20:25
24 lines
2504 bytes
On 2026-11-14, Lawrence DÿOliveiro <ldo@nz.invalid> wrote:
> On Sat, 14 Nov 2026 17:58:38 -0500, Arne Vajhøj wrote:
>
>> Containers are a great technology, but it is not the right tool to
>> prevent web applications from executing commands.
>
> If the commands are not visible in the filesystem, there is no way to
> start them.

Your compromised application writes out a basic executable and then
executes it.

SELinux and other MAC technologies are probably a better way for
_helping_ to keep a compromised application contained.

Nothing to stop you using them alongside other tools and technologies
however for a layered approach. Don't forget that security is a process
and a mindset, not a magic bullet.

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
#193
Author: Stephen Hoffman
Date: Tue, 17 Nov 2026 04:26
46 lines
2683 bytes
On 2026-11-16 20:25:51 +0000, Simon Clubley said:

> Your compromised application writes out a basic executable and then 
> executes it.

Yep.

Variously without even writing files: 
https://en.wikipedia.org/wiki/Fileless_malware

> SELinux and other MAC technologies are probably a better way for 
> _helping_ to keep a compromised application contained.

Yep.

Or as an internediate and somewhat smaller implememation effort, 
pledge: https://myunix.org/bsd/openbsd-pledge-unveil/

> Nothing to stop you using them alongside other tools and technologies 
> however for a layered approach. Don't forget that security is a process 
> and a mindset, not a magic bullet.

Yep

Software is "done" just as lawns are "mowed", of course.

And to be very blunt, there is ~no documentation for writing secure 
apps on OpenVMS.

The system security manual is badly dated and woefully incomplete, the 
source code examples are problematic at best, the ACME API eschews the 
easy stuff, the TLS APIs are a moving target, CDSA is decades 
deprecated, etc.

> Simon.

Yep.

What somebody with a pile of spare tokens and an inclination to 
reverse-engineer OpenVMS might eventually find?

Fun Times.

-- 
Pure Personal Opinion | HoffmanLabs LLC 
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#194
Author: Lawrence D’Oliveiro
Date: Tue, 17 Nov 2026 04:36
10 lines
1893 bytes
On Mon, 16 Nov 2026 23:26:18 -0500, Stephen Hoffman wrote:

> And to be very blunt, there is ~no documentation for writing secure
> apps on OpenVMS.

There seems to be this myth that VMS was somehow immune to the
security vulnerabilities that plague other platforms on the Internet.

I mentioned Linux containers: they are helpful for tightly isolating
the environment that is even visible to an app.
Re: ?This Is Not a Drill?: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#196
Author: Simon Clubley
Date: Tue, 17 Nov 2026 13:51
18 lines
2109 bytes
On 2026-11-16, Lawrence DÿOliveiro <ldo@nz.invalid> wrote:
> On Mon, 16 Nov 2026 23:26:18 -0500, Stephen Hoffman wrote:
>
>> And to be very blunt, there is ~no documentation for writing secure
>> apps on OpenVMS.
>
> There seems to be this myth that VMS was somehow immune to the
> security vulnerabilities that plague other platforms on the Internet.
>

And when you prove that it's not immune some people get very annoyed
with you and go into denial.

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
#201
Author: Bill Gunshannon
Date: Wed, 18 Nov 2026 01:39
52 lines
2764 bytes
On 11/16/26 23:26, Stephen Hoffman wrote:
> On 2026-11-16 20:25:51 +0000, Simon Clubley said:
> 
>> Your compromised application writes out a basic executable and then 
>> executes it.
> 
> Yep.
> 
> Variously without even writing files: https://en.wikipedia.org/wiki/ 
> Fileless_malware
> 
>> SELinux and other MAC technologies are probably a better way for 
>> _helping_ to keep a compromised application contained.
> 
> Yep.
> 
> Or as an internediate and somewhat smaller implememation effort, pledge: 
> https://myunix.org/bsd/openbsd-pledge-unveil/
> 
>> Nothing to stop you using them alongside other tools and technologies 
>> however for a layered approach. Don't forget that security is a 
>> process and a mindset, not a magic bullet.
> 
> Yep
> 
> Software is "done" just as lawns are "mowed", of course.
> 
> And to be very blunt, there is ~no documentation for writing secure apps 
> on OpenVMS.
> 
> The system security manual is badly dated and woefully incomplete, the 
> source code examples are problematic at best, the ACME API eschews the 
> easy stuff, the TLS APIs are a moving target, CDSA is decades 
> deprecated, etc.
> 
>> Simon.
> 
> Yep.
> 
> What somebody with a pile of spare tokens and an inclination to reverse- 
> engineer OpenVMS might eventually find?
> 
> Fun Times.
> 


I wish I had kept a copy of the STIG from DISA,  It was very out of date
when I was there in 2009 but could still be used as a starting point for
making new ones.

bill
Re: ?This Is Not a Drill?: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#202
Author: Bill Gunshannon
Date: Wed, 18 Nov 2026 01:43
21 lines
2028 bytes
On 11/17/26 08:51, Simon Clubley wrote:
> On 2026-11-16, Lawrence DÿOliveiro <ldo@nz.invalid> wrote:
>> On Mon, 16 Nov 2026 23:26:18 -0500, Stephen Hoffman wrote:
>>
>>> And to be very blunt, there is ~no documentation for writing secure
>>> apps on OpenVMS.
>>
>> There seems to be this myth that VMS was somehow immune to the
>> security vulnerabilities that plague other platforms on the Internet.
>>
> 
> And when you prove that it's not immune some people get very annoyed
> with you and go into denial.
> 

DISA was well aware and actually published security guides for VMS.
At least until DOD lost all interest in VMS.  I was there in 2009
and it was somewhere before then.

bill
Re: ?This Is Not a Drill?: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#208
Author: Simon Clubley
Date: Wed, 18 Nov 2026 20:26
33 lines
2821 bytes
On 2026-11-17, Bill Gunshannon <bill.gunshannon@gmail.com> wrote:
> On 11/17/26 08:51, Simon Clubley wrote:
>> On 2026-11-16, Lawrence DÿOliveiro <ldo@nz.invalid> wrote:
>>> On Mon, 16 Nov 2026 23:26:18 -0500, Stephen Hoffman wrote:
>>>
>>>> And to be very blunt, there is ~no documentation for writing secure
>>>> apps on OpenVMS.
>>>
>>> There seems to be this myth that VMS was somehow immune to the
>>> security vulnerabilities that plague other platforms on the Internet.
>>>
>> 
>> And when you prove that it's not immune some people get very annoyed
>> with you and go into denial.
>> 
>
> DISA was well aware and actually published security guides for VMS.
> At least until DOD lost all interest in VMS.  I was there in 2009
> and it was somewhere before then.
>

None of that stopped the poor DEFCON 16 people from being shouted at
by some people in denial and people like me having to explain certain
basic things to those same people in denial around here.

Simon.

PS: Those guides also didn't help when it was my turn to be the target
of people in denial a few years later. :-)

-- 
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
#221
Author: Bill Gunshannon
Date: Fri, 20 Nov 2026 01:11
38 lines
2786 bytes
On 11/18/26 15:26, Simon Clubley wrote:
> On 2026-11-17, Bill Gunshannon <bill.gunshannon@gmail.com> wrote:
>> On 11/17/26 08:51, Simon Clubley wrote:
>>> On 2026-11-16, Lawrence DÿOliveiro <ldo@nz.invalid> wrote:
>>>> On Mon, 16 Nov 2026 23:26:18 -0500, Stephen Hoffman wrote:
>>>>
>>>>> And to be very blunt, there is ~no documentation for writing secure
>>>>> apps on OpenVMS.
>>>>
>>>> There seems to be this myth that VMS was somehow immune to the
>>>> security vulnerabilities that plague other platforms on the Internet.
>>>>
>>>
>>> And when you prove that it's not immune some people get very annoyed
>>> with you and go into denial.
>>>
>>
>> DISA was well aware and actually published security guides for VMS.
>> At least until DOD lost all interest in VMS.  I was there in 2009
>> and it was somewhere before then.
>>
> 
> None of that stopped the poor DEFCON 16 people from being shouted at
> by some people in denial and people like me having to explain certain
> basic things to those same people in denial around here.
> 
> Simon.
> 
> PS: Those guides also didn't help when it was my turn to be the target
> of people in denial a few years later. :-)
> 

Although those guides were publicly available I only "know" one person
outside of DOD that actually took the trouble to run the scans and apply
the suggestions in the Guide.  Wanna guess who that one person was. :-)

bill
Re: Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#249
Author: Mechanicjay
Date: Wed, 25 Nov 2026 05:27
15 lines
1966 bytes
On Sat, 14 Nov 2026 13:23:20 -0500, <arne@vajhoej.dk> wrote:
>On 10/30/2026 7:06 PM, Lawrence D’Oliveiro wrote:
>> On Fri, 30 Oct 2026 14:04:22 -0400, Arne Vajhøj wrote:
>>> They should disable the dangerous PHP functions.
>> 
>> What if that breaks a particular PHP application that somebody needs
>> to run?
>As with anything else then it would need to be looked at.
>

Trivial.  You call ini_set() at the start of your program to set things needed
for that program.

--
Sent from my DecStation 5000/25
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#250
Author: Lawrence D’Oliveiro
Date: Wed, 25 Nov 2026 07:02
11 lines
1883 bytes
On Wed, 25 Nov 2026 05:27:29 -0000 (UTC), Mechanicjay wrote:

> Trivial. You call ini_set() at the start of your program to set
> things needed for that program.

That’s actually semi-reasonable. Now you’re getting closer to the
“from __future__ import «backward-incompatible feature»” settings in
Python.

All you have to do now is have your ini_set() take effect only in the
current module.
Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
#251
Author: Arne Vajhøj
Date: Wed, 25 Nov 2026 14:42
25 lines
2398 bytes
On 11/25/2026 12:27 AM, Mechanicjay wrote:
> On Sat, 14 Nov 2026 13:23:20 -0500, <arne@vajhoej.dk> wrote:
>> On 10/30/2026 7:06 PM, Lawrence D’Oliveiro wrote:
>>> On Fri, 30 Oct 2026 14:04:22 -0400, Arne Vajhøj wrote:
>>>> They should disable the dangerous PHP functions.
>>>
>>> What if that breaks a particular PHP application that somebody needs
>>> to run?
>> As with anything else then it would need to be looked at.
> 
> Trivial.  You call ini_set() at the start of your program to set things needed
> for that program.
The directives in php.ini have different status regarding override.

- php.ini only
- php.ini or httpd.conf
- php.ini or httpd.conf or ini_set/user ini
- php.ini or httpd.conf or ini_set/user ini or .htaccess

disable_functions are in the first category.

Arne


Page 3 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