REDHAT-BUG-2541649: Medium severity PHP PHP vulnerability
When the http:// stream wrapper follows a redirect it forwards the user-supplied Authorization, Cookie and Proxy-Authorization headers unchanged, even when the redirect target is a different host, a different port, or a downgrade from HTTPS to HTTP. A server that can steer a redirect therefore receives credentials that were only meant for the original origin. This is the same class of issue that libcurl fixed in 7.58.0 ( CVE-2018-1000007 https://github.com/advisories/GHSA-g7x2-hrfp-pv5f ).
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
libcurlto a version that resolves this vulnerability.Fixed in 7.58.0
Event History
Frequently Asked Questions
Which deployments are exposed?
Deployments are exposed when PHP uses the http:// stream wrapper, follows redirects, and sends user-supplied Authorization, Cookie, or Proxy-Authorization headers. The risk exists when a redirect changes the host or port, or downgrades a request from HTTPS to HTTP.
What does an attacker need to exploit this?
An attacker needs control of, or the ability to influence, a server that can return a redirect for a request carrying one of the affected headers. The redirect can direct the request to a different origin, allowing that destination to receive credentials intended for the original server.