Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
GIAC (SANS) logo

GIAC Certified Web Application Defender

Domain 4Objective 4

File Upload, Response Readiness, Proactive Defense GWEB Practice Questions (Page 6)

Part of the Advanced Threats and Defense domain, which makes up ~27% of our current practice bank. GIAC (SANS) does not publish an official question count, but from its 180-minute exam (~70–120 total, ~19–32 in this domain), expect 5–8 from this objective — we provide 47 practice questions to prepare you well beyond it. (estimate)

47questions here
10free pages
10concepts

Questions 26–30

  1. 26expert · hard

    A web application allows users to upload images for avatars. The server-side validation checks the file extension against a whitelist and verifies the MIME type from the Content-Type header. The application also re-encodes images using a library that is known to be vulnerable to decompression bombs. An attacker uploads a small PNG file that, when decompressed, expands to a huge image, causing memory exhaustion. Which defense would be most effective in preventing this attack?

    Select an answer first
  2. 27foundation · easy

    Which of the following is a server-side file upload validation technique that checks the actual content of the file rather than just its metadata?

    Select an answer first
  3. 28foundation · easy

    Which security header helps protect against cross-site scripting (XSS) attacks by controlling how the browser renders content?

    Select an answer first
  4. 29application · medium

    A document management system accepts PDF uploads. A user uploads a file that passes the extension check (.pdf) and the MIME type check (application/pdf), but when another user downloads it, the file is actually an HTML page containing JavaScript that steals session cookies. Which upload attack vector is being exploited?

    Select an answer first
  5. 30foundation · easy

    Which of the following is a critical piece of information that should be logged for every web application request to enable security monitoring?

    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.