🇺🇸 Certified Ethical Hacker (CEH) · subject

Certified Ethical Hacker (CEH) Web, Application, and Database Hacking Syllabus

The Web, Application, and Database Hacking syllabus for Certified Ethical Hacker (CEH) in full: 3 chapters, 13 topics and 22 sub-topics, every one listed below, plus 52 Web, Application, and Database Hacking flashcards with answers.

3Chapters
13Topics
22Sub-topics
52Flashcards

Web, Application, and Database Hacking syllabus: all 3 chapters

Expand any chapter to see its topics and sub-topics.

  1. Hacking Web Servers

    4 topics
    • Web Server Concepts and Architecture
      • Web server components and security issues
    • Web Server Attacks
      • DNS server hijacking and defacement
      • Directory traversal and HTTP response splitting
      • Server misconfiguration exploits
    • Web Server Attack Methodology
      • Information gathering and vulnerability scanning
    • Patch Management and Countermeasures
  2. Hacking Web Applications

    5 topics
    • Web Application Concepts and OWASP Top 10
      • Web app architecture and attack surface
      • OWASP Top 10 vulnerabilities
    • Authentication and Authorization Attacks
      • Broken authentication and session management
      • Insecure direct object references and access control
    • Injection and Input Validation Attacks
      • Command injection and LDAP injection
      • Cross-site scripting (stored, reflected, DOM)
      • Cross-site request forgery (CSRF)
    • API, Webhook, and Web Shell Attacks
      • API vulnerabilities and OWASP API Top 10
      • Web shell deployment
    • Web Application Countermeasures
      • Input validation, WAF, secure coding
  3. SQL Injection

    4 topics
    • SQL Injection Concepts
      • Injection points and impact
    • Types of SQL Injection
      • In-band: error-based and union-based
      • Blind: boolean-based and time-based
      • Out-of-band injection
    • SQL Injection Methodology and Tools
      • Detection and exploitation with sqlmap
      • Database fingerprinting and data extraction
    • Countermeasures
      • Parameterized queries and stored procedures

Certified Ethical Hacker (CEH) Web, Application, and Database Hacking flashcards — 52 questions with answers

  1. What are the three core functions of a web server in the client-server model?

    It stores website files, processes incoming HTTP/HTTPS requests, and delivers (serves) the requested web content/responses back to clients (browsers).

  2. In a typical web server architecture, what is the role of the document root?

    The document root is the top-level directory on the server's file system from which the web server serves files to clients; requested URLs map to files under this directory.

  3. Name three of the most widely used web server software products.

    Apache HTTP Server, Microsoft Internet Information Services (IIS), and Nginx (others include LiteSpeed and Google Web Server).

  4. What is the difference between a web server and an application server?

    A web server primarily serves static content and handles HTTP requests, while an application server runs business logic and dynamically generates content (often via the web server as a front end).

  5. Which two HTTP request methods are most commonly targeted, and what is a key difference between them?

    GET and POST. GET appends parameters to the URL (visible, cacheable, length-limited), while POST sends parameters in the request body (used for larger/sensitive data submissions).

  6. What is server-side scripting, and give two example technologies.

    Code executed on the server to generate dynamic content before sending it to the client. Examples: PHP, ASP.NET, JSP, Python, or Node.js.

  7. What is 'directory browsing' (directory listing) and why is it a web server risk?

    When a directory has no index file and the server is configured to display its contents, attackers can enumerate files and folders, exposing sensitive files. It should be disabled.

  8. List four common causes (root reasons) of web server vulnerabilities.

    Improper/default configuration, default accounts and passwords, unpatched software/known bugs, unnecessary services/open ports, and verbose error messages or default content left in place.

  9. What is a DNS server hijacking attack against a web server's availability?

    The attacker compromises DNS settings to redirect users to a malicious server instead of the legitimate web server, enabling phishing or content interception.

  10. Describe a directory traversal (path traversal) attack.

    An attacker uses sequences like ../ in input to navigate outside the web root and access restricted files (e.g., /etc/passwd), exploiting insufficient input validation.

  11. What is website defacement?

    An attack that alters the visual appearance or content of a website, typically by exploiting vulnerabilities to replace pages, often for hacktivism or to demonstrate compromise.

  12. What is an HTTP response splitting attack?

    An attacker injects CR/LF (carriage return/line feed) characters into a response header, splitting it into multiple responses to enable cache poisoning, XSS, or redirection.

  13. What is web cache poisoning?

    An attack that forces a web cache to store and serve malicious or incorrect content to users, often combined with HTTP response splitting or manipulated cache keys.

  14. What is a web server misconfiguration attack and one example?

    Exploiting insecure server settings such as enabled directory listing, default credentials, verbose error messages, unnecessary HTTP methods (e.g., PUT/DELETE), or remote admin interfaces left open.

  15. What are the ordered phases of the Web Server Attack Methodology in CEH?

    1) Information gathering, 2) Web server footprinting/banner grabbing, 3) Website mirroring, 4) Vulnerability scanning, 5) Session hijacking, and 6) Web server password cracking/hacking.

  16. What is web server footprinting (banner grabbing) and which tools are used?

    Gathering server details such as server software, version, and OS by reading HTTP banners. Tools: Netcraft, Telnet, ID Serve, httprecon, and Nmap (with -sV).

  17. What is website mirroring in the attack methodology and why is it done?

    Copying an entire website locally (e.g., with HTTrack or Wget) to analyze its structure, links, and source code offline for vulnerabilities without repeatedly hitting the live server.

  18. Name two automated tools used to scan web servers for known vulnerabilities.

    Nikto and Acunetix (others include OpenVAS, Nessus, and WPScan for WordPress).

  19. What is patch management?

    The process of identifying, acquiring, testing, and installing software updates (patches) to fix vulnerabilities and bugs, keeping systems secure and up to date.

  20. What is a hotfix versus a patch?

    A hotfix is a single, often urgent update addressing a specific issue (sometimes for one customer), while a patch is a more formally packaged, tested fix or set of fixes released for broader deployment.

