Post

HTB CPTS Labs: Part 15 - Vulnerability Assessment - Full Solutions

Field methodology for vulnerability assessments: automated scanning workflows with Nessus and OpenVAS, vulnerability triage, false positive verification, CVSS v3 scoring calculations, and complete lab solutions.

7 min read
views
visits
HTB CPTS Labs: Part 15 - Vulnerability Assessment - Full Solutions
HTB CPTS Labs: Part 15 - Vulnerability Assessment - Full Solutions
Lab Solutions Series
Part 15 of 41
HTB CPTS Labs
This article is part of our comprehensive hands-on lab solutions series. Follow along or explore other modules in the syllabus below.
View Full Series Syllabus (41 parts)

Welcome to Part 15 of our comprehensive, production-grade masterclass covering the Hack The Box (HTB) Academy Certified Penetration Testing Specialist (CPTS) curriculum. Rather than providing superficial slide summaries, this series deconstructs offensive tradecraft from foundational network discovery and vulnerability verification to complex lateral movement, active directory exploitation, and post-exploitation tradecraft — complete with terminal command flows, verified lab flags, and defensive engineering countermeasures.

In this installment, we conduct an exhaustive technical deep-dive into Vulnerability Assessment (Tier I • Easy • General). We break down the underlying mechanics of systematic vulnerability discovery, automated scanner operations (Nessus, OpenVAS), CVSS scoring metrics, false-positive triage, and remediation prioritization, dissect hands-on offensive vectors, analyze realistic defensive telemetry, and walk through every exercise step-by-step with 100% verified solutions.

Module Specifications & Target Architecture

AttributeSpecification
Module NameVulnerability Assessment
Official HTB Academy Trackhttps://academy.hackthebox.com/module/108
Curriculum Tier & DifficultyTier I • Easy
Certification PathwayHTB Certified Penetration Testing Specialist (CPTS) (Part 15 of 41)
Author & Technical AttributionAbdulrahman M. Fathi (0x3bdo)
Lab Flag Verification100% Fully Solved & Validated

Key Technical Takeaways

  • Scanning Methodologies: Configures credentialed and non-credentialed vulnerability scans across network subnets and application endpoints.
  • Vulnerability Scoring & Triage: Analyzes CVSS v3.1 vector strings to accurately evaluate vulnerability severity, exploitability, and organizational impact.
  • False Positive Elimination: Manually validates automated scanner findings through protocol-level verification before client reporting.
  • Asset Risk Prioritization: Synthesizes vulnerability scan outputs into actionable risk matrices prioritizing externally exposed and critical assets.
  • Compliance & Patch Management: Formulates defensive patching roadmaps aligned with enterprise risk frameworks.

Executive Summary & Assessment Scope

Vulnerability assessment is the systematic identification, evaluation, and ranking of security flaws across organizational assets. Unlike unstructured testing, formal assessments require structured methodologies to ensure broad coverage and actionable remediation guidance.

In this module, we examine vulnerability scanning architectures, configure automated scanners, analyze CVSS vulnerability vectors, filter scanner false positives through manual verification, and formulate prioritized remediation roadmaps, validating every assessment flag.


Comprehensive Lab Walkthrough & Flag Solutions

Vulnerability Assessment

Lab Question (Page 1): What is the name of one of the accessible SMB shares from the authenticated Windows scan? (One word)

Flag / Answer: wsus

Technical Methodology & Exploit Execution:

Enter to Windows_basic_authed

Select desired host:

search for ‘SMB share’ on results:

Figure 1.1 — Lab execution and output verification (Page 1) _Figure 1.1 — Lab execution and output verification (Page 1)_

Figure 1.2 — Lab execution and output verification (Page 1) _Figure 1.2 — Lab execution and output verification (Page 1)_

Lab Question (Page 2): What was the target for the authenticated scan?

Flag / Answer: 172.16.16.100

Technical Methodology & Exploit Execution:

Question: What is the plugin ID of the highest criticality vulnerability for the Windows authenticated scan? Answer: 156032 Method: observe the first vulnerability (highest up) ID

Figure 2.1 — Lab execution and output verification (Page 2) _Figure 2.1 — Lab execution and output verification (Page 2)_

Figure 2.2 — Lab execution and output verification (Page 2) _Figure 2.2 — Lab execution and output verification (Page 2)_

Figure 2.3 — Lab execution and output verification (Page 2) _Figure 2.3 — Lab execution and output verification (Page 2)_

Lab Question (Page 3): What is the name of the vulnerability with plugin ID 26925 from the Windows authenticated scan? (Case sensitive)

Flag / Answer: VNC Server Unauthenticated Access

Technical Methodology & Exploit Execution:

enter ‘/156032 in url to search for the ID’s vulnerability:

Question: What port is the VNC server running on in the authenticated Windows scan? Answer: 5900 Method: on the same vulnerability from question above (ID 156032) – look for port number in vulnerability details

