GHSA-x2rp-9qf7-2fmq
Contao: Protected page content is disclosed to anonymous visitors after contao.search.index_protected is disabled
Quick fix
GHSA-x2rp-9qf7-2fmq — contao/core-bundle: upgrade to the fixed version with the command below.
composer require contao/core-bundle:^5.3.50Details
`ModuleSearch` decides whether to filter protected pages out of search results based on the current value of `contao.search.index_protected`, but the authorisation data lives per row in `tl_search`. Turning the setting off removes the filter without removing the rows, so protected pages that were indexed while it was on are returned to unauthenticated visitors such as title, URL and context snippet, even though the pages themselves still answer 401.
## Impact
Disclosure of member-only page titles, URLs and indexed text to unauthenticated visitors through the site search. The pages themselves remain access-controlled, so this is not a page-access bypass.
## Credits
This security vulnerability was found by @iRevivalx .
Are you affected?
Enter the version of the package you're using.
Affected packages
4.0.0Fixed in: 5.3.50composer require contao/core-bundle:^5.3.505.4.0-RC1Fixed in: 5.7.12composer require contao/core-bundle:^5.7.12References
- https://github.com/contao/contao/security/advisories/GHSA-x2rp-9qf7-2fmq[WEB]
- https://github.com/contao/contao/commit/572686a113bca60f92cf2d0496cf3a74d0b6b457[WEB]
- https://github.com/contao/contao[PACKAGE]
- https://github.com/contao/contao/releases/tag/5.3.50[WEB]
- https://github.com/contao/contao/releases/tag/5.7.12[WEB]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:composer/contao/core-bundle"]}'