OpenExamsFREE PRACTICE — ANY EXAM

Free HTB Certified Web Exploitation Expert Practice Questions

100 free questions · Answer explanations · No signup required

View examination details, outline and sources

These questions practise related knowledge and decisions. They do not replace practical performance training or assess your actual performance.

Loading selected examination banks…

Sample Practice Questions

Try these 10 sample questions from the HTB Certified Web Exploitation Expert practice bank. Each includes the answer and explanation. Continue with the interactive practice above to review the full question set.

  1. 1An XPath login predicate becomes UserName='guest' or 1=1 or ('x'='x' and Password='wrong'). Why can authentication succeed despite the incorrect password?

    1. A.The password test is skipped because AND has lower precedence than OR.
    2. B.The true disjunct makes the predicate true independently of the password.Correct answer: B
    3. C.The username text is interpreted as a regular expression matching every password.
    4. D.A nonempty password literal is treated as true instead of being compared.

    Explanation: OWASP explains: "The password part becomes irrelevant". The 1=1 disjunct makes OR true regardless of the password. AND has higher precedence than OR; the effect is not a regular-expression match or treating a literal as an authenticated password.

    Reference: OWASP XPath Injection — Example

  2. 2A JWT verifier accepts whichever algorithm the token's alg header requests. What verification policy should the application enforce?

    1. A.Accept any supported algorithm whenever the header is well-formed JSON.
    2. B.Configure the permitted algorithms and bind each key to its intended algorithm.Correct answer: B
    3. C.Select the algorithm using the unverified subject claim instead of the header.
    4. D.Try each available key and accept whichever algorithm first parses the token.

    Explanation: RFC 8725 states: "each key MUST be used with exactly one algorithm". Application policy must constrain algorithms; attacker-controlled headers or subject claims cannot define that policy. Successful parsing is not acceptable-algorithm validation.

    Reference: RFC 8725 JSON Web Token Best Current Practices — 3.1 Perform Algorithm Verification

  3. 3A stateful application emits a random synchronizer token in a form, but the transfer handler checks only that a CSRFToken field exists. Which server-side check is missing?

    1. A.Compare the submitted token with the valid token associated with the user's session.Correct answer: A
    2. B.Accept any token whose length matches the token stored in the session.
    3. C.Accept a token that matches the one stored for any active user's session.
    4. D.Verify the token only in JavaScript before submitting the transfer form.

    Explanation: OWASP requires the server to "compare it to the token found in the user session". Length, another session’s token or a client-side check does not establish that this request carries this session’s valid token.

    Reference: OWASP CSRF Prevention Cheat Sheet — Synchronizer Token Pattern

  4. 4A CDN excludes X-Theme from its cache key, but the origin uses X-Theme to choose a script URL in cacheable HTML. What creates the poisoning opportunity?

    1. A.The cache and origin disagree about an input that changes the shared response.Correct answer: A
    2. B.The cached HTML necessarily shares the requesting user's authentication state with every browser.
    3. C.A unique response body automatically gives each X-Theme value a separate cache key.
    4. D.TLS verification of the origin prevents headers from affecting the cached representation.

    Explanation: OWASP warns: "Do not let unkeyed headers or a body on a GET request alter a cacheable response." The response varies on an input omitted from the key. Body differences do not automatically partition the key; HTTPS does not fix this dependency, and no shared authentication state is needed.

    Reference: OWASP Web Cache Security Cheat Sheet — Prevent Web Cache Poisoning

  5. 5An HTTP/1.1 intermediary receives both Transfer-Encoding and Content-Length. It chooses to forward the message after processing transfer coding. What must it do with the received Content-Length?

    1. A.Retain it so downstream parsers can choose their preferred framing.
    2. B.Canonicalize its decimal value and retain it beside Transfer-Encoding.
    3. C.Remove it before forwarding to eliminate the competing framing field.Correct answer: C
    4. D.Move the value to a trailer and treat that trailer as authoritative framing.

    Explanation: RFC 9112 says the intermediary "MUST first remove the received Content-Length field". Retaining it, canonicalizing it beside Transfer-Encoding or treating a trailer as authoritative preserves a competing or invalid framing interpretation.

    Reference: RFC 9112 HTTP/1.1 — 6.3 Message Body Length

  6. 6A suspected injection works on a developer's laptop but not in the authorized target environment. Which next step best tests whether environmental differences explain the result?

    1. A.Treat identical source files as proof that target runtime behavior must match the laptop.
    2. B.Reproduce only the HTTP templates and omit backend libraries and services.
    3. C.Match dependency versions but ignore security configuration and operating-system behavior.
    4. D.Reproduce relevant OS, dependencies, configuration and security controls in an isolated test replica.Correct answer: D

    Explanation: HTB advises replicating "anything else that may affect how the application runs or our attack vector". Source alone, presentation templates or version matching without relevant OS/configuration controls cannot faithfully reproduce the target conditions.

    Reference: HTB Intro to Whitebox Pentesting — Intro to Whitebox Pentesting

  7. 7During a DNS rebinding test, http://lab.example:8080 resolves first to a public address and later to an internal address. The URL's scheme, hostname and port remain unchanged. Which browser origin property matters?

    1. A.Every DNS answer creates a different origin regardless of the URL.
    2. B.The path and query string alone determine whether the origin changes.
    3. C.Origin identity follows scheme, host and port rather than the resolved IP address.Correct answer: C
    4. D.All addresses on the same IP subnet automatically share an origin.

    Explanation: MDN states: "Two URLs have the same origin if the protocol, port (if specified), and host are the same for both." A changed DNS answer does not itself change that tuple. This explains why hostname-stable rebinding needs defenses beyond assuming a new IP creates a new origin.

    Reference: MDN Same-origin Policy — Definition of an origin

  8. 8A recursive JavaScript merge rejects only keys named __proto__. Why can that filter leave prototype pollution paths?

    1. A.Recursive merges can never traverse inherited properties to reach a prototype.
    2. B.Prototype pollution occurs only in browsers, not in server-side JavaScript.
    3. C.A reachable constructor.prototype path can still reference a prototype.Correct answer: C
    4. D.JSON.parse automatically removes constructor properties before merge code can use them.

    Explanation: OWASP warns: "Prototype pollution is still possible using constructor.prototype properties". Other property paths can reach prototypes; recursive access is not inherently restricted to safe own properties, JSON parsing is not a constructor-key scrubber, and server-side JavaScript is also affected.

    Reference: OWASP Prototype Pollution Prevention Cheat Sheet — Node.js configuration flag

  9. 9A Java/Spring repository binds all search values but concatenates a client-selected ORDER BY column. Which design handles this SQL structural choice?

    1. A.Place the arbitrary column name in a normal value placeholder and expect it to become an identifier.
    2. B.Map permitted sort choices to fixed application-owned column names.Correct answer: B
    3. C.Trust any column name after removing spaces from the client input.
    4. D.Quote the name as an SQL string literal and concatenate it after ORDER BY.

    Explanation: OWASP says structural choices should "map user choices to a strict allow-list of fixed, application-owned values". Value parameters do not select SQL identifiers. Removing spaces or quoting as a data string does not establish a permitted structural choice.

    Reference: OWASP SQL Injection Prevention Cheat Sheet — Primary Defenses

  10. 10A payment UI computes the transfer amount and sends authorizationPassed=true. The server trusts those client fields without recomputing or verifying authorization. Which boundary must be restored?

    1. A.Trust the fields only when the submit button was disabled after one click.
    2. B.Sign the JavaScript bundle while retaining the server's unconditional trust.
    3. C.Encrypt the connection and assume all client-supplied decisions are correct.
    4. D.Generate or verify significant transaction data and enforce authorization on the server.Correct answer: D

    Explanation: OWASP says: "transaction authorizations should be enforced on the server side". UI logic and transport encryption do not make client decisions authoritative. The server must verify the transaction and its authorization, rather than trust a Boolean flag.

    Reference: OWASP Transaction Authorization Cheat Sheet — 2.1 Authorization should be performed and enforced server-side