Figure 3.1 — Lab execution and output verification (Page 3) _Figure 3.1 — Lab execution and output verification (Page 3)_

Figure 3.2 — Lab execution and output verification (Page 3) _Figure 3.2 — Lab execution and output verification (Page 3)_

OpenVAS skill assessment

Lab Question (Page 4): What type of operating system is the Linux host running? (one word)

Flag / Answer: ubuntu

Technical Methodology & Exploit Execution:

Assets > opetating systems:

Figure 4.1 — Lab execution and output verification (Page 4) _Figure 4.1 — Lab execution and output verification (Page 4)_

Figure 4.2 — Lab execution and output verification (Page 4) _Figure 4.2 — Lab execution and output verification (Page 4)_

Lab Question (Page 5): What type of FTP vulnerability is on the Linux host? (Case Sensitive, four words)

Flag / Answer: Anonymous FTP Login Reporting

Technical Methodology & Exploit Execution:

Scans -> Vulnerabilities -> filter for ‘ftp’

Cross checking with the hosts IP addresses revealed that out of the 2 vulnerabilities shown – the first one belongs to the Linux host, the second is to another irrelevant machine.

Question: What is the IP of the Linux host targeted for the scan? Answer: 172.16.16.160 Method: Configurations -> targets -> linux host:

Figure 5.1 — Lab execution and output verification (Page 5) _Figure 5.1 — Lab execution and output verification (Page 5)_

Figure 5.2 — Lab execution and output verification (Page 5) _Figure 5.2 — Lab execution and output verification (Page 5)_

Lab Question (Page 6): What vulnerability is associated with the HTTP server? (Case - sensitive)

Flag / Answer: Cleartext Transmission of Sensitive Information via HTTP

Technical Methodology & Exploit Execution:

Scans -> Vulnerabilities -> filter for ‘http’. Search for the vulnerability with the http keyword in it (NOT https)


Enterprise Defense & Mitigation Blueprint

To neutralize the attack vectors demonstrated throughout this module, security engineers and infrastructure administrators should implement layered defense-in-depth controls:

  1. Principle of Least Privilege (PoLP): Strictly segregate administrative rights, isolate service accounts into managed domains (gMSAs), and strip unnecessary capabilities (CAP_SETUID, SeImpersonatePrivilege).
  2. Input Validation & Parameterization: Neutralize command injection, LFI, and parameter tampering at the source by utilizing strict type allowlists, parameterized ORMs, and secure input sanitization.
  3. Network Boundary Segmentation: Isolate sensitive internal management ports (SSH, WinRM, SMB, RDP, SQL) behind bastion hosts and multi-factor VPN gateways with network-level microsegmentation.
  4. Telemetry & Threat Detection: Forward audit logs (Sysmon, Windows Event Logs, Linux Auditd, Zeek) to a centralized SIEM with behavioral rules targeting anomalous process spawning (cmd.exe from w3wp.exe, unexpected SUID execution, or mass port probing).

MITRE ATT&CK Mapping & Threat Matrix

Security DomainMapping Specification
Primary TacticEnterprise Penetration Testing & Adversary Simulation
Mitre TechniquesT1595.002, T1046
Common Weakness EnumerationsCWE-1035, CWE-937

Adversary Tradecraft & Technique Breakdown

Technique IDTechnique NameTacticApplied Offensive / Defensive Context
T1595.002Active Scanning: Vulnerability ScanningReconnaissanceAutomated scanning of network infrastructure for known CVEs
T1046Network Service DiscoveryDiscoveryAutomated discovery of open ports, software versions, and banners

Identified Common Weakness Enumerations (CWE)


Detection Engineering & Defensive Countermeasures

Modern enterprise security programs must implement proactive, layered defense-in-depth controls to detect and mitigate the techniques covered in this module:

  • Track vulnerability scanning bursts originating from internal or external IP ranges using network telemetry (NetFlow, Suricata).
  • Establish automated patch management pipelines prioritizing CVEs with high CVSS scores and active in-the-wild exploit maturity.
  • Conduct routine authorized credentialed vulnerability assessments to detect outdated packages before adversaries exploit them.

اللهم اجعل هذا العمل علمًا نافعًا وصدقةً جارية، واكتب لي به الأجر والقبول، وانفع به كل من قرأه أو تعلّمه.
اللهم احفظ لي والديّ وأهلي، وبارك في أعمارهم وصحتهم، وأدم عليهم نعمة الصحة والعافية، ولا تريني فيهم بأسًا يبكيني.
Dedicated as ongoing charity and beneficial knowledge. May Allah bless my parents and family, protect them, and grant them lasting health and happiness.

Search Results

0 matches
Type keywords, tool names (Frida, Burp, Ghidra), CVE numbers, or categories to search...