Article View: comp.os.vms
Article #225Re: More PHP vulnerabilities
From: Simon Clubley
Date: Fri, 20 Nov 2026 20:10
Date: Fri, 20 Nov 2026 20:10
34 lines
2419 bytes
2419 bytes
On 2026-11-20, Arne Vajhøj <arne@vajhoej.dk> wrote:
> On 11/19/2026 4:25 PM, Arne Vajhøj wrote:
>> echo file_get_contents("http://arnepc5.vajhoej.dk/reveal.aspx") . "\n";
>> //echo file_get_contents("https://arnepc5.vajhoej.dk/reveal.aspx") . "\n";
>> echo file_get_contents("https://arnepc5.vajhoej.dk/reveal.aspx", false,
>> stream_context_create($sslctxopts)) . "\n";
>> echo file_get_contents("HTTPS://arnepc5.vajhoej.dk/reveal.aspx") . "\n";
>> echo file_get_contents("httpS://arnepc5.vajhoej.dk/reveal.aspx") . "\n";
>
>> $ php another.php
>> Port = 80
>> Port = 443
>> Port = 80
>> Port = 80
> And for the curious - before fix:
>
> use_ssl = resource->scheme && (ZSTR_LEN(resource->scheme) > 4) &&
> ZSTR_VAL(resource->scheme)[4] == 's';
>
I really hope that line was always compiled by a short-circuiting
compiler and that line always successfully triggered short-circuiting...
Don't be surprised if everyone is now looking for similar constructs
that rely on short-circuiting to be safe.
And yes, I know it's read-only. That's not the point. That's _seriously_
not the point.
Simon.
--
Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.
Technical Details
Message-ID:
<11dq9gg$3ghpm$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11dnpep$2kvk6$2@dont-email.me> <11dpfjf$35umc$1@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Simon Clubley <clubley@remove_me.eisner.decus.org-Earth.UFP> Newsgroups: comp.os.vms Subject: Re: More PHP vulnerabilities Date: Fri, 20 Nov 2026 20:10:56 -0000 (UTC) Organization: A noiseless patient Spider Lines: 34 Message-ID: <11dq9gg$3ghpm$1@dont-email.me> References: <11dnpep$2kvk6$2@dont-email.me> <11dpfjf$35umc$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 20 Nov 2026 20:10:58 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3688246"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Wh1UMA8W17iIpJv3fpKyuuuohtZ4QzZk="; posting-host="e6a98b0362525123c20b4eb2bdb9538e" User-Agent: slrn/0.9.8.1 (VMS/Multinet) Cancel-Lock: sha1:YxViyRe0ELnuXSpJBmfxfKd+eOw= sha256:kvLAF8rDoDp0o0i15Y/vV17Lj52APAdDfYJ3lPD1qn0= sha1:3ouazNR0eemIgjzeURrPXb/cgKU= sha256:ts+dYFJwqz0kyEVL9VZanKPcJuzU8j8cF713Q6gSgVk=