Exam Review

About HTB Certified Web Exploitation Expert

HTB Certified Web Exploitation Expert · UNSPECIFIED

This examination scores performance. Multiple-choice practice covers related knowledge and decisions; it does not replace practical performance training or assess your actual performance.

Key exam facts

Provider
Hack The Box (HTB Academy) provides the certification and exam; an HTB Academy instructor checks earned points and grades the report.
Format
Online hands-on black-box and white-box testing of multiple web applications in HTB infrastructure via VPN or browser Pwnbox; submit flags and a commercial-grade report with exploits and patching/remediation recommendations. No multiple-choice questions. CWEE report is raw Markdown in a password-protected ZIP (maximum 20MB), using exam-specified password parameters. This four-choice practice reviews knowledge and decisions and cannot replace hands-on performance training.
Time limit
10 days from entering the exam for lab work and report submission; both share the same window. A retake also lasts 10 days.
Passing score
Meet the exam-specific minimum flag-point threshold and pass instructor assessment of a commercial-grade report. The public CWEE overview does not state a numeric minimum or scoring scale; the help center's 70/100 intermediate-path example is not a CWEE threshold.
Exam fee
Standalone CWEE exam voucher: $350 in the official voucher table (USD currency context on the subscription page), including two attempts. Gold Annual includes a choice of CWEE voucher; current listed Gold Annual price is USD 1,400/year before any billing-page discounts; this is a bundled subscription, not the standalone exam fee.

Topics covered

  • Injection Attacks

  • Introduction to NoSQL Injection

  • Attacking Authentication Mechanisms

  • Advanced XSS and CSRF Exploitation

  • HTTPs/TLS Attacks

  • Abusing HTTP Misconfigurations

  • HTTP Attacks

  • Blind SQL Injection

  • Intro to Whitebox Pentesting

  • Modern Web Exploitation Techniques

  • Introduction to Deserialization Attacks

  • Whitebox Attacks

  • Advanced SQL Injections

  • Advanced Deserialization Attacks

  • Parameter Logic Bugs

How to prepare

Work through the topics, read the explanation after each answer, and revisit the areas where you miss questions. Use the official outline and reference materials below to guide your study.

These independent practice questions are not actual exam items and do not guarantee a passing result.

Frequently asked questions

What is the exam format?

Online hands-on black-box and white-box testing of multiple web applications in HTB infrastructure via VPN or browser Pwnbox; submit flags and a commercial-grade report with exploits and patching/remediation recommendations. No multiple-choice questions. CWEE report is raw Markdown in a password-protected ZIP (maximum 20MB), using exam-specified password parameters. This four-choice practice reviews knowledge and decisions and cannot replace hands-on performance training.

How long is the exam?

10 days from entering the exam for lab work and report submission; both share the same window. A retake also lasts 10 days.

What is the passing score?

Meet the exam-specific minimum flag-point threshold and pass instructor assessment of a commercial-grade report. The public CWEE overview does not state a numeric minimum or scoring scale; the help center's 70/100 intermediate-path example is not a CWEE threshold.

How much does the exam cost?

Standalone CWEE exam voucher: $350 in the official voucher table (USD currency context on the subscription page), including two attempts. Gold Annual includes a choice of CWEE voucher; current listed Gold Annual price is USD 1,400/year before any billing-page discounts; this is a bundled subscription, not the standalone exam fee.

Official sources and references

Confirm current exam arrangements with the exam provider.