☼
⌃
☰

Vulnerability Identification Techniques

Table of Contents

Structured approaches to identifying vulnerabilities before exploitation. Distinct from scanning tools — this note covers the methodology and reasoning behind identification; see Vulnerability Scanning Tools for the tools themselves. The process flows from passive reconnaissance through active enumeration to targeted vulnerability research.

Related: Vulnerability Scanning Tools Nmap Reconnaissance Shodan Subdomain Enumeration Vulnerability Databases Searchsploit

1. Passive Identification

Gather information without directly interacting with the target. Leaves no footprint on the target's logs.

OSINT and Public Sources

SHELL
# Shodan — internet-wide scan data, indexed by IP and service
# Search for exposed services without touching the target
shodan search apache 2.4.49
shodan host $IP

# Censys — similar to Shodan, stronger certificate transparency
# https://search.censys.io

# Certificate Transparency — find subdomains via SSL cert records
# https://crt.sh/?q=%.target.com
curl "https://crt.sh/?q=%.target.com&output=json" | python3 -m json.tool

# DNS records — zone enumeration, mail servers, SPF, DMARC
dig any target.com
dig txt target.com
dig mx target.com

# WHOIS — registrant, nameservers, registration dates
whois target.com

Vulnerability Disclosure and Advisory Sources

Check these before active scanning — may reveal known vulnerabilities against the target's software stack:

