Question 1
In a Server-Side Template Injection (SSTI) attack against a Jinja2 application, which payload is used to enumerate the MRO (Method Resolution Order) and reach the 'os' module for Remote Code Execution?
Correct Answer:
{{''.__class__.__mro__[1].__subclasses__()}}
Question 2
Which Jinja2 SSTI sandbox-escape technique uses the '__globals__' attribute to access the 'os' module without relying on '__subclasses__()'?
Correct Answer:
{{config.__class__.__init__.__globals__['os'].popen('id').read()}}
Question 3
When testing for SSTI, an application returns '49' for {{7*7}} but '7*7' for ${7*7}. Which template engine is most likely in use?
Correct Answer:
Jinja2 (Python)
Question 4
In a JavaScript prototype pollution attack, which property path is most commonly targeted to pollute the base Object prototype?
Correct Answer:
obj.constructor.prototype
Question 5
A web application merges user-supplied JSON into a configuration object using a recursive deep-merge function. An attacker sends {"__proto__":{"isAdmin":true}}. What is the primary risk?
Correct Answer:
All subsequently created objects inherit isAdmin:true, enabling privilege escalation
Question 1
Exam overview

About this Exam

Prepare with the HTB CWEE Practice Questions - HTB Certified Web Exploitation Expert Exam practice quiz. This question bank includes 100 questions covering attack, application, injection, code, and header. Use it to review important concepts, identify knowledge gaps, and build confidence for the related exam, course, or assessment.

More details

Additional Information

HTB CWEE Practice Questions - HTB Certified Web Exploitation Expert Exam

This practice set contains 100 questions from the matching question bank and focuses on attack, application, injection, code, and header. Work through each question carefully, review the provided solutions, and revisit topics that need more study before your next attempt.

This is an independent study resource intended for practice and review; it is not an official examination or an endorsement by any organization named in the title.

Quiz information

Frequently Asked Questions

The complete question count is available after full access is unlocked.
No fixed duration is currently configured for this quiz.
Question explanations are included where they are available in the quiz content, helping you review the reasoning after answering.
Yes. You can retake the practice test again as you continue studying during your available access period.
After your access is confirmed, you can continue into the complete practice exam from this quiz flow.
Unless explicitly stated otherwise, this page provides independent practice material for study and exam preparation and is not the official examination itself.
Keep studying

Related Questions