Contao crawler leaks auth credentials to external hosts
contao
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| contao/contao Packagist |
|
|
| contao/core-bundle Packagist |
|
contao
| Product | Affected | Fixed in |
|---|---|---|
| contao/contao Packagist |
|
|
| contao/core-bundle Packagist |
|
|
Contao is an Open Source CMS. In versions 4.13.40 through 5.3.46 and 5.7.0-RC1 through 5.7.6, the crawler leaks auth credentials to external hosts. Contao's crawler tries to prevent confidential HTTP client options from being sent to external domains by creating a scoped client: full options for root page origins, cleaned options for everything else. The cleaner removes Cookie and Authorization headers, but it removes the non-Symfony option names basic_auth and bearer_auth instead of Symfony HttpClient's real auth_basic and auth_bearer options. When contao.crawl.default_http_client_options contains Basic or Bearer authentication for a protected staging/production site, those credentials remain in the "clean" client used for external links or configured additional URIs. An attacker who can get an external URL crawled, for example through a link on a crawled page while the broken-link checker is enabled, can receive the crawler credentials. This issue has been fixed in versions 5.3.47 and 5.7.7.
From the CVE record · GitHub_M
Contao's crawler can send configured Basic or Bearer authentication credentials to external hosts because its cleaned HTTP client options do not remove the relevant Symfony authentication settings. An attacker who can get an external URL crawled, such as through a link on a crawled page when the broken-link checker is enabled, can receive those credentials if crawler authentication is configured.
Teams running contao/contao or contao/core-bundle versions >=4.13.0 <5.3.47 or >=5.4.0 <5.7.7 should check their installations.