Re: [Concept] Flip relative function lookup order (global, then local)

From: Date: Wed, 21 Aug 2024 18:10:50 +0000
Subject: Re: [Concept] Flip relative function lookup order (global, then local)
References: 1 2  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Hi John

On Wed, Aug 21, 2024 at 8:02 PM John Coggeshall <[email protected]> wrote:
>
> This is an attack vector for every application and I would argue should be a real concern for
> the vast majority of applications  out there -- any which rely on namespace-based frameworks and
> composer packages from untrustworthy sources. It's not just Wordpress -- literally every single
> PHP application that uses a publicly available framework and consumes external composer packages
> should be FQing their internal function calls. The natural behavior of the language shouldn't
> be the insecure way of doing things for the sake of maintaining BC compatibility with existing,
> insecure, code.

Including a malicious composer package already allows for arbitrary
code execution, do you really need more than that?

Ilija


Thread (112 messages)

« previous php.internals (#125092) next »