Courseiva

CEH · topic practice

Network and Web Application Attacks practice questions

This domain covers how attackers exploit network protocols and web application flaws, and how defenders detect and stop them. Questions use exhibits, logs, and scenario prompts to test whether you can identify an attack in progress, pick the right mitigation, and predict an exploit's outcome using standard tools and protocols.

Courseiva uses original exam-style practice questions designed for learning and revision. The goal is to understand the concepts, recognise exam patterns, and improve through explanations — not memorise copied exam dumps.

Editorial oversight:Johnson Ajibi· MSc IT Security, IEEE Senior Member
20 questionsDomain: Network and Web Application Attacks

What the exam tests

What to know about Network and Web Application Attacks

Be able to read connection and log exhibits, name the attack class, and select the control that actually stops it. The single most important thing is matching the observed evidence to the correct attack type before choosing a mitigation.

Recognizing attack signatures in netstat, Wireshark, and IDS/IPS alerts such as port 443 connection floods

Choosing encryption protocols (TLS/HTTPS, SSH, IPsec) to defeat sniffing and man-in-the-middle capture

Identifying SQL injection, XSS, and command injection payloads and their database or server outcomes

Mapping web server and application attacks to Apache, Ubuntu, and OWASP-style countermeasures

Watch out for

Common Network and Web Application Attacks exam traps

  • ▸Assuming port 443 traffic is always safe, so encrypted command-and-control or beaconing over HTTPS is missed as benign web traffic.
  • ▸Confusing SQL injection outcomes with XSS or command injection, then selecting the wrong impact such as credential theft versus database dump.
  • ▸Recommending a firewall or IDS rule when the question asks for encryption to stop sniffing, which only TLS or SSH provides.

Practice set

Network and Web Application Attacks questions

20 questions · select your answer, then reveal the explanation

A security analyst is configuring a web application firewall (WAF) to protect against SQL injection. Which HTTP parameter location should the analyst focus on to block malicious SQL queries?

Which TWO of the following are common web application vulnerabilities that allow an attacker to inject malicious code? (Select exactly 2)

Question 3hardmulti select
Read the full DNS explanation →

Which THREE of the following are effective countermeasures against DNS poisoning attacks? (Select exactly 3)

A penetration tester is analyzing a captured TCP session that includes a successful SQL injection attack. Which TWO of the following indicators would most likely confirm that the attack was successful?

Drag and drop the steps to recover a forgotten Windows administrator password using a bootable Linux USB into the correct order.

Drag or tap steps into the slots.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4
5Step 5

A web server log shows the following request from a single IP: GET /images/../../../../etc/passwd HTTP/1.1. Which vulnerability is being exploited?

Exhibit

[Apache access log]
192.168.1.10 - - [20/Jan/2023:10:15:30 +0000] "GET /index.php?page=../../etc/passwd HTTP/1.1" 200 2345
192.168.1.10 - - [20/Jan/2023:10:15:31 +0000] "GET /index.php?page=../../windows/system32/config/sam HTTP/1.1" 200 1234
192.168.1.10 - - [20/Jan/2023:10:15:32 +0000] "GET /index.php?page=admin.php HTTP/1.1" 200 567

Refer to the exhibit. A user visits a malicious site that returns this HTML. Which attack is being executed?

Exhibit

HTTP/1.1 302 Found
Location: http://www.legitimatebank.com/login.php
Set-Cookie: sessionid=abc123; HttpOnly; Secure

HTTP/1.1 200 OK
Content-Type: text/html

<html>
<body>
<form action="http://www.legitimatebank.com/transfer.php" method="POST">
<input type="hidden" name="toAccount" value="attacker123">
<input type="hidden" name="amount" value="10000">
</form>
<script>document.forms[0].submit();</script>
</body>
</html>

During a penetration test, a tester runs netstat and tasklist on a Windows web server. The netstat output shows hundreds of TCP connections from remote host 192.168.1.50 to local port 80, all in ESTABLISHED state and transferring only a few bytes. The tasklist output shows the web server process (e.g., w3wp.exe) with an unusually high number of threads and high memory usage. What type of attack is likely being performed by the remote host 192.168.1.50?

