Courseiva
Web Application and Injection AttacksmediumMultiple ChoiceObjective-mapped

CEH Web Application and Injection Attacks Practice Question

During a web application penetration test, a security analyst intercepts a request using Burp Suite and notices the following parameter in the URL: /profile?user_id=123. By changing the user_id to 124, the analyst is able to view another user's profile. Which vulnerability is being exploited?

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

Insecure Direct Object Reference (IDOR)

IDOR occurs when an application exposes a direct reference to an internal object (like a user ID) without proper authorization checks, allowing unauthorized access.

Answer analysis

Option-by-option breakdown

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

  • SQL Injection

    Why it's wrong here

    This option is incorrect because SQL Injection specifically targets the database layer by injecting malicious SQL commands into input fields to manipulate or extract data from the backend database. The scenario describes manipulating a user_id parameter in a URL to access another user's profile, which is an authorization bypass at the application logic level, not an attempt to directly exploit or alter database queries or structures. There is no indication of SQL syntax being used or database errors being triggered.

  • Cross-Site Scripting (XSS)

    Why it's wrong here

    This option is incorrect as Cross-Site Scripting (XSS) involves injecting malicious client-side scripts, typically JavaScript, into web pages to be executed in the victim's browser. XSS attacks aim to steal session cookies, deface websites, or redirect users, by exploiting vulnerabilities in how user-supplied data is rendered. The described action of altering a user_id parameter to view another user's profile is an authorization flaw, not a client-side script injection attack.

  • Insecure Direct Object Reference (IDOR)

    Why this is correct

    This option is correct because Insecure Direct Object Reference (IDOR) vulnerabilities occur when an application exposes a direct reference to an internal object, such as a user_id parameter, and fails to implement proper authorization checks. By simply changing the value of the user_id parameter in the request, the attacker can directly access another user's profile without explicit authorization, exploiting the application's trust in the provided identifier without verifying the user's permissions for that specific resource. This directly matches the scenario.

  • Cross-Site Request Forgery (CSRF)

    Why it's wrong here

    This option is incorrect because Cross-Site Request Forgery (CSRF) involves tricking an authenticated user into unknowingly submitting a malicious request to a vulnerable web application. An attacker crafts a forged request and embeds it into a seemingly benign page, which, when visited by the victim, causes their browser to send the unauthorized request using their active session. The scenario describes the attacker directly manipulating a parameter in their own request, not coercing another user to perform an action.

About these practice questions

This CEH question is part of Courseiva's 870-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam 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 CEH practice question is part of Courseiva's free EC-Council 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 CEH exam.