GCIH Web App API Attacks Practice Question
An API uses OAuth 2.0. An attacker sends a request with a modified 'redirect_uri' parameter to an authorization endpoint. If successful, this could lead to which type of vulnerability?
⚠ Common exam trap
Students often select generic Cross-Site Request Forgery (CSRF) instead of the specific OAuth attack vector involving authorization code interception via redirect URI manipulation.
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
✓
Authorization Code Interception
Manipulating the 'redirect_uri' in an OAuth flow is a classic technique to facilitate Authorization Code Interception. By changing the URI to a domain under the attacker's control, the attacker can cause the authorization server to send the sensitive authorization code to them instead of the legitimate client application, enabling them to exchange the code for an access token and impersonate the user.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Denial of Service
Why it's wrong here
Denial of Service aims to overwhelm or crash the API service. Manipulating redirect parameters is a logic-based exploit focused on authentication bypass or token theft, not service availability. The attack objective is to gain unauthorized access, not to degrade the quality of the service.
- ✗
Cross-Site Request Forgery
Why it's wrong here
CSRF involves tricking a user's browser into performing actions on a different site. While related to authentication, the specific manipulation of OAuth redirect URIs is designed for intercepting authorization codes during the OAuth handshake process, which is fundamentally different from triggering unauthorized state-changing actions via browsers.
- ✓
Authorization Code Interception
Why this is correct
By modifying the redirect_uri to an attacker-controlled endpoint, the authorization server redirects the user's browser with the authorization code sent to the attacker. The attacker then exchanges this code for a valid access token, bypassing standard authentication flows and gaining full access to the victim's account.
- ✗
Server-Side Request Forgery
Why it's wrong here
SSRF occurs when an attacker forces the server to make requests to unintended locations. Redirect URI manipulation happens on the client-side authorization flow and does not force the backend server to perform requests against internal infrastructure; it merely directs the user's browser agent to a malicious destination.
About these practice questions
This GCIH question is part of Courseiva's 322-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 →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official GIAC exam blueprint
This GCIH practice question is part of Courseiva's free GIAC 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 GCIH exam.