Exhibit

C:\Users\Admin> netstat -ano | findstr :80
  TCP    0.0.0.0:80             0.0.0.0:0              LISTENING       4520
  TCP    192.168.1.100:80       192.168.1.50:54321     ESTABLISHED     4520
  TCP    192.168.1.100:80       10.0.0.5:12345         TIME_WAIT       0
  TCP    [::]:80                [::]:0                 LISTENING       4520

C:\Users\Admin> tasklist | findstr 4520
  httpd.exe                     4520 Console                    0     34,568 K

Refer to the exhibit. A security analyst intercepts this HTTP request and response.

--- Request --- GET /search?q=%3Cscript%3Ealert(1)%3C/script%3E HTTP/1.1 Host: example.com

--- Response --- HTTP/1.1 200 OK Content-Type: text/html

<html><body>Search results for: <script>alert(1)</script></body></html>

Which type of vulnerability is present?

Exhibit

GET /search?q=<script>alert('XSS')</script> HTTP/1.1
Host: www.example.com
User-Agent: Mozilla/5.0

HTTP/1.1 200 OK
Content-Type: text/html

<html><body><h1>Search results for: <script>alert('XSS')</script></h1></body></html>

A security auditor reviews an Nginx configuration that permits all IP addresses but requires HTTP Basic authentication using a valid .htpasswd file. The access log shows a request from 192.168.2.10 to a protected resource with username 'admin' was rejected with 401. Why was the request rejected?

Exhibit

# /etc/nginx/nginx.conf (snippet)
location /admin {
    satisfy any;
    allow 192.168.1.0/24;
    deny all;
    auth_basic "Admin Area";
    auth_basic_user_file /etc/nginx/.htpasswd;
}

# Access log entry
192.168.2.10 - admin [10/Oct/2023:13:55:36 +0000] "GET /admin HTTP/1.1" 401 188

Refer to the exhibit. A penetration tester inputs a UNION-based SQL injection payload. Based on the output, how many columns does the original 'users' table have?

Exhibit

<?php
  $conn = new mysqli("localhost", "root", "password", "testdb");
  $id = $_GET['id'];
  $result = $conn->query("SELECT * FROM users WHERE id = $id");
  if ($result->num_rows > 0) {
    while($row = $result->fetch_assoc()) {
      echo "User: " . $row['username'] . " - Email: " . $row['email'];
    }
  }
?>

# Input: ?id=1 UNION SELECT 1,2,3
# Output: User: 2 - Email: 3

A penetration tester is assessing a web application that uses HTTP/2. The tester wants to exploit a vulnerability that can lead to a denial-of-service condition by manipulating HTTP/2 frames. Which two of the following techniques are valid HTTP/2-specific DoS attacks? (Choose two.)

During a penetration test, you notice that a web application accepts user input and displays it directly in the browser without sanitization. Which attack is most likely to succeed?

As a network defender, you notice an unusually high number of incomplete TCP three-way handshakes from a single external IP to multiple internal hosts. What is the most likely attack taking place?

You are performing a web application security assessment and discover that the application uses a hidden form field named 'price' to store the product price. The price is submitted with the form and used to process payments. Which attack would allow you to purchase an item for a lower price?

A network administrator wants to prevent an attacker from using a network sniffer to capture traffic between a client and a web server. Which protocol should be enforced to encrypt all communication?

Refer to the exhibit. A security analyst captured the HTTP request and response shown. What type of vulnerability is present?

Exhibit

Refer to the exhibit.
GET /search?q=<script>alert('XSS')</script> HTTP/1.1
Host: www.example.com
User-Agent: Mozilla/5.0

HTTP/1.1 200 OK
Content-Type: text/html

<html><body>You searched for: <script>alert('XSS')</script></body></html>

You are the lead security engineer for a financial technology company that hosts a critical web application on three load-balanced servers behind a reverse proxy. The application uses a REST API to process transactions. Recently, the company has experienced intermittent service outages during peak hours. Upon reviewing logs, you find that the reverse proxy is returning HTTP 503 errors for legitimate API requests, and the application servers show high CPU usage but normal memory. The network team reports no bandwidth issues. The application team claims no code changes were made. You suspect a specific type of attack is causing the outages. Which action should you take first to confirm the attack type?

