Affected versions
Version ranges need review.
Composercontao/core-bundle
- Affected versions
- >= 4.0.0, < 5.3.50
- Fixed version
- 5.3.50
Composercontao/core-bundle
- Affected versions
- >=4.0.0,<5.3.50|>=5.4.0,<5.7.12
- Fixed version
- Not reported
Composercontao/core-bundle
- Affected versions
- >= 5.4.0-RC1, < 5.7.12
- Fixed version
- 5.7.12
Exploitation
Description
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 .
Links
- https://contao.org/en/security-advisories/exposure-of-sensitive-information-through-a-stale-search-index
- https://github.com/advisories/GHSA-x2rp-9qf7-2fmq
- https://github.com/contao/contao
- https://github.com/contao/contao/commit/572686a113bca60f92cf2d0496cf3a74d0b6b457
- https://github.com/contao/contao/releases/tag/5.3.50
- https://github.com/contao/contao/releases/tag/5.7.12
- https://github.com/contao/contao/security/advisories/GHSA-x2rp-9qf7-2fmq
Credits
- iRevivalx

