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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| Password set by user id | update endpoint takes the target id from the request | rConfig Core < 8.2.13 / Pro < 8.4.0 (CVE-2026-135695): UserController::update with an admin’s id and a new password → log in as admin ([[raw/github.com/rconfig-authorization-bypass-through-user-controlled-key-16007 |
| Federated / downstream identity | SSO bridge picks the downstream account from a body uid | DreameHome POST /smart-app/meari-cloud/redirectAndLogin: victim’s Meari camera session (live video, audio, recordings) for any uid harvested from forum profiles or an email-to-uid lookup ([[raw/github.com/dreamehome-cloud-api-insecure-direct-object-reference-2-16004 |
| 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 |
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 (Chains on Chains).
- IDOR + CSRF: a 5-step wizard with enumerable IDs plus a backend that accepted the literal CSRF-token placeholder → anonymous hijack (bblabs Wizard Takeover); WeGIA CVE-2026-61671 paired record-ownership bypass with CSRF (WeGIA).
- Reset-link poisoning + IDOR + info leak → ATO (summary only).
- UUID-based reset tokens: v1 time-based UUIDs as reset tokens are time-window predictable (UUIDs in ATO).
Defenses
- Credential and identity mutations take the subject only from the session; ignore body
user_id/email(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(StudioCMS). - Bind reset/OTP state server-side to the identity that requested it; in multi-step flows keep IDs in session (OWASP IDOR Cheat Sheet).
- Isolate session stores per tenant on multisite deployments (phpMyFAQ).
- Third-party widgets that accept a client-asserted
userIdneed signed identity (Featurebase’s JWT “secure installation” mode) (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
- IDOR on Password Change to Full Account Takeover · original
- From IDOR to Account Takeover (ATO) · original
- From Reset to Takeover: IDOR in Password Recovery Systems · original
- IDOR: Admin-to-Owner Account Takeover via Password Reset (StudioCMS) · original
- GraphQL IDOR Vulnerabilities: What They Are and How to Fix · original
- Account Takeover Across Multiple Programs via Featurebase Integration · original
- IDOR: A Tale of Account Takeover · original
- How I Found a Critical IDOR Leading to Full Account Takeover · original
- Foreman PersonalAccessTokensController IDOR · original
- phpMyFAQ authorization bypass (critical) · original
- Broken Access Control: Advanced IDOR Exploitation · original
- openSIS 9.3 insecure direct object reference (IDOR) · original
- EspoCRM IDOR exposes other users IMAP passwords · original
- CVE-2025-1270: IDOR in h6web by Anapi Group · original
- Chains on Chains!! Chaining several IDOR's into Account Takeover · original
- Wizard Takeover ATO (IDOR + CSRF) lab · original
- WeGIA record ownership bypass and CSRF (CVE-2026-61671) · original
- Chaining password reset link poisoning IDOR and information leakage to achieve account takeover · original
- Exploiting UUIDs in Account Takeover: Pentester's Guide · original
- IDOR Prevention Cheat Sheet · original
- rConfig authorization bypass through user-controlled key · original
- DreameHome cloud API insecure direct object reference (2) · original
- DreameHome cloud API insecure direct object reference · original