Inside Cirro: Enumeration as a Restricted Guest
Microsoft Entra ID's most restrictive guest settings block guests from listing directory objects, but a restricted guest can still read properties of applications and service principals by querying known application IDs. This allows enumeration of applications, service principals, and their role assignments, which could reveal misconfigured reply URLs for potential hijacking.
bishopfox.com
Published on bishopfox.com
Microsoft Entra ID allows organizations to invite external users such as contractors, partners, and customers as B2B guests. These users receive a guest account in the organization’s tenant.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the restricted guest permission model intentionally allows reading application and service principal properties by ID, but does not prevent using known application IDs as seeds to discover other applications and their role assignments.
Impact
A restricted guest could enumerate applications, service principals, OAuth grants and app-role assignments, which may reveal multi-tenant applications or unmaintained reply URLs that could be hijacked, though exploitation depends on additional misconfigurations.
What the attacker needed
A guest account in the target tenant; restricted guest settings enabled; knowledge of at least one application ID
The fix
Microsoft should further document this behaviour and defenders should baseline Microsoft Graph traffic and alert on guests querying many distinct application or service principal IDs.
How it was found
- Authenticate to the tenant as a guest user with the most restrictive guest settings.
- Query the appRoleAssignedTo endpoint for a known application ID such as Microsoft Graph.
- Use the returned service principal object ID to read that service principal's properties.
- Query appRoleAssignedTo for the newly discovered application ID to find further principals.
- Repeat the process to discover additional applications and service principals.
- Optionally use a larger seed list of well-known application IDs to enumerate more applications.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
In Microsoft Entra ID (Microsoft's cloud identity service), organisations can invite outside people as 'guests'. The strictest guest setting is meant to stop guests from browsing the directory of users, groups and apps. This post shows that a guest can still look up individual apps if they already know the app's public ID, and by chaining those lookups they can discover other apps and permissions in the organisation.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.