
GIAC Certified Web Application Defender
Domain 3Objective 1
Input Related Flaws and Input Validation GWEB Practice Questions (Page 2)
Part of the Input Handling and Injection Flaws domain, which makes up ~16% of our current practice bank. GIAC (SANS) does not publish an official question count, but from its 180-minute exam (~70–120 total, ~11–19 in this domain), expect 4–6 from this objective — we provide 44 practice questions to prepare you well beyond it. (estimate)
44questions here
9free pages
9concepts
Questions 6–10
- 6
A web application accepts a file path parameter that is used to read files from the server. The validation logic rejects any input containing '..' or '/' to prevent path traversal. An attacker submits '%2e%2e%2f' and successfully reads a file outside the intended directory. What is the most effective countermeasure?
Select an answer first - 7
A web application accepts a 'date' parameter that is used to filter records. The application validates that the date matches the format 'YYYY-MM-DD'. An attacker submits '2024-13-45' and the application accepts it, causing unexpected behavior. Which validation technique is missing?
Select an answer first - 8
A web application accepts a 'country' parameter that is later used in a database query. The application currently uses a denylist that blocks common SQL injection strings such as ' OR 1=1 --. A security review recommends replacing the denylist with an allowlist. Which approach best implements an allowlist for this parameter?
Select an answer first - 9
A web application validates a 'file' parameter by checking that it does not contain '../' after URL decoding. An attacker submits 'file=....//' (double dot and double slash) and successfully reads a file outside the intended directory. What is the most effective way to prevent this bypass?
Select an answer first - 10
Which of the following is a common input validation bypass technique that uses a null byte?
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). “GWEB” is a trademark of its owner, used for identification only.