Courseiva

CEH · topic practice

Vulnerability Analysis and System Hacking practice questions

This domain covers finding and exploiting weaknesses in systems and applications, then escalating access on the target. CEH tests it through scenario questions on buffer overflows, Windows SAM/LSASS credential dumping with tools like Mimikatz and hashcat, Linux privilege escalation, and configuring iptables firewall rules to block or allow specific traffic.

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: Vulnerability Analysis and System Hacking

What the exam tests

What to know about Vulnerability Analysis and System Hacking

You must identify vulnerability indicators, dump and crack Windows credentials, escalate privileges on Linux and Windows, and write correct iptables rules. The single most important thing is knowing which tool or command targets which credential store and applying rules in the right order.

Recognizing buffer overflow indicators such as crashes, stack canaries, and unexpected input handling

Dumping and cracking Windows SAM/NTLM hashes with Mimikatz, pwdump, and hashcat

Linux privilege escalation via SUID binaries, sudo misconfiguration, and kernel exploits

Ordering iptables rules to block or permit services like SSH on specific ports

Watch out for

Common Vulnerability Analysis and System Hacking exam traps

  • ▸Confusing SAM and LSASS: SAM holds local account hashes at rest, while LSASS holds credentials in memory and requires different dumping techniques.
  • ▸Placing iptables rules in the wrong order, since the first matching rule wins and a permissive rule above a deny rule nullifies it.
  • ▸Assuming a successful exploit equals full compromise, when privilege escalation and persistence are separate required steps.

Practice set

Vulnerability Analysis and System Hacking questions

20 questions · select your answer, then reveal the explanation

An ethical hacker is assessing a Linux web server running Apache. The server is suspected to have a remote file inclusion (RFI) vulnerability. Which testing approach is most appropriate to confirm the vulnerability without causing damage?

Which TWO of the following are valid techniques for password cracking?

Based on the Nmap scan output, which service is most likely vulnerable to remote code execution?

Exhibit

Refer to the exhibit.

```
$ nmap -sV -p 22,80,443,8080 192.168.1.10
Starting Nmap 7.80 ( https://nmap.org ) at 2025-01-15 10:00 UTC
Nmap scan report for 192.168.1.10
Host is up (0.0010s latency).

PORT     STATE SERVICE VERSION
22/tcp   open  ssh     OpenSSH 7.2p2 Ubuntu 4ubuntu2.10
80/tcp   open  http    Apache httpd 2.4.18 ((Ubuntu))
443/tcp  open  ssl/http Apache httpd 2.4.18 ((Ubuntu))
8080/tcp open  http    Apache Tomcat 8.5.5
MAC Address: 00:1A:2B:3C:4D:5E (Unknown)

Service detection performed. Please report any incorrect results at https://nmap.org/submit/
Nmap done: 1 IP address (1 host up) scanned in 12.34 seconds
```

Based on the exhibit, which service should be targeted first to gain initial access with the highest chance of success?

Exhibit

Refer to the exhibit.

Target: 192.168.1.10
Port scanning results:
PORT     STATE    SERVICE
22/tcp   open     ssh
80/tcp   open     http
443/tcp  open    https
3306/tcp open    mysql
8080/tcp open    http-proxy

Vulnerability scan summary:
- SSH: OpenSSH 7.2p2 (CVE-2016-6210 - High)
- HTTP: Apache 2.4.7 (CVE-2015-0228 - Medium)
- MySQL: MySQL 5.5.52 (CVE-2016-6662 - Critical)
- Proxy: Squid 3.5.23 (CVE-2019-12524 - High)

A security auditor reviews password hashes for three users: admin uses SHA-512 (hash prefix $6$...), root uses SHA-512 (hash prefix $6$...), and user uses MD5 (hash prefix $1$...). Which user has the weakest password hash?

Exhibit

# /etc/shadow (partial)
root:$6$xyz$abcdef...:18000:0:99999:7:::
admin:$6$abc$12345...:18005:0:99999:7:::
user:$1$def$67890...:18000:0:99999:7:::
# /etc/login.defs
PASS_MAX_DAYS   90
PASS_MIN_DAYS   0
PASS_WARN_AGE   7
ENCRYPT_METHOD SHA512

