Elasticsearch: ACLs are not respected in search results #3519

Open
opened 2026-02-20 16:06:26 -05:00 by deekerman · 2 comments
Owner

Originally created by @dawid-zaroda on GitHub (Jan 22, 2019).

Issue

When user haven't access to record, it will be still visible in search results from Elasticsearch, with all data shown on results list.

Expected Behavior

Displaying search result should respect ACLs and filter results if user shouldn't access them.

Actual Behavior

System doesn't filter results.

Steps to Reproduce

  1. Create role with Owner on all possible rights for Accounts module (or Unset if Owner is no present)
  2. Create new standard user and assign him created role
  3. Create few accounts related to admin and to new user
  4. Login as new user
  5. Type name of account related to admin in global search box

Your Environment

  • SuiteCRM Version used: 7.11.0
  • Browser name and version: Google Chrome 71.0.3578.98 64-bit
  • Environment name and version: PHP 7.1, Elasticsearch 5.6.13
  • Operating System and version: Ubuntu 16.04.4
Originally created by @dawid-zaroda on GitHub (Jan 22, 2019). <!--- Provide a general summary of the issue in the **Title** above --> <!--- Before you open an issue, please check if a similar issue already exists or has been closed before. ---> <!--- If you have discovered a security risk please report it by emailing security@suitecrm.com. This will be delivered to the product team who handle security issues. Please don't disclose security bugs publicly until they have been handled by the security team. ---> #### Issue When user haven't access to record, it will be still visible in search results from Elasticsearch, with all data shown on results list. #### Expected Behavior Displaying search result should respect ACLs and filter results if user shouldn't access them. #### Actual Behavior System doesn't filter results. #### Steps to Reproduce 1. Create role with *Owner* on all possible rights for Accounts module (or Unset if Owner is no present) 2. Create new standard user and assign him created role 3. Create few accounts related to admin and to new user 4. Login as new user 5. Type name of account related to admin in global search box #### Your Environment <!--- Include as many relevant details about the environment you experienced the bug in --> * SuiteCRM Version used: 7.11.0 * Browser name and version: Google Chrome 71.0.3578.98 64-bit * Environment name and version: PHP 7.1, Elasticsearch 5.6.13 * Operating System and version: Ubuntu 16.04.4
Author
Owner

@pgorod commented on GitHub (Jan 22, 2019):

It seems the same thing happens on Advanced Search:

https://suitecrm.com/suitecrm/forum/developer-help/21561-document-revisions-still-showing-in-global-search-although-documents-module-is-restricted

@pgorod commented on GitHub (Jan 22, 2019): It seems the same thing happens on Advanced Search: https://suitecrm.com/suitecrm/forum/developer-help/21561-document-revisions-still-showing-in-global-search-although-documents-module-is-restricted
Author
Owner

@fosullivan-usam commented on GitHub (Apr 29, 2020):

I can confirm that this issue happens with ElasticSearch, even in SuiteCRM 7.11.13. It does NOT happen with Basic or Advanced searches.

Users in a Security Group with limited access to records can see all the ListView columns of all Accounts, Contacts, Opportunities, and Notes records. When they click on the name of any record, they are (correctly) presented with a page that says, "You do not have access to this area. Contact your site administrator to obtain access. Redirect to Home in 3 seconds"

I have had to turn-off ElasticSearch until this issue is fixed.

@fosullivan-usam commented on GitHub (Apr 29, 2020): I can confirm that this issue happens with ElasticSearch, even in SuiteCRM 7.11.13. It does NOT happen with Basic or Advanced searches. Users in a Security Group with limited access to records can see all the ListView columns of all Accounts, Contacts, Opportunities, and Notes records. When they click on the name of any record, they are (correctly) presented with a page that says, "You do not have access to this area. Contact your site administrator to obtain access. Redirect to Home in 3 seconds" I have had to turn-off ElasticSearch until this issue is fixed.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SuiteCRM-SuiteCRM#3519
No description provided.