Mobile API & authorization
Mobile API IDOR and BOLA testing guide (OWASP MASVS-AUTH)
Review how your mobile backend enforces ownership and tenant boundaries.
Why BOLA and IDOR are the highest-impact mobile backend flaws
Every mobile app ships a detailed map of its own backend. Static inspection of an Android APK or signed .apks split-APK set (classes.dex, libapp.so, or bundled JavaScript) and an unencrypted iOS IPA exposes REST route templates, GraphQL operations, query parameter names, and model identifiers such as /api/v2/invoices/{invoiceId} or /v1/tenants/{tenantId}/profiles/{userId}. Because any user can extract those routes and replay requests outside the app UI, client-side screen hiding provides zero access control.
Under OWASP MASVS-AUTH and OWASP API1:2023, Broken Object Level Authorization occurs when an endpoint validates that a bearer token or session cookie is authentic, yet fails to check whether the authenticated principal actually owns the requested object ID. Whether identifiers are sequential integers, composite strings, or UUIDs leaked through notifications or shared feeds, a missing server-side ownership predicate turns any low-privilege mobile account into a cross-tenant data breach.
Why automated black-box scanners miss BOLA
Unattended mobile binary scanners and generic API fuzzers routinely miss real BOLA vulnerabilities for three structural reasons:
- Two-principal context is mandatory: Proving unauthorized cross-account access requires at least two distinct authorized test accounts—User A (owner of a known test object) and User B (a second authenticated user in another tenant or role). Single-account crawling only ever requests User A's own identifiers and therefore observes valid
200 OKresponses that look normal. - Realistic state transitions matter: Meaningful object IDs only exist after realistic mobile workflows such as creating a draft order, uploading a document, or opening a support ticket. Without valid state in a dedicated test environment, blind ID mutation mostly hits nonexistent records and returns misleading
404responses. - Unscoped fuzzing risks corrupting live data: Owning or downloading a mobile binary does not grant permission to probe backend APIs. Sending automated mutations against shared staging or production hosts can alter real accounts, trigger fraud alerts, or pollute audit trails without proving authorization defects.
Review a recorded workflow
Use an authorized staging environment and disposable test data. Compare the observed access with the permissions documented for each role. Preserve redacted evidence and ask the service owner to review any discrepancy.
Audit-grade evidence and server-side remediation
Actionable BOLA evidence lets engineers reproduce and close the boundary failure immediately without leaking secrets into ticket trackers. Each validated record should pair the authenticated User A baseline request with the redacted User B cross-account request/response summary, showing the exact endpoint, principal role, object identifier, HTTP status code, and whether unauthorized fields were returned—while masking bearer tokens, cookies, and personal data. Negative results where the server cleanly returned 403 Forbidden or 404 Not Found also belong in the coverage record so auditors see which routes were verified.
Fixing BOLA always happens on the server, never in Android or iOS client code:
- Enforce ownership on every handler: Derive the acting principal and tenant ID solely from the verified server-side session or signed token—never trust client-supplied
user_idoraccount_idparameters in paths, queries, or JSON bodies. - Push tenant predicates into data access: Scope database lookups with compound predicates such as
WHERE id = :object_id AND owner_id = :auth_user_idso an unowned record cannot be fetched even if an ID is guessed or leaked. - Do not rely on UUID obscurity or hidden UI controls: Random UUIDs slow naive enumeration but fail completely once an identifier appears in logs, share links, or WebSocket events. Treat server-side authorization middleware and automated two-account CI regression tests as the primary control.
Record which roles and workflows were covered. Passively observed traffic alone cannot establish that every access control was enforced.
See how redacted evidence and explicit coverage boundaries appear in our sample reports, or compare static, real-device, and scoped pilot options on pricing and pilots.