# Client-side-only authorization checks

Privileged actions gated only in app code; replay the API call with a low-privilege token

_Area: Mobile app security. Seen in 2 disclosed reports; one confirmed bounty: $3,300; latest 2026-11-15. Updated 2026-11-15._

## How it works
The app decides whether the user may do something, and the backend takes the app's word for it. The permission check lives in client code — a boolean, a hardcoded permission string, a UI gate — and the privileged request that follows carries no proof of authority the server can verify. Anyone who can send that request (a low-privilege account, a replayed call, a patched client) gets the privileged result. The broken assumption is that the client is a trusted enforcement point; it is not, because the user controls it.

## Where it shows up
- Permission logic in app code: a `PermissionChecker`-style class comparing a hardcoded name against the user's permission list [E3](https://bugbountylibrary.com/r/blog%3Aco0nan-gitbook-io-wirteups.md).
- "No permission" dialogs that appear before any network call, or that the app shows after a successful response.
- API endpoints whose request body names the role, tenant, or action being authorized, with no server-side re-check.
- Daemons or services that accept a client-supplied identity (token, session ID, audit token) and compare it against their own [E1](https://bugbountylibrary.com/r/blog%3Artx-meta-security-exploitation-2026-11-09-cve-2026-65339-html.md).
- Local P2P/UPnP services reachable by any app holding INTERNET permission, with guessable session IDs and no session authentication [E2](https://bugbountylibrary.com/r/blog%3Ablog-doyensec-com-2020-12-10-novel-abuses-wifi-direct-mobile-file-transfers-html.md).

## How to review
Find the enforcement point for each privileged action and ask: does the server independently verify authority, or does it trust a value the client sent? The invariant: every privileged operation must be authorized server-side against the authenticated caller's identity, never against a client-supplied claim. For daemons, the identity used in a comparison must come from the kernel (the MIG-supplied caller token), not from a property the client can set [E1](https://bugbountylibrary.com/r/blog%3Artx-meta-security-exploitation-2026-11-09-cve-2026-65339-html.md). For local services, a session must be authenticated and bound to the file/action the user approved [E2](https://bugbountylibrary.com/r/blog%3Ablog-doyensec-com-2020-12-10-novel-abuses-wifi-direct-mobile-file-transfers-html.md).

## How finders spotted it
- Recalled a prior backend authz bug, hypothesized the mobile apps hit the same APIs, hit a "no permission" message, then decompiled and used logcat/debugger to locate the check and inspect runtime variables [E3](https://bugbountylibrary.com/r/blog%3Aco0nan-gitbook-io-wirteups.md).
- Noticed a daemon exposed a setter for the client audit token and that the handler never read the kernel-supplied caller token before copying client bytes into the stored identity; reverse-engineered the comparison to see it short-circuits on a match [E1](https://bugbountylibrary.com/r/blog%3Artx-meta-security-exploitation-2026-11-09-cve-2026-65339-html.md).
- Focused on the application layer of custom UPnP services, noticed the P2P interface was reachable by any app with INTERNET permission, then tested session validation, filename binding, and crash behavior [E2](https://bugbountylibrary.com/r/blog%3Ablog-doyensec-com-2020-12-10-novel-abuses-wifi-direct-mobile-file-transfers-html.md).

## Variants seen
- Client-side permission check with no server enforcement, exposing admin data and record creation [E3](https://bugbountylibrary.com/r/blog%3Aco0nan-gitbook-io-wirteups.md).
- Daemon trusting a client-supplied audit token to impersonate itself and bypass TCC [E1](https://bugbountylibrary.com/r/blog%3Artx-meta-security-exploitation-2026-11-09-cve-2026-65339-html.md).
- Local file-transfer service accepting PUTs without validating session ID or filename binding [E2](https://bugbountylibrary.com/r/blog%3Ablog-doyensec-com-2020-12-10-novel-abuses-wifi-direct-mobile-file-transfers-html.md).

## Impact and severity
Low-privileged users reached admin customer data and added records [E3](https://bugbountylibrary.com/r/blog%3Aco0nan-gitbook-io-wirteups.md); a sandboxed app recorded microphone audio without permission or the orange indicator [E1](https://bugbountylibrary.com/r/blog%3Artx-meta-security-exploitation-2026-11-09-cve-2026-65339-html.md); any local app could hijack transfers and push arbitrary files, wormable across victims [E2](https://bugbountylibrary.com/r/blog%3Ablog-doyensec-com-2020-12-10-novel-abuses-wifi-direct-mobile-file-transfers-html.md). Impact rose where the bypass chained with another weakness — a passcode logged to logcat enabling account takeover [E3](https://bugbountylibrary.com/r/blog%3Aco0nan-gitbook-io-wirteups.md) — or where the surface was reachable by every app on the device [E2](https://bugbountylibrary.com/r/blog%3Ablog-doyensec-com-2020-12-10-novel-abuses-wifi-direct-mobile-file-transfers-html.md).

## Seen in real software
Open-source packages and projects, and products, where this pattern was found. If the target runs one, compare the version it runs with the fix.
- **audiomxd** (AUIOServer_SetProperty property 2009) iOS 27.0 beta 4 (24A5390f), fixed in iOS 27.0 beta 5: Who needs permissions and the orange dot that never lit (CVE-2026-65339). Report: https://bugbountylibrary.com/r/blog%3Artx-meta-security-exploitation-2026-11-09-cve-2026-65339-html.md

## Evidence
- E1: https://bugbountylibrary.com/r/blog%3Artx-meta-security-exploitation-2026-11-09-cve-2026-65339-html.md
- E2: https://bugbountylibrary.com/r/blog%3Ablog-doyensec-com-2020-12-10-novel-abuses-wifi-direct-mobile-file-transfers-html.md
- E3: https://bugbountylibrary.com/r/blog%3Aco0nan-gitbook-io-wirteups.md
