NoPrivateNetworkHttpClient Sends the Default Credentials of the Client It Decorates to Other Origins on Redirects
NIST has received this entry but not started reviewing it.
Since Symfony 5.4.48, 6.4.16, 7.1.9 and 7.2.0, NoPrivateNetworkHttpClient follows redirects itself, and sends each hop as a new request through the client it decorates. Before a redirect to another origin, it removes the Authorization and Cookie headers it knows about. But the decorated client then added its own default options again. These include the auth_basic, auth_bearer and auth_ntlm credentials, and the Authorization and Cookie headers it was created with. Credentials set with withOptions() on the decorator came back the same way, since the decorator forwards them to the decorated client. These credentials were then sent to any origin that a response redirected to, for example through an open redirect on the server the application calls. The decorated client alone doesn't send them. The decorator removed the ones passed to request(), but not auth_ntlm. Since Symfony 8.1, DnsResolvingHttpClient follows redirects the same way and is affected too. With auth_ntlm, curl started the NTLM handshake with the other origin, which could answer with a challenge to get the NTLM response of the application. On a redirect to another origin, the decorator now passes empty Authorization and Cookie headers and unsets the auth_basic, auth_bearer and auth_ntlm options. The decorated client then can't add its own. Decorators between NoPrivateNetworkHttpClient and the transport, like ScopingHttpClient or CachingHttpClient, can't add theirs either.
Exposure of Sensitive Information to an Unauthorized Actor CWE-200
Information that should be private is shown to someone who should not see it.
The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.
Weakness data: MITRE Common Weakness Enumeration.
Insufficiently Protected Credentials CWE-522
The product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval.
Weakness data: MITRE Common Weakness Enumeration.
New to this? Read how to keep your software updated.
The products and versions NIST lists as vulnerable, 2 products in all. If what you run is not listed it is probably not affected, but ask your provider if you are unsure.
| Product | Type | Vulnerable versions | Fixed in |
|---|---|---|---|
| Symfony symfony/http-client | Software | from 5.4.48, before 5.4.57; from 6.4.16, before 6.4.51; from 7.1.9, before 7.4.24; from 8.0.0, before 8.1.12 | 5.4.57; 6.4.51; 7.4.24; 8.1.12 |
| Symfony symfony/symfony | Software | from 5.4.48, before 5.4.57; from 6.4.16, before 6.4.51; from 7.1.9, before 7.4.24; from 8.0.0, before 8.1.12 | 5.4.57; 6.4.51; 7.4.24; 8.1.12 |
The 8.2 severity score (high) from the company that reported it, broken into what it means in practice. Red means it makes the flaw easier or worse.
| How it is reached | Network | Can be attacked from anywhere on the internet, with no need to be near the target. |
| How hard it is | Low | Easy to carry out. No special conditions have to line up. |
| Setup needed on the target | Present | The target has to be set up in a particular way. |
| Login needed | None | The attacker does not need an account or password. |
| Someone has to act | None | Nobody has to click or open anything. It can happen on its own. |
| Data exposed | High | Total loss of confidentiality: the attacker can read all the data the program can reach. |
| Data changed | None | Nothing can be changed. |
| Service disrupted | None | The service keeps running. |
NIST lists 3 sources for this flaw, none tagged as a vendor patch.