An attacker wants to exploit a known vulnerability. Which service is most likely vulnerable to CVE-2019-0215?

Exhibit

nmap -sV -p 22,80,443,8080 192.168.1.100
Starting Nmap 7.80 ( https://nmap.org )
Nmap scan report for 192.168.1.100
PORT     STATE SERVICE    VERSION
22/tcp   open  ssh        OpenSSH 7.2p2 Ubuntu 4ubuntu2.10
80/tcp   open  http       Apache httpd 2.4.18 ((Ubuntu))
443/tcp  open  ssl/http   Apache httpd 2.4.18 ((Ubuntu))
8080/tcp open  http-proxy Squid http proxy 3.5.12
Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel

Refer to the exhibit. A security analyst checks for missing patches. Which vulnerability is this system likely exposed to?

Exhibit

C:\Users\Admin> wmic qfe get HotFixID,InstalledOn
HotFixID   InstalledOn
KB4569558  9/17/2020
KB4570333  9/17/2020
KB4574727  9/8/2020
KB4577586  9/8/2020
C:\Users\Admin> ver
Microsoft Windows [Version 10.0.19041.508]
C:\Users\Admin> reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v CurrentBuild
    CurrentBuild    REG_SZ    19041

Refer to the exhibit. An auditor discovers that 'SupportUser' is a member of the Administrators group. What is the most likely security concern?

Exhibit

C:\Users\Admin>net localgroup Administrators
Alias name     Administrators
Comment        Administrators have complete and unrestricted access to the computer/user

Members

-------------------------------------------------------------------------------
Administrator
DomainAdmin
SupportUser
BackupAdmin
The command completed successfully.

A security analyst observes the following SSH logs:

sshd[1234]: Failed password for root from 203.0.113.7 port 22 ssh2 sshd[1235]: Failed password for root from 203.0.113.7 port 22 ssh2 sshd[1236]: Failed password for root from 203.0.113.7 port 22 ssh2 sshd[1237]: Failed password for root from 203.0.113.7 port 22 ssh2 sshd[1238]: Failed password for root from 203.0.113.7 port 22 ssh2

Which attack technique is being used?

Exhibit

Aug 15 10:23:45 server sshd[12345]: Failed password for root from 10.0.0.50 port 54321 ssh2
Aug 15 10:23:46 server sshd[12346]: Failed password for root from 10.0.0.50 port 54322 ssh2
Aug 15 10:23:47 server sshd[12347]: Failed password for root from 10.0.0.50 port 54323 ssh2
Aug 15 10:23:48 server sshd[12348]: Failed password for root from 10.0.0.50 port 54324 ssh2
Aug 15 10:23:49 server sshd[12349]: Failed password for root from 10.0.0.50 port 54325 ssh2

During a vulnerability assessment, a tester reviews a web.xml file that specifies a session timeout of 60 minutes. Which of the following is a potential security weakness?

Exhibit

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" version="2.4">
  <display-name>VulnerableApp</display-name>
  <servlet>
    <servlet-name>LoginServlet</servlet-name>
    <servlet-class>com.example.LoginServlet</servlet-class>
  </servlet>
  <servlet-mapping>
    <servlet-name>LoginServlet</servlet-name>
    <url-pattern>/login</url-pattern>
  </servlet-mapping>
  <error-page>
    <error-code>500</error-code>
    <location>/error.jsp</location>
  </error-page>
  <session-config>
    <session-timeout>60</session-timeout>
  </session-config>
</web-app>

Refer to the exhibit. An analyst performs reconnaissance on a Windows 10 system. Which of the following findings is most critical from a security perspective?

Exhibit

C:\Users\Admin>systeminfo | findstr /B /C:"OS Name" /C:"OS Version" /C:"System Type"
OS Name:                   Microsoft Windows 10 Pro
OS Version:                10.0.19041 N/A Build 19041
System Type:               x64-based PC

C:\Users\Admin>wmic qfe get HotFixID,InstalledOn | findstr /V "QFE"
HotFixID   InstalledOn
KB5000802  3/15/2021
KB5000822  3/22/2021
KB5001330  4/13/2021

C:\Users\Admin>reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v LocalAccountTokenFilterPolicy

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
    LocalAccountTokenFilterPolicy    REG_DWORD    0x1

A penetration tester has gained a low-privileged shell on a Windows 10 workstation via a phishing payload. The tester wants to escalate privileges to SYSTEM. The system has UAC enabled at the default level. Which two of the following techniques are most likely to achieve privilege escalation on this host? (Choose two.)

A penetration tester is attempting to crack a captured NTLMv2 hash using hashcat. The tester has a wordlist and wants to maximize efficiency by using rules to mutate the words. Which of the following hashcat commands correctly applies the best64 rule set to the wordlist 'passwords.txt' against the hash file 'ntlmv2.txt'?

A penetration tester discovers that a target Windows system has port 445 open and responds to SMB requests. Which tool should the tester use to enumerate users, shares, and OS information from this system?

During a penetration test, a tester gains access to a Linux system and needs to escalate privileges. The tester finds that the user has sudo privileges to run /usr/bin/less as root without a password. Which technique should the tester use to escalate privileges?

A security analyst runs a vulnerability scan and finds that a server is vulnerable to CVE-2021-44228 (Log4j). Which of the following is the best immediate remediation step?

An ethical hacker is testing a web application that uses cookies for session management. The tester notices that the session cookie does not have the HttpOnly or Secure flags set. Which attack is most likely to succeed due to this misconfiguration?

Which THREE of the following are common indicators of a buffer overflow vulnerability?

Question 19mediummultiple choice
Open the full VLAN trunking answer →

You are a penetration tester hired by a medium-sized financial company. The company has a network consisting of 50 Windows workstations (Windows 10 Pro) and 5 Windows Server 2019 servers (domain controller, file server, web server, database server, and mail server). The network is segmented into three VLANs: User VLAN (192.168.1.0/24), Server VLAN (192.168.2.0/24), and DMZ (192.168.3.0/24). The web server is in the DMZ and hosts a public-facing e-commerce application built on ASP.NET with a SQL Server backend. The database server is in the Server VLAN and is not directly accessible from the internet. You are given a standard user account on a workstation in the User VLAN. After initial reconnaissance, you discover that the web server is running an outdated version of IIS (7.5) and is vulnerable to a known privilege escalation vulnerability (CVE-2020-0613) that allows local privilege escalation if an attacker has already gained initial access. You also find that the web application has a SQL injection vulnerability in the login page. You successfully exploit the SQL injection to extract the password hash of the web application's service account, which is 'web_svc'. You crack the hash offline and obtain the plaintext password. The 'web_svc' account has local administrative privileges on the web server. Using these credentials, you authenticate to the web server via RDP. From there, you want to pivot to the database server to extract credit card information stored in the database. The database server only allows connections from the web server on port 1433 (SQL Server). Using the 'web_svc' account, you are able to connect to the database server using SQL Server Management Studio. However, you find that the 'web_svc' account has only 'public' and 'guest' database roles, which do not allow reading any sensitive tables. You need to escalate privileges on the database server. What is the most effective next step?

A penetration tester is analyzing a Windows 10 system and runs the following command to dump password hashes from the SAM database. The output shows hashes for local users but some are missing. Which step is most likely missing?

Free account

Track your progress over time

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

Focused Vulnerability Analysis and System Hacking sessions

Start a Vulnerability Analysis and System Hacking only practice session

Every question in these sessions is drawn from the Vulnerability Analysis and System Hacking 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 Vulnerability Analysis and System Hacking?
You must identify vulnerability indicators, dump and crack Windows credentials, escalate privileges on Linux and Windows, and write correct iptables rules. The single most important thing is knowing which tool or command targets which credential store and applying rules in the right order.
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 Vulnerability Analysis and System Hacking questions in a focused session?
Yes — the session launcher on this page draws every question from the Vulnerability Analysis and System Hacking 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.