🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.vms
Article #219

Re: More PHP vulnerabilities

#219
From: Arne Vajhøj
Date: Thu, 19 Nov 2026 23:43
45 lines
2502 bytes
On 11/19/2026 4:25 PM, Arne Vajhøj wrote:
> They released a bunch of fixes today.
> 
> One of them is easy to demo on VMS:
> 
> $ type another.php
> <?php
> 
> $sslctxopts= [
>      'ssl' => [
>          'verify_peer'=> false,
>          'verify_peer_name'=> false,
>      ],
> ];
> 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
> 
> WTF????
> 
> reveal.aspx contains:
> 
> Port = <%= Request.Url.Port %>
Two notes:
1) Despite the name then file_get_contents can also
    be used for POST requests (sending data out)
2) The entire feature can be disabled in php.ini by
    setting allow_url_fopen to off, but that is not
    expected to be necessary

Anyway I will recommend anyone needing to do HTTP requests
in PHP to use the curl extension instead of file_get_contents.

Arne
Technical Details
Message-ID: <11do1ic$2nr6d$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <11dnpep$2kvk6$2@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Arne Vajhøj <arne@vajhoej.dk>
Newsgroups: comp.os.vms
Subject: Re: More PHP vulnerabilities
Date: Thu, 19 Nov 2026 18:43:59 -0500
Organization: A noiseless patient Spider
Lines: 45
Message-ID: <11do1ic$2nr6d$1@dont-email.me>
References: <11dnpep$2kvk6$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 19 Nov 2026 23:43:09 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2878669"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/0yKox8inKao4UmLQ89J80D7ShFKRI97o="; posting-host="c1b363865fdabdef3577e47785d32a36"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:N8amqDC+cGW91E6Q+7lLEddADlM= sha256:BVS52s38PV0x863L6bgtVsDnNBfMkXHZ44ndkFk1i0Y=
	sha1:31RzaEp4cyuacU51omxxePGT7kw= sha256:Jyz2OFPD+MEVgZmtcsFP0KK+hJI1tjNas3/3QGJpBqE=
Content-Language: en-US
In-Reply-To: <11dnpep$2kvk6$2@dont-email.me>