Hi @Vaibhav-A Mankar ,
Thanks for reaching out.
Multi-tenant applications are designed to be secure and have been widely adopted by many organizations. However, there are potential vulnerabilities that can be exploited if not properly secured.
One of the main concerns with multi-tenant applications is the possibility of data leakage between tenants**.** This can occur if the application is not properly designed to prevent one tenant from accessing another tenant's data. To mitigate this risk, it is important to implement proper access controls and isolate the data of each tenant.
Another potential vulnerability is the possibility of a malicious tenant exploiting a vulnerability in the application to gain access to other tenants' data. To prevent this, if you know the valid tenants in advance, define them as valid token issuers for your token validator.
ValidIssuers = new[] // THIS IS IMPORTANT Only accept tokens from these tenants
{
$"https://login.microsoftonline.com/tenant1/v2.0",
$"https://login.microsoftonline.com/tenant2/v2.0"
}
To remediate these vulnerabilities, it is important to follow security best practices when developing and deploying multi-tenant applications. Additionally, it is important to regularly test and audit the application for vulnerabilities and to promptly address any issues that are identified.
Hope this will help.
Thanks,
Shweta
Please remember to "Accept Answer" if answer helped you.