Projects 3-4: A Web App Assessment and a Lab Network Assessment
These are the two classic assessment projects: one application, one network. Both are what a junior penetration tester or a security consultant does in their first year, and both end in a report that someone else could act on. They run only against your own lab, against software that is vulnerable on purpose, and they follow the common frame. The capstone is a bigger version of project 3 with the target supplied by the lesson; doing project 3 first on a different app makes the capstone easier.
Project 3: assessing a deliberately vulnerable web application
Goal. Assess one deliberately vulnerable application running in your lab (OWASP Juice Shop is a good choice; DVWA or WebGoat also work) as if it were a client's: a test plan that covers the OWASP Top 10:2025, findings with evidence and CVSS scores, fixes, and a report.
Builds on. Web Application Security as a whole, especially its testing methodology, proxies, writing findings and the OWASP Top 10:2025; Penetration Testing: rules of engagement, CVSS, the report.
Scope. apps.lab.test (10.10.0.30), the one application, from kali.lab.test; no denial of service; synthetic users only. Juice Shop's own scoreboard is part of the app; reading its source code is allowed and is how you write precise fixes.
Steps. Write the rules of engagement (one page). Map the application (pages, API endpoints, roles) through the proxy. Write a test plan with at least one test per Top 10 category. Test, recording evidence as you go. Score each finding with CVSS v3.1 (and the v4.0 vector if you can). For each finding, read the code, write the fix (in your notes or as a patch to your lab copy) and say how the attempt would show up in logs. Write the report.
A test plan is only as good as its coverage. This tracker shows which Top 10 categories a plan covers so far, and where nothing is planned at all:
CATEGORIES = {
"A01": "Broken Access Control", "A02": "Security Misconfiguration",
"A03": "Software Supply Chain Failures", "A04": "Cryptographic Failures", "A05": "Injection",
"A06": "Insecure Design", "A07": "Authentication Failures",
"A08": "Software or Data Integrity Failures", "A09": "Security Logging and Alerting Failures",
"A10": "Mishandling of Exceptional Conditions",
}
# test plan for the lab's Juice Shop: (category, test, status) with status done / finding / n/a / todo
PLAN = [
("A01", "basket of another user by changing its id", "finding"),
("A01", "admin page reachable without the admin role", "finding"),
("A02", "security headers and error pages", "done"),
("A03", "dependency list against known vulnerabilities", "todo"),
("A04", "password storage and transport", "done"),
("A05", "login form and search for SQL injection", "finding"),
("A05", "reflected and DOM XSS in search", "finding"),
("A06", "coupon and checkout business logic", "todo"),
("A07", "login rate limiting and password reset", "done"),
("A08", "file upload and deserialisation", "n/a"),
("A10", "malformed JSON and huge inputs", "done"),
]
tested = {c for c, _, s in PLAN if s in ("done", "finding", "n/a")}
findings = [(c, t) for c, t, s in PLAN if s == "finding"]
print(f"{len(PLAN)} tests, {sum(s == 'todo' for *_, s in PLAN)} still to do, {len(findings)} findings")
print(f"categories covered: {len(tested)}/10")
for code, name in CATEGORIES.items():
if code not in tested:
todo = [t for c, t, s in PLAN if c == code]
print(f" not covered {code} {name}: {', '.join(todo) if todo else 'NO TEST PLANNED'}")11 tests, 2 still to do, 4 findings
categories covered: 7/10
not covered A03 Software Supply Chain Failures: dependency list against known vulnerabilities
not covered A06 Insecure Design: coupon and checkout business logic
not covered A09 Security Logging and Alerting Failures: NO TEST PLANNED
Seven of ten categories are covered by at least one completed test, and two have tests waiting. The real gap is A09: no test is planned for logging and alerting at all. It is the category most often forgotten in web assessments, because it is about what happens after the attack: did any of the four findings leave a trace an operator would see? Add a test (look at the app's logs during each finding) and the report gains a section most reports lack.
Deliverables. Rules of engagement; the test plan with its final coverage; the report (template): executive summary, scope and method, findings each with severity, CVSS vector, evidence, impact, fix and detection, and the retest result for every fix you could apply.
Rubric specifics. Technical work 3: every Top 10 category tested or explicitly marked not applicable with a reason. Fix and retest 3: at least three findings fixed in your lab copy and retested.
Stretch goal. Turn your findings into automated regression tests (as in the Web Security mini project) that fail on the vulnerable version and pass on your fixed one.
Project 4: assessing your home-lab network
Goal. Assess the lab network the way Network Security's workflow describes: scope, inventory, configuration review, safe validation, impact, remediation, retest. The lab is yours, which is exactly what makes it a legal target; and it almost certainly has findings: default services, a forgotten debug port, an expired certificate, a flat network.
Builds on. Networking for Security: Nmap, OpenSSL; Network Security: asset inventory, scan noise and ethics, exposed services, firewall rule review, flat networks; Penetration Testing: scan results.
Scope. 10.10.0.0/24, listed host by host from your lab README; TCP connect and version scans, configuration review, no exploitation beyond confirming a finding; scans during your own lab hours.
The method's core is the comparison between what should be running (your inventory) and what is. Here it is in miniature, in your sandbox: four services stand in for lab hosts on 127.0.0.1, the inventory lists three, and the session finds the difference and checks the TLS service's certificate:
# Scope: this sandbox only. The "lab hosts" are services started here on 127.0.0.1.
python3 -m http.server 8000 --bind 127.0.0.1 >http.log 2>&1 &
ncat -lk 127.0.0.1 2222 >/dev/null 2>&1 &
ncat -lk 127.0.0.1 9000 >/dev/null 2>&1 &
S=/opt/sec-samples/pki
openssl s_server -accept 127.0.0.1:8443 -cert $S/expired.lab.test.crt -key $S/expired.lab.test.key -quiet >/dev/null 2>&1 &
for i in $(seq 50); do curl -s -o /dev/null http://127.0.0.1:8000/ && break; sleep 0.1; done
sleep 0.5
cat > expected.txt <<'TXT'
8000/tcp web
2222/tcp ssh
8443/tcp https
TXT
nmap -sT -p 21,22,80,443,2222,3389,8000,8443,9000 127.0.0.1 -oG scan.gnmap >/dev/null
grep -o '[0-9]*/open/tcp' scan.gnmap | cut -d/ -f1 | sort -n > open.txt
cut -d/ -f1 expected.txt | sort -n > want.txt
extra=$(comm -23 open.txt want.txt | paste -sd' ')
missing=$(comm -13 open.txt want.txt | paste -sd' ')
echo "open ports: $(paste -sd' ' open.txt)"
echo "unexpected (open, not in inventory): ${extra:-none}"
echo "missing (in inventory, not open): ${missing:-none}"
echo "--- TLS on 8443"
openssl s_client -connect 127.0.0.1:8443 -servername expired.lab.test -CAfile $S/ca.crt -brief </dev/null 2>&1 | grep -i 'verif'
openssl x509 -in $S/expired.lab.test.crt -noout -subject -enddate
openssl x509 -in $S/expired.lab.test.crt -noout -checkend 0 || echo "finding: certificate expired"
kill %1 %2 %3 %4open ports: 2222 8000 8443 9000
unexpected (open, not in inventory): 9000
missing (in inventory, not open): none
--- TLS on 8443
verify error:num=10:certificate has expired
Verification error: certificate has expired
subject=C = XX, O = ExcelTAD Lab, OU = Web, CN = expired.lab.test
notAfter=Jan 1 00:00:00 2021 GMT
Certificate will expire
finding: certificate expired
Two findings in a minute. Port 9000 is open but in nobody's inventory: in a real lab, that is the debug listener or forgotten container that never got shut down, and the finding is "unknown service" until you find its owner. And the HTTPS service presents a certificate that expired on 1 January 2021, which clients will reject (or, worse, users will learn to click through). The detection for both is this comparison run on a schedule; the fix is to shut down or document the service and to automate certificate renewal; the retest is the same session showing unexpected: none and a valid certificate.
A configuration review of the lab firewall belongs in the same report. The firewall lab shows what a reviewer looks for, rules that can never match because an earlier rule shadows them:
Deliverables. The inventory (expected state); scan evidence (commands, outputs, times); a findings table with severity and fix; the firewall rule review; a segmentation proposal for the lab if it is flat; the retest after fixes.
Rubric specifics. Scope and safety 3: the scan list was derived from the inventory, no address outside it was scanned, and the scan schedule is written down. Detection: the lab's IDS or SIEM shows (or fails to show) your scans, and you report which.
Stretch goal. Turn the inventory comparison into a scheduled job that alerts on any change, and run it for two weeks.
Pitfalls
- Scanning the whole /24 because it's faster to type. List hosts. A scan of a range you didn't mean to include is the first step outside your scope.
- Reporting tool output. "Nmap says 9000/tcp cslistener" is not a finding; "an undocumented service accepts connections on 9000/tcp; owner unknown; recommend shutting it down" is.
- Skipping the retest. A fix that was never retested is a recommendation, not a fix.
Practice
1. Add the planned A09 test to the tracker. How many categories are covered once it is done?
Add ("A09", "logs during each finding reviewed", "done"): 8 of 10. A03 and A06 still have tests marked todo.
2. In the network session, what would the output be if the TLS service on 8443 were not running?
open ports: 2222 8000 9000, unexpected: 9000, missing: 8443, and the s_client line would report a connection failure. A missing service is a finding too (availability), or an inventory that is out of date.
Test yourself
Which Top 10:2025 category had no test planned at all in the tracker?
- A01 Broken Access Control
- A05 Injection
- A09 Security Logging and Alerting Failures
- A10 Mishandling of Exceptional Conditions
What did the inventory comparison find in the network session?
- Nothing
- Port 9000 open but not in the inventory, and an expired certificate on 8443
- Port 2222 missing
- A SQL injection
Why should a lab network assessment list hosts one by one rather than scan the whole /24?
- Nmap is faster that way
- So that nothing outside the written scope is scanned, and the list doubles as the expected inventory
- The /24 notation is wrong
- To avoid the IDS