
GIAC Certified Web Application Defender
Domain 4Objective 1
AJAX Technologies and Security Strategies GWEB Practice Questions (Page 3)
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 46 practice questions to prepare you well beyond it. (estimate)
46questions here
10free pages
8concepts
Questions 11–15
- 11
A developer is building an AJAX-driven comment form. The form accepts a `message` field and displays it in a `<div>` using `innerHTML`. The team wants to prevent XSS while keeping the ability to render basic formatting like bold text. Which approach is MOST secure?
Select an answer first - 12
A security team is reviewing logs for an AJAX endpoint that returns customer records. They notice a pattern where a single user session requests the same record ID hundreds of times in a short period, but each request uses a different `X-Requested-With` header value. What is the most likely attack and what log-based detection is most effective?
Select an answer first - 13
A developer is building a dashboard that polls a server every 5 seconds using AJAX to display real-time metrics. The server returns a JSON payload. The developer notices that the browser sometimes shows stale data because responses arrive out of order. Which approach ensures the dashboard always displays the latest data?
Select an answer first - 14
A web application exposes an AJAX endpoint that returns user search results. The endpoint accepts a `q` parameter and returns JSON. A tester found that submitting `q=<script>alert(1)</script>` causes the script to execute in the browser. The application uses a modern framework that escapes data when rendering. What is the most likely cause and the best fix?
Select an answer first - 15
A company's web application uses AJAX to submit user profile updates to a REST API. The API endpoint accepts JSON and updates the user's email address. A penetration test revealed that an attacker can submit a request with a different `userId` in the JSON body and change another user's email. The application uses session cookies for authentication. Which control should be added to prevent this?
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.