# Authenticated but unauthorized users may enumerate Application names via the API

Authenticated low-privilege users could enumerate Argo CD application names by distinguishing 'not found' vs 'unauthorized' API errors on endpoints like /api/v1/application/*/logs.

- Payout: $2,400
- Severity: medium
- Program: Internet Bug Bounty
- Found by: bean-zhang
- Disclosed: 2023-05-25
- CVE: CVE-2022-41354
- Write-up quality: 6/10
- Original: https://hackerone.com/reports/1916583
- Library page: https://bugbountylibrary.com/r/h1%3A1916583
- Tags: area:cloud domain:cloud domain:web impact:internal-access kind:bounty platform:hackerone sev:medium tech:kubernetes technique:recon vuln:access-control vuln:info-disclosure

**Target:** Argo CD API (api/v1/application/**/logs and other name-only endpoints)
**Root cause:** API fetches the application by name before performing RBAC checks, so missing apps return 'not found' while existing-but-forbidden apps return 'unauthorized', leaking existence.
**Steps:**
1. Authenticate to Argo CD as a user without application privileges.
2. Request `GET /api/v1/application/<guess>/logs` (or other name-only endpoints).
3. Observe error: 'not found' means app absent; 'unauthorized' means app exists.
4. Iterate guesses to enumerate valid application names.
**How found:** Researcher noticed that requesting logs for an app they had no rights to returned a 'not found' error containing the app name, hinting the lookup happened before authorization; testing existing vs nonexistent names revealed the differential.
**Exploitation:** Any authenticated user with no app permissions can brute-force candidate names against name-only API endpoints; differential error responses reveal which applications exist, providing a target list for social engineering or further attacks.
**Insight:** On APIs where RBAC needs multiple identifiers (app name + project + namespace), check whether the object is fetched before the authz decision — differential 'not found' vs 'unauthorized' responses on any name-only endpoint leak object existence.

