function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sibendu DasSibendu Das 

Restrict guest users in Experience cloud site from accessing getConfig or getObjectInfo

Dear Experts,

I am exploring vulnerabilties in Experience Cloud sites as per following article:
https://www.varonis.com/blog/abusing-salesforce-communities

My guest user profile does not have any permisison to any objects, APIs or anything else.

In Sharing setting setup, "Secure guest user record access" checkbox s selected. 

Even after that the guest user profile and guest user settings, it still allows guest user to access site configuration data (aura://HostConfigController/ACTION$getConfig
Data), and object details (aura://RecordUiController/ACTION$getObjectInfo)

It is only applying recod level access i.e. guest user cannot access any records, other than its own user record. 

Is it possible to restrict guest users further from  accessing site configuration?

Thanks in advance. 

Regards
Das



  


 
VinayVinay (Salesforce Developers) 
Hi Das,

Can you check below settings?
https://trailhead.salesforce.com/content/learn/modules/nonprofit_volunteer_website/configure-data-access-for-your-site

Thanks,
Sibendu DasSibendu Das
Dear Vinay,

Thank you very much for your response. I have checked this about controling data shared with additional sharing rules.  

However my question is different - can we restrict guest users from  accessing site configuration? 
Currently it seems that guest users can pull lot of site configuration information by using this method -  aura://HostConfigController/ACTION$getConfig

Does Salesforce provide a configuration option to bock this? Or is this by design?

Regards
Das
VinayVinay (Salesforce Developers) 
Hi Das,

As per my understanding, you would need to restrict lightning app accessible to guest users by removing the ltng:allowGuestAccess interface.  

https://developer.salesforce.com/docs/component-library/bundle/ltng:allowGuestAccess/documentation

There is no option to block any component for guest users on experience builder site.

Hope this helps...

Thanks,