
GIAC Certified Incident Handler
Domain 3Objective 2
Web Application API Attacks GCIH Practice Questions (Page 8)
Part of the Web Application Security domain, which makes up ~25% of our current practice bank. GIAC (SANS) does not publish an official question count, but from its 240-minute exam (~95–160 total, ~24–40 in this domain), expect 8–13 from this objective — we provide 49 practice questions to prepare you well beyond it. (estimate)
49questions here
10free pages
7concepts
Questions 36–40
- 36
An API endpoint that accepts a 'filename' parameter and uses it in a shell command to process files is vulnerable to command injection. The security team wants to fix the vulnerability without changing the functionality. Which approach is the most secure?
Select an answer first - 37
A web API is configured with a CORS policy that allows any origin ('*') and reflects the Origin header in the Access-Control-Allow-Origin response. An attacker discovers that a logged-in user's browser can make cross-origin requests to this API and read the responses. What is the most appropriate fix?
Select an answer first - 38
Which of the following is an indicator of compromise (IOC) that might suggest an API is being probed for injection vulnerabilities?
Select an answer first - 39
A financial services company exposes a REST API for account transactions. Each request includes a JWT in the Authorization header. During a review, you notice that the JWT contains the user's role and account ID, and the API trusts these claims without further verification. An attacker has modified the role claim from 'user' to 'admin' and the account ID to another customer's account, and the API accepted the request. Which root cause best explains this vulnerability?
Select an answer first - 40
A mobile app uses a long-lived API key embedded in the app binary to authenticate all requests. The key is extracted by an attacker and used to access the API, which returns sensitive user data. What is the most effective way to mitigate this risk?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by GIAC (SANS). “GCIH” is a trademark of its owner, used for identification only.