Home / GIAC Web Application Penetration Tester (GWAPT) / Mock exam
GIAC Web Application Penetration Tester (GWAPT) Exam-style mock test

GIAC GWAPT Web Application Penetration Tester Practice Exams|Practice test

Full explanations Exam format Pass line 71%
33 USD One-time · lifetime access
Enroll →

Sample questions

Example1 · Web Application Reconnaissance and Mapping
A penetration tester is kicking off an engagement against a B2B SaaS invoicing portal. Before sending any crafted requests, the tester wants to fingerprint the web server, framework, and backend components by observing how the application presents itself. Which initial step best fingerprints the technology stack with minimal intrusiveness?
・Launch a full authenticated vulnerability scan that actively fuzzes every parameter on each discovered endpoint and reports back
Incorrect. A full active fuzzing scan is noisy and intrusive, which contradicts the goal of low-impact initial fingerprinting.
✓Inspect HTTP response headers, cookie names, and error page wording returned by normal page requests
Correct. Server headers, cookie naming conventions, and error message formatting passively reveal the web server, framework, and backend technologies.
・Immediately brute-force the administrative login page using a large credential list obtained from prior breaches
Incorrect. Brute-forcing the login is an attack action, not reconnaissance, and reveals little about the underlying stack.
・Rewrite the portal's source code locally to determine which libraries the developers must have imported
Incorrect. The tester does not have the server-side source code, so rewriting it locally is not a valid fingerprinting technique.
Explanation
Passive inspection of headers, cookies, and error output is the standard low-noise way to fingerprint a technology stack before active testing.
Example2 · Authentication, Session, and Access Control Attacks
During a test of the login portal for a B2B SaaS invoicing platform, you submit a known-valid tenant email with a wrong password and receive 'Incorrect password', but submitting a non-existent email returns 'No account found'. How should you leverage this difference?
✓Enumerate valid accounts by scripting many emails and classifying each response message to build a confirmed username list
Correct. The distinct messages let an attacker separate valid from invalid accounts, so scripting and classifying responses yields a confirmed username list for later attacks.
・Report it only as an informational verbose-error issue since the password itself was never disclosed to the tester
Incorrect. Username enumeration is a real finding that enables targeted password attacks, not merely informational.
・Attempt SQL injection in the password field because the differing messages indicate a backend query flaw
Incorrect. The message difference reflects account-existence logic, not an injectable query, so SQLi is an unfounded leap.
・Ignore the difference and brute-force every submitted email with a common password list regardless
Incorrect. Ignoring the oracle wastes the most useful signal; spraying blindly is far less efficient than first confirming valid users.
Explanation
Differential responses create a username-enumeration oracle; the correct response is to exploit it to confirm valid accounts before targeted attacks.
Example3 · Injection Attacks: SQLi, Command Injection, and XXE
During a test of NorthLedger SaaS, the invoice search endpoint returns 6 columns. You confirm the query is injectable and want to extract the admin password hash from the users table using a UNION. Which payload is the correct next step after you have already determined the column count and which columns are reflected?
・A boolean blind condition such as ' AND 1=1-- that only confirms the injection point but returns no table data
Incorrect. Boolean blind confirms injectability but does not return the hash directly through a UNION as the scenario requires.
✓' UNION SELECT NULL,username,password,NULL,NULL,NULL FROM users-- aligning extracted fields to reflected columns
Correct. A UNION SELECT that places username and password into the columns that are reflected in the response extracts the hashes directly.
・A time-based payload such as '; WAITFOR DELAY '0:0:10'-- used solely to infer a single bit per request
Incorrect. A time-based delay extracts data one bit at a time and is unnecessary once reflected columns are known.
・A stacked query like '; DROP TABLE users-- that destroys the target data without retrieving the hashes
Incorrect. Dropping the table destroys data rather than retrieving the hashes and is out of scope for extraction.
Explanation
Once column count and reflected columns are known, a UNION SELECT mapping username/password into reflected positions is the efficient extraction technique.
Example4 · Cross-Site Scripting (XSS), CSRF, and Client-Side Attacks
During a test of a healthcare services firm's patient portal, the search page returns the string you typed directly in the results heading of the HTML response, unencoded, within the same request-response cycle. No value is saved on the server. Which XSS variant does this behavior most clearly indicate?
・Stored XSS, because the payload is written into the back-end patient records database and later served to other portal users
Incorrect. Stored XSS requires the payload to be persisted server-side and returned later; here nothing is saved on the server.
・DOM-based XSS, where client-side JavaScript reads location.hash and rewrites the page in the browser
Incorrect. DOM-based XSS executes entirely through client-side script manipulating the DOM, not via a server echo in the HTTP response.
✓Reflected XSS, where input is echoed back in the immediate response
Correct. Input echoed back unencoded in the same response, with no server-side persistence, is the signature of reflected XSS.
・Mutation XSS triggered when the browser's HTML parser rewrites otherwise safe markup into executable script
Incorrect. Mutation XSS arises from parser re-serialization of markup, which is not what a simple unencoded echo describes.
Explanation
Reflected XSS is characterized by untrusted input being echoed back in the immediate HTTP response without persistence or encoding.
Example5 · Web Services, APIs, and Exploitation Tools (Burp Suite)
A tester is assessing a healthcare services firm's patient-portal REST API. Burp Suite's Proxy is configured, but requests from the portal's single-page app are not appearing in the Proxy HTTP history. The browser trusts Burp's CA certificate and shows the portal loading normally. What is the most likely cause the tester should investigate first?
・The API uses JSON Web Tokens, which Burp cannot decode without a plugin
Incorrect. Burp displays JWTs as-is and can decode them with the built-in Inspector; token format does not stop requests from appearing in history.
✓The application's requests are bypassing the proxy via a WebSocket or direct connection outside Burp's listener
Correct. SPA traffic that uses WebSockets or connects directly (not through the configured proxy) will not show in the standard HTTP history; verifying the browser proxy settings and WebSocket tab is the right first step.
・Burp's Proxy history filter is hiding the responses because they are HTTP 200
Incorrect. The default history filter does not hide successful 200 responses, and status filtering would not explain missing requests entirely.
・The API server is rejecting the requests before they ever leave the browser
Incorrect. If requests never left the browser the portal would fail to load, but it is loading normally, so traffic is leaving the client.
Explanation
Missing proxy history for a working SPA usually means traffic is routing outside Burp's listener, such as via WebSockets or a direct connection.
Example6 · Web Application Reconnaissance and Mapping
During an authorized test of a healthcare services firm, you must enumerate subdomains of its patient portal without sending any packets to the firm's own servers. Which technique best fits this passive-only constraint?
・Launching a dictionary-based subdomain brute-force that resolves thousands of candidate hostnames against the firm's portal
Incorrect. Brute-forcing candidate hostnames generates resolution and connection traffic toward the target, making it active reconnaissance.
✓Querying public Certificate Transparency logs for issued certificates matching the firm's domains
Correct. Certificate Transparency logs are public third-party records of issued certificates, so querying them reveals subdomains without touching the firm's infrastructure.
・Running a DNS zone transfer (AXFR) request directly against each authoritative name server
Incorrect. An AXFR request is sent directly to the firm's authoritative name servers, which is active interaction with their infrastructure.
・Spidering the live portal with an intercepting proxy to collect in-scope links
Incorrect. Spidering the live portal sends many requests to the firm's servers, which violates the passive-only constraint.
Explanation
Passive reconnaissance relies on third-party and public data sources; Certificate Transparency logs expose subdomains without contacting the target directly.
Example7 · Web Application Reconnaissance and Mapping
A tester is scoped to assess the e-commerce site of UrbanNest, a home-goods retailer, but is explicitly told not to send any traffic to UrbanNest servers during the initial week. Which approach lets the tester gather hostnames and subdomains for the target while respecting that constraint?
・Run a recursive forced-browsing scan with a large wordlist against the apex domain to enumerate hidden directories
Incorrect. Forced browsing with a wordlist sends many requests directly to the target, violating the no-contact constraint.
✓Query certificate transparency logs and passive DNS data sources for records tied to the UrbanNest domain
Correct. Certificate transparency logs and passive DNS let the tester collect subdomains without ever touching UrbanNest infrastructure.
・Launch an authenticated Nikto scan against every virtual host returned by the load balancer in sequence
Incorrect. A Nikto scan actively sends numerous probes to the target servers and is clearly not passive.
・Perform a full TCP SYN sweep of the published IP range and banner-grab each open service
Incorrect. A SYN sweep and banner grabbing both generate direct traffic to the target hosts.
Explanation
Passive reconnaissance draws on third-party data sources such as CT logs and passive DNS, so no packets reach the target during the restricted window.
Example8 · Web Application Reconnaissance and Mapping
While mapping UrbanNest, a tester finds that www.urbannest.com resolves to a CDN edge. The tester suspects staging hosts exist on the same origin infrastructure. Which technique is most likely to reveal those additional hostnames?
✓Brute-forcing candidate subdomain labels such as staging, dev, and uat against the authoritative DNS resolvers
Correct. Brute-forcing common subdomain labels against authoritative DNS is a standard way to surface staging and dev hosts.
・Repeatedly flushing the local DNS cache and re-requesting the main site until a new IP appears
Incorrect. Flushing the local cache only affects the tester's resolver and will not reveal new hostnames.
・Reading the HTTP Server response header value from the CDN edge node for each page
Incorrect. The Server header reports CDN software, not hidden subdomains behind the edge.
・Submitting the apex domain to an online WHOIS lookup and recording the registrar
Incorrect. A WHOIS lookup returns registration metadata, not the list of staging subdomains.
Explanation
Subdomain brute-forcing against authoritative name servers is the direct method for discovering non-public hostnames like staging and dev.
Example9 · Web Application Reconnaissance and Mapping
On UrbanNest's site, the tester retrieves robots.txt and sees a Disallow entry for /internal-promo-admin/. From a reconnaissance standpoint, what is the correct interpretation of this entry?
・It confirms that the directory is protected by server-side authentication and cannot be reached by a tester
Incorrect. robots.txt expresses crawler intent only and implies nothing about authentication controls.
・It proves the directory has already been removed from the production web root by the developers
Incorrect. A Disallow entry does not mean the path was removed; it is often still live.
✓It reveals a path the owner wants crawlers to skip, flagging it as worth manual inspection
Correct. A Disallow entry discloses paths the owner wants hidden from crawlers, making them prime candidates for manual review.
・It guarantees the listed path returns an HTTP 403 Forbidden response to all clients
Incorrect. robots.txt does not enforce access control, so no particular status code is guaranteed.
Explanation
robots.txt is advisory for crawlers, and its Disallow entries frequently point testers toward sensitive directories that still respond normally.
Example10 · Web Application Reconnaissance and Mapping
A penetration tester is scoping an online banking portal for Meridian Financial Trust and must begin without sending any traffic to the bank's infrastructure. Which activity keeps the reconnaissance fully passive during this first phase?
・Running a full TCP SYN scan against the portal's public IP range to enumerate open services and banner-grab
Incorrect. A SYN scan sends packets directly to the target's hosts, which is active reconnaissance and not passive.
✓Querying certificate transparency logs and public DNS archives to discover subdomains tied to the bank's domains
Correct. Certificate transparency logs and public DNS archives are third-party data sources, so querying them never touches the bank's systems and remains passive.
・Spidering the authenticated banking dashboard with an intercepting proxy to map every linked endpoint and parameter
Incorrect. Spidering the live dashboard generates requests to the target application, making it an active technique.
・Fuzzing the login form with a wordlist of usernames to measure response timing differences and confirm valid accounts
Incorrect. Fuzzing the login form sends crafted requests to the bank, which is active probing, not passive collection.
Explanation
Passive reconnaissance gathers information only from third-party or public repositories without interacting with the target; certificate transparency logs fit that definition while scanning, spidering, and fuzzing all generate traffic to the target.
Example11 · Web Application Reconnaissance and Mapping
While mapping a loan-origination app at Meridian Financial Trust, a tester captures a response containing the header 'X-Powered-By: PHP/7.4.3' alongside a 'Set-Cookie: PHPSESSID=...'. What conclusion is best supported by these two indicators together?
・The application is almost certainly running a Java servlet container and the PHP header is a deliberate decoy planted to mislead
Incorrect. Nothing here points to a Java container; both indicators independently point to PHP, so a decoy conclusion is unsupported.
✓The backend is served by a PHP interpreter, and the session cookie naming reinforces that server-side technology fingerprint
Correct. Both the X-Powered-By header and the default PHPSESSID cookie name are characteristic of PHP, so they corroborate a PHP backend fingerprint.
・The site enforces TLS client certificates because session cookies are present in the response
Incorrect. The presence of session cookies says nothing about TLS client-certificate enforcement.
・The server is a static file host with no dynamic code, since cookies can only be set by a reverse proxy
Incorrect. Setting a session cookie implies dynamic server-side processing, so a purely static host is contradicted.
Explanation
Technology fingerprinting correlates multiple signals; the X-Powered-By header and the PHPSESSID default cookie name both indicate PHP, reinforcing the same conclusion rather than contradicting it.
Example12 · Web Application Reconnaissance and Mapping
During a scoped test of MidwestParts Distributors, the client asks that no packets touch their production ordering portal until formal mapping begins. You still need to profile the technology stack and subdomains beforehand. Which approach best satisfies this constraint?
・Launch an authenticated Nikto scan directly against the production portal hostname
Incorrect. A Nikto scan sends many requests directly to the production server, which violates the no-touch constraint.
✓Query public DNS records, certificate transparency logs, and search engine caches
Correct. DNS records, certificate transparency logs, and cached search results are gathered from third parties without contacting the target server, which is true passive reconnaissance.
・Send crafted HTTP OPTIONS requests to enumerate the portal's supported methods
Incorrect. Sending OPTIONS requests is active interaction that reaches the portal before mapping is permitted.
・Run a full Burp Suite active crawl seeded with the portal login URL
Incorrect. An active Burp crawl generates substantial traffic straight to the production portal, breaching the agreement.
Explanation
Passive reconnaissance collects information from third-party sources so that no traffic reaches the target until active testing is authorized.
Example13 · Web Application Reconnaissance and Mapping
The IP address serving MidwestParts' main site also resolves for several other hostnames you discovered in certificate transparency logs. You suspect an internal supplier portal is virtually hosted on the same server. How do you confirm the portal responds on that IP?
・Request the server IP directly in the browser and read whatever default page is returned by the listener
Incorrect. Requesting the raw IP returns only the default virtual host, not the supplier portal bound to a specific name.
✓Send an HTTP request to the IP with the Host header set to the suspected supplier hostname
Correct. Setting the Host header to the supplier hostname tells the server which virtual host to serve, confirming whether that application responds on the shared IP.
・Perform a reverse DNS lookup on the IP and assume every PTR record is actively served
Incorrect. A PTR record may exist without the server actively hosting that name, so reverse DNS alone does not confirm the virtual host.
・Modify the TLS Server Name Indication value while leaving the Host header blank
Incorrect. Changing only SNI without a matching Host header will not reliably route the request to the supplier virtual host on most servers.
Explanation
Name-based virtual hosting uses the HTTP Host header to decide which site to serve, so setting it to the target hostname reveals co-hosted applications.
Example14 · Web Application Reconnaissance and Mapping
A penetration tester is scoped to assess a telecom operator's customer self-service portal but has been told to avoid sending any traffic to the target hosts during the initial phase. Which approach gathers subdomains and historical infrastructure data for the portal without touching the operator's own servers?
・Run a recursive forced-browsing scan with a large wordlist against the portal's web root to enumerate hidden directories
Incorrect. Forced browsing sends many requests directly to the target, which is active, not passive reconnaissance.
✓Query certificate transparency logs and public DNS/search aggregators for the operator's domains
Correct. Certificate transparency logs and public aggregators reveal subdomains and prior infrastructure using only third-party data, so no traffic reaches the operator.
・Launch an authenticated Nikto scan against every discovered virtual host on the portal infrastructure
Incorrect. A Nikto scan generates active probing traffic straight to the operator's hosts, violating the passive constraint.
・Send crafted TRACE and OPTIONS requests to each endpoint to fingerprint the allowed methods
Incorrect. Sending TRACE and OPTIONS requests is active interaction with the target servers, not passive collection.
Explanation
Passive reconnaissance relies on third-party and public data sources such as certificate transparency logs, DNS aggregators, and search engines so that no packets are sent to the in-scope target.
Example15 · Web Application Reconnaissance and Mapping
While mapping a telecom operator's hosting, a tester finds that one public IP responds with completely different applications depending on the Host header sent. What does this behavior most directly indicate about the server?
・The server is enforcing strict transport security and redirects all mismatched requests to a canonical hostname
Incorrect. HSTS controls transport security, not which application is served based on the Host header.
・The server is terminating TLS with a wildcard certificate that rewrites every requested path transparently
Incorrect. A wildcard certificate affects TLS validation, not the selection of distinct applications by hostname.
✓The server uses name-based virtual hosting to serve multiple sites from the same address
Correct. Serving different applications from one IP based on the Host header is the defining behavior of name-based virtual hosting.
・The server is operating as a transparent forward proxy for the operator's internal network segment
Incorrect. A forward proxy relays client requests outbound and does not select site content from the inbound Host header this way.
Explanation
Name-based virtual hosting lets a single IP serve many sites; the web server inspects the Host header to choose which document root and application to return.
▶ Try 10 free questions (graded)
Measure your readiness with a full mock exam
All questions · full explanations · lifetime access
Enroll(33 USD)