TEXT
- NVD (https://nvd.nist.gov) — search by vendor/product
- Vendor security advisories — see Vulnerability Databases note
- GitHub security advisories (https://github.com/advisories)
- Full Disclosure mailing list
- Packet Storm (https://packetstormsecurity.com)

2. Active Identification

Direct interaction with the target — will appear in logs.

Service and Version Detection

The foundation of vulnerability identification — you cannot look up known vulnerabilities without knowing exact software versions.

SHELL
# Nmap version detection — always run this first
nmap -sV -sC -p- $IP -oA nmap/full

# Aggressive detection on specific ports
nmap -sV --version-intensity 9 -p 80,443,8080 $IP

# Banner grabbing — manual version identification
nc -v $IP 80
HEAD / HTTP/1.0

curl -sI http://$IP/ | grep -i "server\|x-powered-by\|x-aspnet"

# Telnet banner grab
telnet $IP 25

OS Fingerprinting

SHELL
# Nmap OS detection
nmap -O $IP

# TTL-based OS estimation (without Nmap)
ping $IP
# TTL ~64  → Linux/Unix
# TTL ~128 → Windows
# TTL ~255 → Cisco/network device

Web Technology Fingerprinting

SHELL
# Whatweb — identifies CMS, frameworks, libraries, server
whatweb http://$IP
whatweb -a 3 http://$IP    # aggressive mode

# Wappalyzer browser extension — identifies tech stack visually

# Manual fingerprinting from response headers
curl -sI http://$IP/ | grep -i "server\|x-powered-by\|x-generator\|x-aspnet"

# Check for framework-specific paths
curl -s http://$IP/wp-login.php    # WordPress
curl -s http://$IP/administrator   # Joomla
curl -s http://$IP/user/login      # Drupal

# Check JS bundle for framework indicators
curl -s http://$IP | grep -i "react\|angular\|vue\|next\.js\|webpack"

See Javascript Recon and Source Analysis for SPA-specific fingerprinting.

SSL/TLS Analysis

SHELL
# Check certificate details, expiry, weak cipher suites
nmap --script ssl-enum-ciphers -p 443 $IP
nmap --script ssl-heartbleed -p 443 $IP

# sslscan — comprehensive TLS analysis
sslscan $IP:443

# testssl.sh — comprehensive, checks for known TLS vulnerabilities
./testssl.sh https://$IP

SMB and Windows Service Enumeration

SHELL
# SMB version and signing
nmap --script smb-security-mode,smb2-security-mode -p 445 $IP

# Check for EternalBlue (MS17-010)
nmap --script smb-vuln-ms17-010 -p 445 $IP

# Enumerate shares (unauthenticated)
smbclient -L //$IP -N
nmap --script smb-enum-shares -p 445 $IP

3. Vulnerability Research

Once software versions are known, research known vulnerabilities systematically.

Lookup Workflow

TEXT
1. Note exact version: Apache 2.4.49, OpenSSH 7.2p2, etc.
2. Searchsploit <software> <version>     — offline, fast
3. NVD search: https://nvd.nist.gov/vuln/search
   → filter by vendor, product, version range
4. GitHub: search "<software> CVE exploit"
5. Exploit-DB: https://exploit-db.com
6. Check CVSS score and EPSS — prioritise by exploitability
SHELL
# Searchsploit — always check local copy first
searchsploit apache 2.4.49
searchsploit openssh 7.2
searchsploit --exclude "DOS\|shellcode" wordpress 5.8

# Examine before using
searchsploit -x 49900

# Copy to working directory
searchsploit -m 49900

CVE-to-Exploit Pipeline

SHELL
# Found CVE-2021-41773 (Apache path traversal/RCE)
# 1. Confirm version is affected
curl -sI http://$IP/ | grep Server    # Apache/2.4.49

# 2. Find exploit
searchsploit apache 2.4.49
# or
nuclei -u http://$IP -t cves/2021/CVE-2021-41773.yaml

# 3. Get and review exploit code
searchsploit -m 50383
cat 50383.sh

# 4. Verify impact manually — check response matches expected output
curl http://$IP/cgi-bin/.%2e/%2e%2e/%2e%2e/etc/passwd

4. Configuration and Logic Identification

Vulnerabilities beyond known CVEs — misconfigurations and design flaws that scanners frequently miss.

Default Credentials

SHELL
# Common defaults — always try before brute forcing
admin:admin
admin:password
admin:(blank)
root:root
administrator:administrator

# Service-specific defaults
# Tomcat:   tomcat:tomcat, admin:admin
# Jenkins:  admin:(from /var/jenkins_home/secrets/initialAdminPassword)
# MySQL:    root:(blank)
# Postgres: postgres:postgres

# Automated default credential check
nuclei -u http://$IP -tags default-login

Exposed Management Interfaces

SHELL
# Common admin/management paths
curl -s -o /dev/null -w "%{http_code}" http://$IP/admin
curl -s -o /dev/null -w "%{http_code}" http://$IP/manager/html   # Tomcat
curl -s -o /dev/null -w "%{http_code}" http://$IP/phpmyadmin
curl -s -o /dev/null -w "%{http_code}" http://$IP/wp-admin
curl -s -o /dev/null -w "%{http_code}" http://$IP/.git/

# Automate with Feroxbuster
feroxbuster -u http://$IP \
  -w /usr/share/seclists/Discovery/Web-Content/common.txt \
  -x php,html,txt --filter-status 404

Common Misconfigurations to Check

TEXT
Web servers:
- Directory listing enabled
- Source code disclosure (.git/, .svn/, .env, backup files)
- Dangerous HTTP methods (PUT, DELETE — check with OPTIONS)
- Missing security headers (CSP, HSTS, X-Frame-Options)
- Default error pages revealing software versions
- Unrestricted file upload

Network services:
- Anonymous FTP login
- Telnet enabled (cleartext)
- SNMP with default community strings (public, private)
- SMB signing disabled
- NFS shares with no_root_squash

Authentication:
- Default credentials on any service
- No account lockout / brute force protection
- Credentials in URLs or logs

5. Prioritisation

Not all identified vulnerabilities warrant the same effort. Prioritise in this order:

TEXT
1. Critical/High CVSS with public exploit — immediate, highest impact
2. Authentication bypass or default credentials — quick win
3. Exposed management interfaces — often quick path to foothold
4. Configuration issues leading to data exposure
5. Medium CVSS without public exploit — needs more research
6. Low/Informational — document but deprioritise during engagement

Check EPSS alongside CVSS — a Medium CVSS with high EPSS (being actively exploited) warrants more urgency than a Critical CVSS with low EPSS (theoretical, rarely exploited in practice). See Vulnerability Databases.

6. Methodology Checklist

  • [ ] Passive: OSINT, Shodan, certificate transparency, WHOIS
  • [ ] Port scan: Nmap full port + version detection
  • [ ] OS and service fingerprinting
  • [ ] Web technology identification (Whatweb, headers, JS)
  • [ ] SSL/TLS analysis on HTTPS services
  • [ ] SMB enumeration on port 445
  • [ ] Searchsploit on every identified version
  • [ ] NVD lookup for recent CVEs not in local Searchsploit DB
  • [ ] Default credential check on all services and web apps
  • [ ] Content discovery on web targets (Feroxbuster)
  • [ ] Manual misconfiguration checks (headers, methods, exposed paths)
  • [ ] Nuclei scan on web targets

Tips

  • Always identify versions before searching for vulnerabilities — a generic "Apache exploit" search is far less useful than "Apache 2.4.49 exploit"
  • Passive identification first — Shodan may already show you the target's services and versions without touching it
  • Default credentials take 30 seconds to test and succeed more often than expected — always try before brute forcing
  • Searchsploit covers most CTF scenarios; for real engagements supplement with NVD and GitHub searches for recent CVEs the local database has not yet indexed
  • Misconfigurations are frequently higher impact than CVEs in real environments — do not skip manual checks in favour of scanner output alone