Courseiva

CEH · topic practice

Vulnerability Analysis and System Hacking practice questions

Practise Certified Ethical Hacker CEH Vulnerability Analysis and System Hacking practice questions — original exam-style scenarios with answer choices, explanations, and analysis of common mistakes.

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.

Reviewed byJohnson Ajibi· MSc IT Security
20 questionsDomain: Vulnerability Analysis and System Hacking

What the exam tests

What to know about Vulnerability Analysis and System Hacking

Vulnerability Analysis and System Hacking questions test whether you can apply the concept in context, not just recognise a definition.

How the topic appears in realistic exam-style scenarios.

Which detail in the question changes the correct answer.

How to eliminate plausible but wrong options.

How to connect the question back to the wider exam objective.

Watch out for

Common Vulnerability Analysis and System Hacking exam traps

  • Answering from memory before reading the full scenario.
  • Missing a constraint such as cost, availability, security, scope or command context.
  • Choosing a broad answer when the question asks for the most specific fix.
  • Ignoring why the wrong options are tempting.

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. 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 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 16mediummultiple 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?

Which TWO vulnerabilities are associated with buffer overflow attacks?

Drag and drop the steps to configure a firewall rule in iptables to block incoming SSH traffic into the correct order.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

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

Match each type of attack to its description.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Social engineering via deceptive emails

Intercepting communication between two parties

Inserting malicious SQL queries into input fields

Overwhelming a system to make it unavailable

Associating attacker's MAC with victim's IP

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.

Frequently asked questions

What does the CEH exam test about Vulnerability Analysis and System Hacking?
Vulnerability Analysis and System Hacking questions test whether you can apply the concept in context, not just recognise a definition.
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.