# IDOR to Account Takeover
> Escalating an object-reference bug into full control of another account by hitting objects that *are* the account's authentication state: email, password, reset tokens, API tokens, passkeys, 2FA, or stored credentials.
## How it works
ATO-grade IDORs share one shape: an identity-mutating or credential-issuing endpoint takes the target identity from the request (`user_id`, `email`, `userId`) instead of the session. Once the attacker can set a credential, or a recovery channel that leads to one, on a foreign account, the read/write IDOR becomes account takeover. Severity then depends on how easily the victim's identifier can be obtained; see [[Predictable Identifiers]].
## Techniques / patterns
| Target object | Pattern | Case |
|---|---|---|
| Password (no old-password prompt) | change-password request identifies the user by body param | encrypted `user id` in GET; a payment page's email lookup returned any user's ID → ATO on a Bugcrowd private program ([[raw/rohit443.medium.com/idor-on-password-change-to-full-account-takeover-4373|rohit443]]); profile edit accepted another account's `user_email` + `user_idx`, with `user_idx` ≈ account count (<2,500) ([[raw/medium.com/from-idor-to-account-takeover-ato-4160|Hossam Hamada]]) |
| Reset flow final step | OTP verified for attacker's email, then `email` swapped in the set-password request | [[raw/medium.com/from-reset-to-takeover-idor-in-password-recovery-systems-4372|From Reset to Takeover]] |
| Reset-token issuance | admin can mint reset links for any `userId` with no hierarchy check | StudioCMS `POST /studiocms_api/dashboard/create-reset-link` → owner takeover ([[raw/github.com/idor-admin-to-owner-account-takeover-via-password-reset-studiocms-4388|StudioCMS]]); Vimeo password reset for any account ([[raw/escape.tech/graphql-idor-vulnerabilities-what-they-are-and-how-to-fix-4745|Escape]]) |
| Email / recovery channel | change victim email, then normal reset | Featurebase `POST /api/v1/user/identify` trusted client `userId`, affecting many programs' `feedback.*` deployments; `POST /api/v1/user` also returned the user's access token ([[raw/infosecwriteups.com/account-takeover-across-multiple-programs-via-featurebase-integration-10882|Featurebase]]); sequential `/user/<id>` exposing then editing email/password/mobile ([[raw/medium.com/idor-a-tale-of-account-takeover-4161|IDOR: A Tale of ATO]]) |
| Profile ID in cookie | `user_id` set at registration, trusted by profile API | donation platform: every user's PII + ATO ([[raw/medium.com/how-i-found-a-critical-idor-leading-to-full-account-takeover-4383|critical IDOR → ATO]]) |
| Personal access tokens | create-token endpoint lacks parent-user check | Foreman `Api::V2::PersonalAccessTokensController` (CVE-2026-86322): forge PATs for any user incl. admins ([[raw/github.com/foreman-personalaccesstokenscontroller-idor-14343|Foreman]]) |
| Passkeys | WebAuthn ceremony state in a shared session store across tenants | phpMyFAQ multisite (CVE-2026-130369): `prepare()` on one tenant replayed to `/api/webauthn/register` on another to overwrite passkeys ([[raw/github.com/phpmyfaq-authorization-bypass-critical-14889|phpMyFAQ]]) |
| 2FA settings | sibling endpoint skips the check the profile endpoint enforces | removed 2FA from a second account ([[raw/weekly-bugbounty-content.beehiiv.com/broken-access-control-advanced-idor-exploitation-4163|Weekly Bug Bounty]]) |
| Cross-role password reset | lower role edits higher role's credential | openSIS 9.3 (CVE-2026-91107): teacher resets admin passwords via `staff_id` ([[raw/fluidattacks.com/opensis-9-3-insecure-direct-object-reference-idor-13184|Fluid Attacks]]) |
| Stored third-party credentials | object holds secrets | EspoCRM <10.0.5 (CVE-2026-105833): other users' IMAP passwords by Email Account ID → mailbox compromise ([[raw/cvebase.io/espocrm-idor-exposes-other-users-imap-passwords-13187|cvebase]]) |
| Session state | identity reference used to impersonate | h6web CVE-2025-1270: `pkrelated` param grants other users' identity for later requests ([[raw/github.com/cve-2025-1270-idor-in-h6web-by-anapi-group-4749|h6web]]); Shopify: expire other users' sessions by changing the request ([[raw/escape.tech/graphql-idor-vulnerabilities-what-they-are-and-how-to-fix-4745|Escape]]) |
| Account membership | assign foreign users as secondary users | PayPal business accounts ([[raw/escape.tech/graphql-idor-vulnerabilities-what-they-are-and-how-to-fix-4745|Escape]]) |
### Chains
- **Enrollment pre-population:** utility-portal enrollment pre-filled the email for an AccountID + 4-digit PIN; several IDORs leaked those values and chained to takeover ([[raw/medium.com/chains-on-chains-chaining-several-idor-s-into-account-takeover-part-on-413|Chains on Chains]]).
- **IDOR + CSRF:** a 5-step wizard with enumerable IDs plus a backend that accepted the literal CSRF-token placeholder → anonymous hijack ([[raw/bblabs.es/wizard-takeover-ato-idor-csrf-lab-based-on-a-real-report-12598|bblabs Wizard Takeover]]); WeGIA CVE-2026-61671 paired record-ownership bypass with CSRF ([[raw/insightcve.com/wegia-record-ownership-bypass-and-csrf-cve-2026-61671-12754|WeGIA]]).
- **Reset-link poisoning + IDOR + info leak** → ATO ([[raw/medium.com/chaining-password-reset-link-poisoning-idor-and-information-leakage-to-7416|summary only]]).
- **UUID-based reset tokens:** v1 time-based UUIDs as reset tokens are time-window predictable ([[raw/medium.com/exploiting-uuids-in-account-takeover-pentester-s-guide-4389|UUIDs in ATO]]).
## Defenses
- Credential and identity mutations take the subject **only** from the session; ignore body `user_id`/`email` ([[raw/cheatsheetseries.owasp.org/idor-prevention-cheat-sheet-3064|OWASP IDOR Cheat Sheet]]).
- Require re-authentication (old password / step-up) for password, email, 2FA and passkey changes.
- Admin "act on user" endpoints enforce role hierarchy, not just `isAdmin` ([[raw/github.com/idor-admin-to-owner-account-takeover-via-password-reset-studiocms-4388|StudioCMS]]).
- Bind reset/OTP state server-side to the identity that requested it; in multi-step flows keep IDs in session ([[raw/cheatsheetseries.owasp.org/idor-prevention-cheat-sheet-3064|OWASP IDOR Cheat Sheet]]).
- Isolate session stores per tenant on multisite deployments ([[raw/github.com/phpmyfaq-authorization-bypass-critical-14889|phpMyFAQ]]).
- Third-party widgets that accept a client-asserted `userId` need signed identity (Featurebase's JWT "secure installation" mode) ([[raw/infosecwriteups.com/account-takeover-across-multiple-programs-via-featurebase-integration-10882|Featurebase]]).
## Related
- [[Insecure Direct Object Reference]]
- [[Account Takeover]]
- [[Password Reset Vulnerabilities]]
- [[MFA Bypass]]
- [[Passkeys and WebAuthn]]
- [[Predictable Identifiers]]
- [[Vulnerability Chaining]]
- [[Cross-Site Request Forgery]]
- [[Privilege Escalation]]
## Sources
- [[raw/rohit443.medium.com/idor-on-password-change-to-full-account-takeover-4373|IDOR on Password Change to Full Account Takeover]]
- [[raw/medium.com/from-idor-to-account-takeover-ato-4160|From IDOR to Account Takeover (ATO)]]
- [[raw/medium.com/from-reset-to-takeover-idor-in-password-recovery-systems-4372|From Reset to Takeover: IDOR in Password Recovery Systems]]
- [[raw/github.com/idor-admin-to-owner-account-takeover-via-password-reset-studiocms-4388|IDOR: Admin-to-Owner Account Takeover via Password Reset (StudioCMS)]]
- [[raw/escape.tech/graphql-idor-vulnerabilities-what-they-are-and-how-to-fix-4745|GraphQL IDOR Vulnerabilities: What They Are and How to Fix]]
- [[raw/infosecwriteups.com/account-takeover-across-multiple-programs-via-featurebase-integration-10882|Account Takeover Across Multiple Programs via Featurebase Integration]]
- [[raw/medium.com/idor-a-tale-of-account-takeover-4161|IDOR: A Tale of Account Takeover]]
- [[raw/medium.com/how-i-found-a-critical-idor-leading-to-full-account-takeover-4383|How I Found a Critical IDOR Leading to Full Account Takeover]]
- [[raw/github.com/foreman-personalaccesstokenscontroller-idor-14343|Foreman PersonalAccessTokensController IDOR]]
- [[raw/github.com/phpmyfaq-authorization-bypass-critical-14889|phpMyFAQ authorization bypass (critical)]]
- [[raw/weekly-bugbounty-content.beehiiv.com/broken-access-control-advanced-idor-exploitation-4163|Broken Access Control: Advanced IDOR Exploitation]]
- [[raw/fluidattacks.com/opensis-9-3-insecure-direct-object-reference-idor-13184|openSIS 9.3 insecure direct object reference (IDOR)]]
- [[raw/cvebase.io/espocrm-idor-exposes-other-users-imap-passwords-13187|EspoCRM IDOR exposes other users IMAP passwords]]
- [[raw/github.com/cve-2025-1270-idor-in-h6web-by-anapi-group-4749|CVE-2025-1270: IDOR in h6web by Anapi Group]]
- [[raw/medium.com/chains-on-chains-chaining-several-idor-s-into-account-takeover-part-on-413|Chains on Chains!! Chaining several IDOR's into Account Takeover]]
- [[raw/bblabs.es/wizard-takeover-ato-idor-csrf-lab-based-on-a-real-report-12598|Wizard Takeover ATO (IDOR + CSRF) lab]]
- [[raw/insightcve.com/wegia-record-ownership-bypass-and-csrf-cve-2026-61671-12754|WeGIA record ownership bypass and CSRF (CVE-2026-61671)]]
- [[raw/medium.com/chaining-password-reset-link-poisoning-idor-and-information-leakage-to-7416|Chaining password reset link poisoning IDOR and information leakage to achieve account takeover]]
- [[raw/medium.com/exploiting-uuids-in-account-takeover-pentester-s-guide-4389|Exploiting UUIDs in Account Takeover: Pentester's Guide]]
- [[raw/cheatsheetseries.owasp.org/idor-prevention-cheat-sheet-3064|IDOR Prevention Cheat Sheet]]