CPENT · Domain 5 of 14

CPENT Module 5: Web Application Penetration Testing

This module covers attacking web applications: the testing methodology and the OWASP-style classes from injection and cross-site scripting to broken authentication, insecure direct object references and server-side request forgery.

Exam format
Practical exam
Official modules
1
Assessment estimate
Hands-on, practical
Suggested study time estimate
10–15 hrs

About 8 min read Reviewed October 2026

Overview

Module 5 covers web application testing. It covers the web testing methodology, mapping the application, bypassing client-side controls, and attacking authentication, authorization, session management, data validation and business logic. It covers the OWASP-style attack classes: injection such as SQL and command injection, cross-site scripting, cross-site request forgery, server-side request forgery, insecure direct object references, broken authentication and session management, and security misconfiguration.

On the CPENT range, web applications are frequent footholds and pivot points. The module rewards methodical testing with an intercepting proxy and precise recognition of each attack class, since many range challenges hinge on finding and chaining web flaws. Web findings are documented as part of the engagement and often lead into deeper network and Active Directory access.

How it's tested

CPENT is performance-based, so this module shows up as methodical hands-on web testing: mapping the app, finding and exploiting flaws, and chaining them toward deeper access, all documented. Because the exam is scored on what you achieve and document on live ranges, read each scenario for what it actually permits and reward methodical, evidence-backed work over guesswork.

  • Follow the methodology

    You map and analyze the application before attacking, then test authentication, authorization, session and validation in order.

  • Recognize the class

    You identify the specific flaw, such as SQL injection, XSS, SSRF or IDOR, from the request and response.

  • Chain toward access

    You use a web flaw to gain a foothold or reach internal resources, such as SSRF to a metadata service.

Reasoning it through

A parameter reflects user input into a page without encoding. It is tempting to call any input flaw injection, but the behavior, script running in the victim's browser, identifies cross-site scripting. If instead the server fetched an attacker-supplied URL, that would be server-side request forgery, which on a cloud host could reach internal services. Correct classification determines the right exploit and the next pivot.

Modules 1

Official modules from the EC-Council outline, in outline order.

5.1 Web Application Penetration TestingThis module covers attacking web applications: the testing methodology and the OWASP-style classes from injection and cr
What it means
Web application testing covers the methodology (map, analyze, bypass client controls, attack authentication, authorization, session, validation and business logic) and the attack classes: SQL and command injection, cross-site scripting, cross-site request forgery, server-side request forgery, insecure direct object references, broken authentication, and misconfiguration.
What to understand
The methodology is a sequence you internalize so you know what to test next. Each class has a distinct mechanism: XSS runs script in a user's browser, CSRF rides the victim's session, SSRF makes the server send requests, and IDOR exposes data by changing identifiers. An intercepting proxy is the core workflow tool.
How it shows up
Applied hands-on to find, exploit and chain web flaws on the range, documented in the report.
Common confusion
Confusing SSRF with CSRF; SSRF makes the server request resources, while CSRF makes the victim's browser send requests.

High-yield concepts

The terms, rules and formulas this domain turns into questions most often.

  • Web testing methodology

    Map, analyze, bypass client controls, then attack auth, authz, session, validation and logic.

    Remember
    Know what to test next in sequence.
    Tested as
    Structuring web testing.
    Trap
    Jumping to business logic before mapping.
  • SQL injection

    Untrusted input altering database queries.

    Remember
    Fixed with parameterized queries.
    Tested as
    Injection attacks.
    Trap
    Treating a WAF as the real fix.
  • Cross-site scripting (XSS)

    Injecting script that runs in other users' browsers.

    Remember
    Stored, reflected and DOM-based types.
    Tested as
    Client-side attacks.
    Trap
    Confusing it with CSRF.
  • Cross-site request forgery (CSRF)

    Forcing a victim's browser to send authenticated requests.

    Remember
    It abuses the victim's session.
    Tested as
    Client-side attacks.
    Trap
    Confusing it with SSRF.
  • Server-side request forgery (SSRF)

    Making the server fetch attacker-controlled URLs.

    Remember
    It can reach internal services and metadata.
    Tested as
    Server-side attacks.
    Trap
    Confusing it with CSRF.
  • Insecure direct object reference (IDOR)

    Accessing data by changing an identifier.

    Remember
    An authorization flaw.
    Tested as
    Access control.
    Trap
    Treating it as injection.
  • Broken authentication and session

    Weak login or session handling.

    Remember
    Weak tokens and fixation are common.
    Tested as
    Auth attacks.
    Trap
    Overlooking session fixation.
  • Intercepting proxy

    A tool such as Burp Suite that inspects and modifies requests.

    Remember
    It is the core web testing workflow.
    Tested as
    Tooling.
    Trap
    Testing without a proxy.
  • Business logic flaws

    Abusing legitimate features in unintended ways.

    Remember
    They evade signature detection.
    Tested as
    Logic attacks.
    Trap
    Only testing technical injection flaws.

Side by side

Concepts candidates mix up, compared on the point that decides the answer.

SQL injection vs. XSS vs. SSRF vs. IDOR

