Courseiva
Software Development SecurityeasyMultiple ChoiceObjective-mapped

CISSP Software Development Security Practice Question

Which of the following is an example of an Insecure Direct Object Reference (IDOR) vulnerability?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

An attacker changes the user ID parameter in a URL to view another user's profile

IDOR occurs when an application exposes a direct reference to an internal object (e.g., database key) and does not verify the user's authorization to access that object.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • An attacker intercepts session cookies to impersonate a user

    Why it's wrong here

    This scenario describes session hijacking, where an attacker gains unauthorized control over a user's active session by stealing or predicting their session identifier, typically stored in a cookie. The attacker then uses this stolen session ID to bypass authentication and impersonate the legitimate user. This differs from an Insecure Direct Object Reference (IDOR) because it focuses on compromising the session itself rather than manipulating a direct reference to an application object.

  • An attacker uses a SQL injection to retrieve data from the database

    Why it's wrong here

    This describes a SQL injection vulnerability, which occurs when an attacker inserts malicious SQL code into input fields, causing the application's database to execute unintended commands. This allows the attacker to bypass security measures, retrieve sensitive data, or even modify database content directly. SQL injection is distinct from an Insecure Direct Object Reference (IDOR) as it targets the database query logic itself, rather than exploiting inadequate authorization checks on application-level object identifiers.

  • An attacker submits a cross-site request forgery (CSRF) token to perform actions

    Why it's wrong here

    This describes a Cross-Site Request Forgery (CSRF) attack, where an attacker crafts a malicious request that an authenticated user unknowingly executes, often by embedding it in a third-party site. The victim's browser then sends this forged request to the legitimate application, leveraging the user's active session. While CSRF tokens are typically a defense against such attacks, the core vulnerability lies in the application's trust in requests originating from an authenticated user's browser, rather than the direct manipulation of object identifiers as seen in IDOR.

  • An attacker changes the user ID parameter in a URL to view another user's profile

    Why this is correct

    This is a classic example of an Insecure Direct Object Reference (IDOR). The application directly exposes a reference to an internal implementation object, such as a user ID in a URL parameter, without adequately verifying the user's authorization to access that specific object. By simply modifying the user ID parameter, the attacker can bypass access controls and retrieve or manipulate data belonging to other users, demonstrating a critical authorization flaw.

About these practice questions

Courseiva writes every CISSP question from scratch — 747 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This CISSP practice question is part of Courseiva's free ISC2 certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CISSP exam.