
GIAC Web Application Penetration Tester
Domain 5Objective 2
Cross Site Request Forgery, Cross Site Scripting and Client Injection Attack GWAPT Practice Questions (Page 8)
Part of the Injection and Client-Side Attacks domain, which makes up ~23% of our current practice bank. GIAC (SANS) does not publish an official question count, but from its 180-minute exam (~70–120 total, ~16–28 in this domain), expect 8–14 from this objective — we provide 54 practice questions to prepare you well beyond it. (estimate)
54questions here
11free pages
11concepts
Questions 36–40
- 36
A penetration tester is assessing a web application that uses a single-page application (SPA) framework. The tester finds that user input is reflected in the page's URL fragment (e.g., #/profile/<input>). The application's JavaScript reads the fragment and updates the DOM using innerHTML. Which type of XSS is this, and why is it difficult to detect with server-side scanning?
Select an answer first - 37
Which of the following is a common XSS injection point in a web application?
Select an answer first - 38
A security engineer is reviewing a web application that uses a JavaScript library to parse user-supplied HTML. The engineer discovers that the library is vulnerable to DOM clobbering, allowing an attacker to overwrite a global variable used for authentication checks. The application also has a strict Content Security Policy that blocks inline scripts. Which exploitation technique would MOST likely succeed in this scenario?
Select an answer first - 39
A penetration tester is testing a web application that reflects user input in an HTML attribute value without encoding. Which of the following payloads would be most likely to demonstrate XSS in this context?
Select an answer first - 40
Which type of Cross-Site Scripting (XSS) occurs when the injected script is reflected immediately in the server's response and is not stored on the server?
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). “GWAPT” is a trademark of its owner, used for identification only.