ConceptMeaningKey differenceCommon trap
SQL injection Alters database queries via input Targets the database Using a firewall as the fix
XSS Runs attacker script in a browser Targets other users Confusing stored and reflected
SSRF Makes the server send requests Abuses server-side access Confusing it with CSRF
IDOR Accesses data by changing an identifier Exploits missing authorization Treating it as injection

Methodology stages

ConceptMeaningKey differenceCommon trap
Map and analyze Understand the application structure Comes first Skipping to attacks
Attack auth and authz Test login and access control Core access attacks Ignoring session handling
Attack validation and logic Test input handling and business flows Finds injection and logic flaws Only testing obvious inputs

Exam traps

Each trap is an answer that looks right. Learn the clue that should change your mind.

  1. WAF fixes injection

    What candidates pick
    Recommend a WAF as the long-term fix for SQL injection.
    Why it looks right
    It blocks attacks quickly.
    Why it's wrong
    A WAF is a compensating layer; parameterized queries and validation fix the root cause.

    Clue to watch for The question asks for the best long-term remediation.

  2. SSRF is CSRF

    What candidates pick
    Call a server fetching attacker URLs CSRF.
    Why it looks right
    The names are similar.
    Why it's wrong
    SSRF makes the server send requests; CSRF makes the victim's browser send them.

    Clue to watch for The server itself makes the request.

  3. XSS is CSRF

    What candidates pick
    Describe script running in a browser as CSRF.
    Why it looks right
    Both involve the browser.
    Why it's wrong
    XSS runs injected script; CSRF forces an authenticated request.

    Clue to watch for The attack runs script versus forcing a request.

  4. Skip mapping

    What candidates pick
    Attack business logic before mapping the app.
    Why it looks right
    Logic flaws are high impact.
    Why it's wrong
    The methodology maps and analyzes first so later steps have context.

    Clue to watch for The current step is early and the question asks what is next.

  5. IDOR is injection

    What candidates pick
    Treat accessing records by changing an ID as an injection flaw.
    Why it looks right
    Both involve manipulating input.
    Why it's wrong
    IDOR is a missing-authorization flaw, not code injection.

    Clue to watch for Changing an identifier returns another user's data.

Answer framework

For any CPENT Web Application Penetration Testing scenario, use these steps.

  1. Map and analyze the application before attacking, cataloguing inputs, endpoints and authentication flows.
  2. Work the methodology in order: authentication, authorization, session management, data validation and business logic.
  3. Identify each flaw precisely, distinguishing injection, XSS, CSRF, SSRF and IDOR by behavior.
  4. Exploit with an intercepting proxy and chain flaws toward a foothold or internal access such as SSRF to metadata.
  5. Recommend root-cause fixes, such as parameterized queries and authorization checks, treating a WAF as supplementary, and document everything, and record evidence and the reasoning for each decision as you go, since the engagement is judged partly on the professional report you submit at the end.

Practice question

A web application on a cloud server accepts a user-supplied URL that the server then fetches. A CPENT tester wants to maximize impact. Which action is MOST likely to escalate this toward internal access?

Choose one answer

Want more like this? The CPENT practice test has questions for every domain.

Checklist

0 of 10

Tick each one you can do without notes. Your ticks stay in this browser.

Study strategy

This module rewards hands-on practice more than reading. Set up a deliberately vulnerable application and an intercepting proxy, and run the attacks until recognizing each class from a request and response is automatic. Drill the pairs the exam confuses: SSRF versus CSRF, and XSS versus CSRF.

Internalize the web testing methodology so you always know the next step, from mapping through authentication, authorization, session and validation to business logic. On the CPENT range, web applications are frequent footholds, so practice chaining a web flaw into deeper access, such as using SSRF to reach a metadata service or an injection to extract credentials. Afterwards, move to Module 6, API and JWT testing, which extends web testing to modern interfaces. Throughout, keep a disciplined note-taking and evidence workflow, because the CPENT report and its evidence carry much of the score, and details are easily lost across a long, intense exam. Rehearse this in a lab until it is routine, and capture evidence as you work so the final report is complete and defensible.

FAQ

What is the difference between SSRF and CSRF?

SSRF makes the server send requests the attacker controls, which can reach internal services. CSRF makes a victim's browser send authenticated requests.

Is a WAF enough to stop SQL injection?

No. A WAF is a compensating layer that can be bypassed. Parameterized queries and input validation fix the root cause.

What is IDOR?

Insecure direct object reference, an authorization flaw where changing an identifier returns data the user should not access.

Do I need an intercepting proxy?

Yes, in practice. Tools such as Burp Suite are the core workflow for inspecting and modifying web requests during testing.

What are the XSS types?

Stored, reflected and DOM-based, differing in where the malicious script originates and executes.

Why map the application first?

The methodology analyzes structure, inputs and flows first so later attacks have context and nothing is missed.

How does this module connect to the rest of CPENT?

Web flaws are frequent footholds that chain into network, cloud and Active Directory access in later modules.

Other Cybersecurity certifications

Where the same subject shows up in other exams. Cards marked "Same subject" open the matching domain.

Practice Module 5 skills

You have covered the web testing methodology and the main attack classes. Practice recognizing and chaining web flaws hands-on with an intercepting proxy.

Keep going