amphp/http-client · Security
amphp/http-client Header leakage on cross-domain redirects
- GHSA ID
- GHSA-8jp9-mpv9-98rj
- Severity
- medium
- Published
- Updated
- CVSS
- 4 · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N
- CVSS v3
- 4 · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N
Description
amphp/http-client has a security weakness that might leak sensitive request headers from the initial request to the redirected host on cross-domain redirects, which were not removed correctly. Message::setHeaders does not replace the entire set of headers, but only operates on the headers matching the given array keys.