VDB
Sign up
MEDIUM5.3

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.50

Details

`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

Packagist/contao/core-bundle
Introduced in: 4.0.0Fixed in: 5.3.50
Fixcomposer require contao/core-bundle:^5.3.50
Packagist/contao/core-bundle
Introduced in: 5.4.0-RC1Fixed in: 5.7.12
Fixcomposer require contao/core-bundle:^5.7.12

References

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"]}'