Refer to the exhibit. A penetration tester executed the SQL injection payload and received the response shown. What is the most likely outcome of this attack?

Exhibit

Refer to the exhibit.

GET /search?q=1 UNION SELECT username,password FROM users-- HTTP/1.1
Host: example.com
User-Agent: Mozilla/5.0

HTTP/1.1 200 OK
Date: Mon, 04 Nov 2024 12:00:00 GMT
Server: Apache/2.4.41 (Ubuntu)
Content-Type: text/html

<html><body><h1>Search Results</h1><p>admin:5f4dcc3b5aa765d61d8327deb882cf99</p><p>user1:5d41402abc4b2a76b9719d911017c592</p></body></html>

You are a security analyst for a medium-sized e-commerce company. The company hosts its web application on a single server running Apache on Ubuntu. Recently, the operations team noticed that the server's CPU usage spikes to 100% every few minutes, causing the website to become unresponsive. They have ruled out hardware issues. The web server logs show repeated requests to the same URL with varying parameters, such as /product?id=1, /product?id=2, etc., all originating from a single IP address. Each request returns a 200 OK response, but the server takes several seconds to generate the page. The application uses a relational database backend with an ORM. You suspect an attack is occurring. What is the most likely attack and the best immediate course of action?

Free account

Track your progress over time

Create a free account to save your results and see which topics improve across sessions.

Focused Network and Web Application Attacks sessions

Start a Network and Web Application Attacks only practice session

Every question in these sessions is drawn from the Network and Web Application Attacks domain — nothing else.

Related practice questions

Related CEH topic practice pages

Move into related areas when this topic feels solid.

Scanning Networks and Enumeration practice questions

Scanning Networks and Enumeration practice questions for CEH.

Wireless, IoT and Cloud Security practice questions

Wireless, IoT and Cloud Security practice questions for CEH.

Vulnerability Analysis and System Hacking practice questions

Practise CEH questions linked to Vulnerability Analysis and System Hacking.

Advanced Topics: Wireless, Cloud, IoT, Cryptography practice questions

Sharpen your CEH knowledge of Advanced Topics: Wireless, Cloud, IoT, Cryptography.

Cryptography and Malware Analysis practice questions

Targeted CEH practice covering Cryptography and Malware Analysis.

Footprinting and Reconnaissance practice questions

Targeted CEH practice covering Footprinting and Reconnaissance.

Network and Web Application Attacks practice questions

Targeted CEH practice covering Network and Web Application Attacks.

Enumeration and System Hacking practice questions

Practise CEH questions linked to Enumeration and System Hacking.

Footprinting, Reconnaissance and Scanning practice questions

Sharpen your CEH knowledge of Footprinting, Reconnaissance and Scanning.

Social Engineering and Physical Security practice questions

Practise CEH questions linked to Social Engineering and Physical Security.

Malware, Social Engineering and Network Attacks practice questions

Sharpen your CEH knowledge of Malware, Social Engineering and Network Attacks.

Web Application and Injection Attacks practice questions

Sharpen your CEH knowledge of Web Application and Injection Attacks.

Frequently asked questions

What does the CEH exam test about Network and Web Application Attacks?
Be able to read connection and log exhibits, name the attack class, and select the control that actually stops it. The single most important thing is matching the observed evidence to the correct attack type before choosing a mitigation.
How should I use these practice questions?
Select your answer before revealing the explanation. Then read why each option is right or wrong — this active recall approach builds retention far faster than re-reading notes.
Can I practise just Network and Web Application Attacks questions in a focused session?
Yes — the session launcher on this page draws every question from the Network and Web Application Attacks domain. Use a 10-question session first to gauge your baseline, then move to 20 or 30 once the weak spots are clear.
Where can I practise other CEH topics?
Use the topic links above to move to related areas, or go back to the CEH question bank to see all topics.
Are these real exam questions or dumps?
These are original practice questions written to test the same concepts the CEH exam covers. They are not copied from any real exam or dump site.