100+ Free HTB CWES Practice Questions
Prepare for the HTB Certified Web Exploitation Specialist (formerly CBBH) exam with instant access — no signup required.
Loading practice questions...
Explore More Hack The Box Certifications
Continue into nearby exams from the same family. Each card keeps practice questions, study guides, flashcards, videos, and articles in one place.
Key Facts: HTB CWES Exam
Practical
Exam Format
Hack The Box
7 days
Lab Access Period
Hack The Box
8/10 flags
Passing Requirement
Hack The Box
~$210
Exam Voucher Cost
HTB Academy
3 years
Certification Validity
Hack The Box
5 web apps
Exam Targets
Hack The Box
The HTB CWES (formerly CBBH) from Hack The Box is an advanced practical web exploitation certification. Over a 7-day lab period, candidates must exploit 5 web applications and capture 8 of 10 available flags, then submit a professional penetration testing report. Core technical areas: SQL injection, XSS, SSRF, XXE, LFI/RFI, command injection, file upload vulnerabilities, web API attacks (IDOR, mass assignment, JWT), and vulnerability chaining. Certification is valid 3 years. This practice test covers the theoretical knowledge — the real exam requires live web application exploitation.
Sample HTB CWES Practice Questions
Try these sample questions to test your HTB CWES exam readiness. Each question includes a detailed explanation. Start the interactive quiz above for the full 100+ question experience with AI tutoring.
1Which HTTP header sent by the browser tells the server the full URL of the page that linked to the current request, and is commonly abused to test Referer-based SSRF or origin validation weaknesses?
2In Burp Suite, which tool is used to send a single HTTP request repeatedly with modifications, allowing precise manual testing of individual parameters?
3A web application appends user input directly to a SQL query: `SELECT * FROM users WHERE id='<input>'`. Which payload causes the application to return all rows by breaking out of the string context?
4Which SQLMap flag is used to specify the target URL for an injection test?
5A UNION-based SQL injection attack requires that the injected SELECT statement returns the same number of columns as the original query. Which technique is used to determine the correct column count?
6In blind SQL injection, the application returns no data but behaves differently based on query truth. Which subtype uses sleep functions like `SLEEP(5)` to infer results?
7A reflected XSS payload is injected into a search parameter that appears in the HTML body. Which payload is the most basic test to confirm unescaped output?
8Stored XSS differs from reflected XSS in that the malicious payload is stored in the application's backend (e.g., database) and executed when other users load the page. Which attack scenario best illustrates stored XSS?
9In DOM-based XSS, the vulnerability exists entirely in client-side JavaScript. Which of the following is a DOM XSS sink where attacker-controlled data can cause JavaScript execution?
10Which Content Security Policy (CSP) directive restricts which origins can serve scripts, directly mitigating reflected and stored XSS?
About the HTB CWES Exam
The HTB Certified Web Exploitation Specialist (CWES), formerly known as the Certified Bug Bounty Hunter (CBBH), is Hack The Box's advanced practical certification validating web application exploitation skills. The exam requires candidates to attack 5 real web applications in an HTB lab environment over 7 days, capturing at least 8 of 10 flags using techniques including SQLi, XSS, SSRF, XXE, file inclusion, command injection, file upload attacks, and web API exploitation. This practice bank tests the theoretical knowledge underlying the practical exam.
Assessment
Performance-based assessment
Time Limit
7-day practical lab + 24-hour report submission window
Passing Score
8/10 flags + professional report
Exam Fee
Approximately $210 USD (exam voucher) (Hack The Box)
HTB CWES Exam Content Outline
Web Enumeration & Reconnaissance
HTTP fundamentals, Burp Suite proxy setup, web fingerprinting, directory/file fuzzing with Gobuster and ffuf, subdomain and virtual host enumeration, robots.txt analysis, certificate transparency
SQL Injection
In-band (UNION-based, error-based), blind (boolean-based, time-based), out-of-band, and second-order SQLi; SQLMap automation; authentication bypass; database and schema enumeration; WAF bypass
Cross-Site Scripting (XSS)
Reflected, stored, and DOM-based XSS; injection context analysis (HTML body, attribute, JavaScript); CSP and filter bypass; cookie theft; session hijacking; XSS-to-CSRF chaining
File Inclusion & Command Injection
LFI with path traversal, PHP wrappers (php://filter, php://input), log poisoning for RCE; RFI for webshell execution; OS command injection, command separator bypass, $IFS evasion; reverse shells
SSRF & XXE Injection
SSRF targeting internal services and cloud metadata (169.254.169.254); SSRF bypass techniques (DNS rebinding, open redirect); XXE for local file read, SSRF, and out-of-band exfiltration via parameter entities
Web API Attacks
OWASP API Security Top 10; IDOR/BOLA; mass assignment; BFLA; GraphQL introspection and enumeration; REST API testing; JWT attacks (none algorithm, RS256-to-HS256 confusion, weak secret brute-force)
Auth, Session & Business Logic
CSRF attacks and token-based defense; cookie security attributes (HttpOnly, Secure, SameSite); session hijacking; cookie tampering; token enumeration; password reset poisoning via Host header injection; business logic flaws
File Upload & Reporting
Upload filter bypass (extension blacklist, MIME spoofing, double extension, null byte, case sensitivity); webshell deployment; vulnerability chaining; professional pentest report writing with CVSS severity ratings
How to Pass the HTB CWES Exam
What You Need to Know
- Passing score: 8/10 flags + professional report
- Assessment: Performance-based assessment
- Time limit: 7-day practical lab + 24-hour report submission window
- Exam fee: Approximately $210 USD (exam voucher)
Keys to Passing
- Work through all 100 available questions
- Review every answer and explanation
- Track weak areas and revisit them
- Use our AI tutor for tough concepts
HTB CWES Study Tips from Top Performers
Frequently Asked Questions
What is the HTB CWES exam format?
The HTB CWES is a fully practical, hands-on web application penetration test. Candidates receive 7-day access to a lab environment containing 5 vulnerable web applications with 10 flags distributed across them. To pass, you must capture at least 8 flags and submit a professional penetration testing report within 24 hours after the lab period ends. It is not a multiple-choice exam — this practice bank tests the theoretical knowledge underlying the practical skills.
What is the difference between CWES and CBBH?
CWES (Certified Web Exploitation Specialist) is the current name for the certification previously known as CBBH (Certified Bug Bounty Hunter). The core content and practical lab format are the same; Hack The Box rebranded the certification to better reflect its web exploitation focus. If you hold CBBH, you hold the equivalent of CWES. All HTB Academy Bug Bounty Hunter path study materials remain applicable.
What topics does the HTB CWES cover?
CWES covers eight major domains: (1) web enumeration and reconnaissance with Burp Suite and ffuf, (2) SQL injection including blind and UNION-based, (3) XSS in all three contexts, (4) file inclusion (LFI/RFI) and OS command injection, (5) SSRF and XXE injection, (6) web API attacks including IDOR, mass assignment, and JWT attacks, (7) authentication and session attacks including CSRF and cookie manipulation, and (8) file upload bypass techniques and professional reporting.
How do I prepare for the HTB CWES?
Complete HTB Academy's Bug Bounty Hunter learning path (approximately 100+ hours). Focus on each vulnerability module with hands-on practice. Master Burp Suite's Proxy, Repeater, and Intruder. Practice on DVWA, HackTheBox web challenges, and PortSwigger Web Security Academy labs. Study the OWASP WSTG and OWASP API Security Top 10. Practice writing professional penetration testing reports before the exam.
How does CWES compare to eWPT and BSCP?
HTB CWES is at a similar level to INE Security's eWPT (intermediate-advanced practical web cert). BSCP (Burp Suite Certified Practitioner) from PortSwigger is more challenging and advanced, covering topics like deserialization, HTTP request smuggling, and prototype pollution. CWES is a good stepping stone to BSCP. All three are practical lab-based certifications valued by employers for web application security roles.
Is this practice test like the real CWES?
No — this is a multiple-choice knowledge-preparation bank. The real CWES is a fully practical exam where you must actually exploit vulnerable web applications in an HTB lab environment. These questions test the conceptual and technical knowledge underlying the practical skills: how vulnerabilities work, what tools and payloads to use, and what mitigations apply. Use this bank to validate your theoretical understanding, then practice hands-on exploitation in HTB and PortSwigger labs.