Show the other 32 Web, Application, and Database Hacking flashcards
  1. List three key web server hardening countermeasures.

    Disable unnecessary services/ports, remove default accounts and sample files, apply patches promptly, disable directory listing, use TLS/HTTPS, and run the server with least-privilege accounts.

  2. Why should detailed error messages be disabled on production web servers?

    Verbose errors can leak server versions, file paths, stack traces, and database details that help attackers fingerprint the system and craft targeted exploits.

  3. What is the OWASP Top 10?

    A regularly updated, consensus list published by OWASP of the ten most critical web application security risks, used as an awareness and prioritization standard.

  4. In the OWASP Top 10 (2021), what is the #1 ranked risk?

    A01: Broken Access Control.

  5. What does OWASP A03:2021 'Injection' include?

    Flaws where untrusted data is sent to an interpreter as part of a command/query, including SQL injection, NoSQL injection, OS command injection, and (newly merged) Cross-Site Scripting (XSS).

  6. What is the difference between authentication and authorization?

    Authentication verifies who a user is (identity); authorization determines what an authenticated user is permitted to do (access rights/permissions).

  7. What is broken access control and give one example?

    When users can act outside their intended permissions. Example: insecure direct object reference (IDOR) where changing an ID in the URL exposes another user's data.

  8. What is a credential stuffing attack?

    An automated attack that uses large lists of username/password pairs leaked from other breaches to try logging in, exploiting users' password reuse.

  9. What is session hijacking in web applications?

    Stealing or predicting a valid session token/cookie to impersonate an authenticated user and take over their session without credentials.

  10. What is a session fixation attack?

    The attacker sets or forces a known session ID on a victim before login; once the victim authenticates, the attacker reuses that fixed session ID to hijack the session.

  11. What is privilege escalation, and what are its two types?

    Gaining higher access than authorized. Vertical escalation = gaining higher-privilege (e.g., admin) rights; horizontal escalation = accessing another user's resources at the same privilege level.

  12. What is Cross-Site Scripting (XSS)?

    An injection flaw where an attacker injects malicious scripts into web pages viewed by other users, executing in their browsers to steal cookies, sessions, or perform actions.

  13. Name and define the three types of XSS.

    Stored (persistent) – script saved on the server and served to users; Reflected – script reflected off the server in a response from a request; DOM-based – manipulation occurs entirely in the client-side DOM.

  14. What is Cross-Site Request Forgery (CSRF)?

    An attack that tricks an authenticated user's browser into sending an unwanted request to a web app, performing actions on their behalf without consent; mitigated with anti-CSRF tokens.

  15. What is OS command injection?

    An attacker injects operating-system commands into an application input that is passed to a system shell, allowing arbitrary command execution on the server.

  16. Why is input validation important and which approach is preferred?

    It prevents malicious data from reaching interpreters. Whitelisting (allowlisting) valid input is preferred over blacklisting, since blacklists can be bypassed.

  17. What is a web shell?

    A malicious script (e.g., PHP, ASP, JSP) uploaded to a web server that gives an attacker a remote command/control interface to execute commands and maintain persistence.

  18. What is an insecure file upload vulnerability and a typical consequence?

    When an app allows uploading files without proper type/content checks, an attacker can upload a web shell or malicious script, leading to remote code execution.

  19. What are two common security risks specific to APIs?

    Broken object level authorization (BOLA/IDOR), broken authentication, excessive data exposure, lack of rate limiting, and improper input validation (see OWASP API Security Top 10).

  20. What is a webhook and what is a key security concern with it?

    A webhook is an automated HTTP callback that sends data to a URL when an event occurs. Key risk: unverified/forged requests, so payloads should be authenticated (e.g., signed with a shared secret/HMAC).

  21. List three core web application countermeasures.

    Validate and sanitize all input, use parameterized queries/prepared statements, enforce least privilege, apply secure session management, deploy a WAF, and keep components patched.

  22. What is a Web Application Firewall (WAF) and where does it operate?

    A WAF filters, monitors, and blocks malicious HTTP/HTTPS traffic to/from a web application, operating at Layer 7 (application layer) to defend against attacks like SQLi and XSS.

  23. What is SQL injection (SQLi)?

    An attack that inserts/manipulates malicious SQL statements via application input so they are executed by the backend database, allowing unauthorized data access or modification.

  24. Why does SQL injection occur (root cause)?

    Because user-supplied input is concatenated directly into SQL queries without proper validation, parameterization, or escaping, letting input alter query logic.

  25. What does the classic injection ' OR '1'='1 achieve?

    It creates an always-true condition in a WHERE clause, bypassing authentication or returning all rows because the query condition is always satisfied.

  26. What are the three main categories of SQL injection?

    In-band (e.g., error-based and UNION-based), Blind/Inferential (boolean-based and time-based), and Out-of-band SQL injection.

  27. What is error-based SQL injection?

    An in-band technique that deliberately triggers database error messages, using the leaked error details to extract information about the database structure and data.

  28. What is UNION-based SQL injection?

    An in-band technique using the UNION SQL operator to combine the result of an injected query with the original, retrieving data from other tables in the application's response.

  29. What is the difference between boolean-based and time-based blind SQL injection?

    Boolean-based infers data from true/false differences in the app's response; time-based infers data by observing whether a conditional time delay (e.g., SLEEP/WAITFOR) occurs, with no visible data returned.

  30. What is out-of-band SQL injection and when is it used?

    It exfiltrates data through a different channel (e.g., DNS or HTTP requests from the database to an attacker server). Used when in-band/blind methods are unreliable or responses are not returned directly.

  31. Name two popular automated SQL injection tools.

    sqlmap and Havij (others include jSQL Injection and BSQL Hacker).

  32. What are the primary countermeasures against SQL injection?

    Use parameterized queries/prepared statements, stored procedures, input validation (whitelisting), least-privilege database accounts, escaping inputs, and a WAF; avoid dynamic query string concatenation.

Certified Ethical Hacker (CEH) Web, Application, and Database Hacking FAQ

What is in the Certified Ethical Hacker (CEH) Web, Application, and Database Hacking syllabus?

Certified Ethical Hacker (CEH) Web, Application, and Database Hacking is split into 3 chapters: Hacking Web Servers, Hacking Web Applications and SQL Injection. Together they contain 13 topics and 22 sub-topics.

How many chapters are in Certified Ethical Hacker (CEH) Web, Application, and Database Hacking?

3 chapters, containing 13 topics and 22 sub-topics. The largest chapter is Hacking Web Applications, with 5 topics.

Are there flashcards for Certified Ethical Hacker (CEH) Web, Application, and Database Hacking?

Yes — a 52-card Web, Application, and Database Hacking deck, printed in full in the flashcards section of this page and available in the Examius app with spaced repetition. The free plan covers one exam of your choice, including its flashcards; Examius Pro, a one-time purchase, unlocks every other exam and deck.