Article View: comp.os.vms
Article #227Re: More PHP vulnerabilities
From: Dan Cross
Date: Fri, 20 Nov 2026 20:28
Date: Fri, 20 Nov 2026 20:28
35 lines
2262 bytes
2262 bytes
In article <11dqa7g$3guqc$1@dont-email.me>,
Arne Vajhøj <arne@vajhoej.dk> wrote:
>On 11/20/2026 3:10 PM, Simon Clubley wrote:
>> 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.
>
>Doesn't C require/mandate short circuiting in cases like this??
Yes. `&&` and `||` are both short-circuiting operators in C and
have always been so.
- Dan C.
Technical Details
Message-ID:
<11dqah9$msp$1@reader2.panix.com>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!panix!.POSTED.spitfire.i.gajendra.net!not-for-mailReferences:
<11dnpep$2kvk6$2@dont-email.me> <11dpfjf$35umc$1@dont-email.me> <11dq9gg$3ghpm$1@dont-email.me> <11dqa7g$3guqc$1@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!panix!.POSTED.spitfire.i.gajendra.net!not-for-mail From: cross@spitfire.i.gajendra.net (Dan Cross) Newsgroups: comp.os.vms Subject: Re: More PHP vulnerabilities Date: Fri, 20 Nov 2026 20:28:25 -0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Message-ID: <11dqah9$msp$1@reader2.panix.com> References: <11dnpep$2kvk6$2@dont-email.me> <11dpfjf$35umc$1@dont-email.me> <11dq9gg$3ghpm$1@dont-email.me> <11dqa7g$3guqc$1@dont-email.me> Injection-Date: Fri, 20 Nov 2026 20:28:25 -0000 (UTC) Injection-Info: reader2.panix.com; posting-host="spitfire.i.gajendra.net:166.84.136.80"; logging-data="23449"; mail-complaints-to="abuse@panix.com" X-Newsreader: trn 4.0-test77 (Sep 1, 2010) Originator: cross@spitfire.i.gajendra.net (Dan Cross)