Information exposure in in guzzlehttp/guzzle (https://github.com/nextcloud/3rdparty/tree/master/guzzlehttp/guzzle)
The bundled Guzzle library fails to remove the Authorization header when a request is redirected from HTTPS to HTTP, so the credential can be sent in clear text. An attacker who can trigger such a downgrade could capture the header and reuse it.
Originally disclosed on HackerOne
- Triaged in 4 days
- Fixed in 48 days
- Disclosed after 3 months
Summary by the program
Advisory at https://github.com/nextcloud/security-advisories/security/advisories/GHSA-vqgm-f748-g76v
The report
Summary:
Affected versions of this package are vulnerable to Information Exposure which fails to strip the Authorization header on HTTP downgrade, this depency is out of date and it can leat to still authorization header.
Steps To Reproduce:
(https://github.com/nextcloud/3rdparty/tree/master/guzzlehttp/guzzle) Introduced through: guzzlehttp/[email protected], aws/[email protected], php-http/[email protected], php-opencloud/[email protected], microsoft/[email protected] From: guzzlehttp/[email protected] From: aws/[email protected] > guzzlehttp/[email protected] From: php-http/[email protected] > guzzlehttp/[email protected]
##Fix: You can update to 7.4.4, 6.5.7 to fix this information exposure.
Impact
Affected versions of this package are vulnerable to Information Exposure which fails to strip the Authorization header on HTTP downgrade.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker who can cause a redirect to HTTP could obtain the Authorization header.
What the attacker needed
Application follows redirects; redirect to an HTTP URL; attacker can observe the HTTP request
The fix
The library should be updated to version 7.4.4 or 6.5.7, which the text says fixes the issue.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When a program follows a redirect from a secure HTTPS address to an insecure HTTP one, it should drop sensitive headers like the one that proves who you are. This report says the Guzzle library kept sending that header, so anyone watching the insecure connection could steal it.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.