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 objectPatternCase
Password (no old-password prompt)change-password request identifies the user by body paramencrypted 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 stepOTP 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 issuanceadmin can mint reset links for any userId with no hierarchy checkStudioCMS 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 channelchange victim email, then normal resetFeaturebase 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 cookieuser_id set at registration, trusted by profile APIdonation platform: every user’s PII + ATO ([[raw/medium.com/how-i-found-a-critical-idor-leading-to-full-account-takeover-4383
Personal access tokenscreate-token endpoint lacks parent-user checkForeman Api::V2::PersonalAccessTokensController (CVE-2026-86322): forge PATs for any user incl. admins ([[raw/github.com/foreman-personalaccesstokenscontroller-idor-14343
PasskeysWebAuthn ceremony state in a shared session store across tenantsphpMyFAQ 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 settingssibling endpoint skips the check the profile endpoint enforcesremoved 2FA from a second account ([[raw/weekly-bugbounty-content.beehiiv.com/broken-access-control-advanced-idor-exploitation-4163
Cross-role password resetlower role edits higher role’s credentialopenSIS 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 credentialsobject holds secretsEspoCRM <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 stateidentity reference used to impersonateh6web 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 idupdate endpoint takes the target id from the requestrConfig 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 identitySSO bridge picks the downstream account from a body uidDreameHome 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 membershipassign foreign users as secondary usersPayPal 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 userId need signed identity (Featurebase’s JWT “secure installation” mode) (Featurebase).

Sources