PHP on Azure works well. The risk is an app that still uses Microsoft's retired PHP SDK: code that can return successful responses while quietly lowering transport security.
HTTPS_PROXY is set. Its later Storage client reads HTTP_PROXY in web requests, against Guzzle's rule; only a guard inside PHP itself keeps a request header from steering it. Neither behavior produces a warning.Check the package, not the hosting platform
Running PHP in Azure App Service or containers is a valid setup. This note covers Composer files that include microsoft/windowsazure, microsoft/azure-storage, or retired microsoft/azure-storage-* clients.
composer why microsoft/windowsazure
composer why microsoft/azure-storage-blob
composer show --locked | grep -E 'microsoft/(windowsazure|azure-storage)'
Microsoft retired the original Azure SDK for PHP in 2021 and archived it in 2023. They retired the separate Storage clients in 2024. These packages stay on Packagist so old builds do not break, but they get no security updates.
They are still in wide use. On October 13, 2026, Packagist reported 440,357 installs of microsoft/azure-storage-blob in the previous 30 days and 466,049 of microsoft/azure-storage-common. The original microsoft/windowsazure package had 5,326.
Risk 1: a proxy disables TLS checks
The old SDK's HTTP client contains this code before sending requests:
if (getenv('HTTPS_PROXY')) {
$options[RequestOptions::VERIFY] = false;
}
This is the real runtime path in the archived HttpClient. When HTTPS_PROXY is set, the client stops checking that the TLS certificate belongs to Azure. The proxy, or anyone on the network path to it, can present its own certificate, read the request, and pass it along.
The application can show these results while certificate verification is disabled:
- The app starts normally.
- The proxy returns real Azure data.
- Health checks stay green.
- No certificate error shows up.
- The connection is still encrypted, but nothing verifies who is on the other end, so keys, tokens, and data are readable by whoever terminates it.
This needs two things to be true: the process has HTTPS_PROXY set, which is common in corporate networks and container platforms, and someone controls the proxy or a hop before it.
Risk 2: the Storage client leaves proxy safety to PHP
The later Storage SDK keeps TLS checks on, but reads the proxy setting in every kind of PHP process:
$proxy = getenv('HTTP_PROXY');
if (!empty($proxy)) {
$options['proxy'] = $proxy;
}
This is the pattern behind httpoxy. Under CGI and FastCGI, a request header named Proxy arrives as the variable HTTP_PROXY, so an attacker could once point outgoing calls at a server of their choice. Guzzle reads HTTP_PROXY only on the command line for that reason. The Storage client passes the variable to Guzzle directly and skips that rule.
On a current PHP the header route is closed, but not by the SDK. Since PHP 5.5.38, 5.6.24 and 7.0.9, released in July 2016, getenv('HTTP_PROXY') returns nothing for a value that came from a request header. A Proxy header therefore does not redirect storage calls on any supported PHP version.
What remains is a client whose safety depends on that one runtime guard. A value placed in the real process environment is still honored for web requests. Anything that fills HTTP_PROXY another way, such as a web server or process manager that copies request data into the environment, would bring the redirect back. The package will not be fixed, so check how that variable is set in your deployment.
Why updating Guzzle alone does not fix these paths
The first path is an active flaw and the second is a missing safeguard. Both run silently and keep returning green checks. Neither will get an upstream fix, because the repositories are archived. Updating Guzzle alone does not change them, because the logic lives in the Azure wrapper code.
A maintained migration path
The independent azure-oss/storage-blob project provides current packages for Blob Storage, Queue Storage, and Entra ID on PHP 8.2+ with modern Guzzle:
{
"php": "^8.2",
"guzzlehttp/guzzle": "^7.8 || ^8.0",
"azure-oss/storage-common": "^2.0"
}
How to migrate safely
- Search code for
WindowsAzure\andMicrosoftAzure\Storage\. - Check server environment for
HTTP_PROXY,HTTPS_PROXY, andverify=false. - Add an interface around storage calls so your app does not depend on SDK classes directly.
- Switch one service at a time to
azure-oss/storage-blob. - Test uploads, downloads, SAS tokens, and error handling.
- Confirm retired Microsoft packages are gone from
composer.lock.
Primary sources: Archived Azure SDK for PHP | Archived Azure Storage SDK for PHP | httpoxy Vulnerability Class | PHP bug 72573 | Guzzle proxy defaults | Packagist install statistics | PHP OSS for Azure