Why you need a method
Beginners attack applications the way a tourist explores a city: wandering, trying whatever looks interesting, and forgetting what they already saw. Professionals work like surveyors. They map the territory, record everything, form hypotheses, test them one at a time, and can explain afterwards exactly what they covered and what they did not.
A methodology gives you three things:
- Coverage: you do not forget whole classes of tests because the first one found a bug.
- Repeatability: another tester (or you in six months) can follow the same process and get comparable results.
- Defensible results: a client who pays for a test wants to know what was checked, not just what was found.
Methodology does not replace creativity. The best findings come from noticing something odd and following it. But a method gives creativity a safe place to start from.
The phases of a penetration test
Different frameworks name the stages differently, but they describe the same lifecycle. The Penetration Testing Execution Standard (PTES) defines seven sections:
- Pre-engagement interactions: scope, goals, rules of engagement, legal paperwork, communication plan.
- Intelligence gathering: reconnaissance, collecting information about the target.
- Threat modelling: identifying which assets matter and which attackers and attack paths are realistic.
- Vulnerability analysis: discovering and validating weaknesses.
- Exploitation: demonstrating that a weakness can actually be abused.
- Post-exploitation: determining the value of what was reached and what else it enables.
- Reporting: communicating findings and remediation to technical and non-technical readers.
For web application testing the cycle often looks like this in practice:
| Phase | Question you answer | Typical activities |
|---|---|---|
| Scoping | What am I allowed to test, and what matters most? | Read scope, agree rules, get test accounts |
| Reconnaissance | What exists? | Subdomains, technologies, endpoints, JavaScript, public information |
| Mapping | How does it work? | Walk every feature with a proxy running; list roles, inputs, workflows |
| Discovery | Where are the weaknesses? | Test each input and function against each vulnerability class |
| Exploitation | Is it real and how bad is it? | Build a minimal proof of concept; assess impact |
| Chaining and escalation | Can small bugs combine into a big one? | Combine information disclosure, IDOR, XSS and so on |
| Reporting | How do I make this actionable? | Write reproducible, prioritised findings with fixes |
| Retest | Did the fix work? | Verify remediation |
These phases are iterative, not linear. A leaked endpoint in JavaScript sends you back to mapping; a new role discovered during exploitation sends you back to discovery.
Penetration testing is not the same as a vulnerability scan. A scanner reports possible issues; a tester validates them, understands the business context, chains them and explains the risk.
The OWASP Web Security Testing Guide
The OWASP Web Security Testing Guide (WSTG) is the most widely used checklist for web application testing. Where PTES describes the engagement, the WSTG lists the technical tests. It is organised into categories such as:
- Information Gathering
- Configuration and Deployment Management Testing
- Identity Management Testing
- Authentication Testing
- Authorization Testing
- Session Management Testing
- Input Validation Testing
- Error Handling
- Cryptography
- Business Logic Testing
- Client-side Testing
Each test has an identifier (for example WSTG-INFO-01), an objective, how to test and remediation advice. The course chapters map closely to these categories, so as you progress, think of each lesson as filling in one section of the guide.
Two companion projects are worth knowing:
- OWASP Application Security Verification Standard (ASVS): a list of security requirements used to build and verify applications. It tells you what "secure" should mean.
- OWASP Top 10: awareness of the most common risk categories (see the next lesson). It is a ranking, not a test plan.
A practical web testing workflow
1. Understand the application as a user
Before attacking, use the application normally for 15 to 30 minutes. Register, log in, buy, edit, upload, reset a password. Ask:
- What does this application do, and what would hurt the owner most if abused (money, personal data, availability, reputation)?
- Who are the actors? Anonymous visitor, normal user, premium user, moderator, administrator.
- Where does my data go and who else can see it?
2. Map the attack surface
Turn on an intercepting proxy and walk through every feature. Record:
- every endpoint (path plus method),
- every input: query parameters, body fields, JSON keys, headers, cookies, file names, file contents,
- state and workflows: multi-step processes such as checkout, password reset and onboarding,
- trust boundaries: where the application accepts a value from the client and treats it as true.
3. Think in terms of "what does the server assume?"
Almost every vulnerability is an assumption that fails:
| Assumption | Failure |
|---|---|
| "The user will only send the id of their own record" | IDOR / broken access control |
| "This field is always a number" | Injection, type confusion |
| "Users follow the workflow in order" | Business logic bypass |
| "This button is only visible to admins" | Missing server-side authorization |
| "Only one request at a time per user" | Race condition |
| "The URL parameter points to a public site" | SSRF, open redirect |
| "Nobody will find this URL" | Information disclosure |
For every input and every action, write down the assumption and design a test that violates it.
4. Test systematically
Use the WSTG or your own checklist. For each input, try the relevant classes, changing one variable at a time and comparing against a baseline response. Always keep a "known good" request so you can see what changed (status code, length, timing, content).
5. Validate and minimise
When you see a signal, confirm it with a second, independent test. Then reduce the proof of concept to the smallest request that demonstrates the issue. This is both an ethical rule and a communication tool.
6. Assess impact
A bug has no severity in isolation. Ask who can exploit it (anonymous, authenticated), how hard it is, and what the attacker gains: data, money, account takeover, code execution. Think about chaining: an information leak gives a user id, an IDOR gives that user's email, a password reset flaw gives account takeover.
7. Report and retest
Write it up while the details are fresh. Later lessons cover report writing. After the fix, retest, and also test variants, since fixes often block only the exact payload you used.
The hacker mindset
Technical knowledge matters, but mindset multiplies it.
Curiosity and "what if?"
Great testers constantly ask what happens if:
- I change this number? Send a negative one? A very large one? A decimal?
- I remove this parameter? Repeat it? Send an array instead of a string?
- I skip step 2 of the process? Do step 3 twice?
- I use another user's id, another tenant's id, an id that does not exist?
- I send the request ten times at once?
Think like a developer
Developers write most bugs by accident while solving a different problem. Ask yourself how you would have implemented the feature quickly: where would you have cut corners? Look for the places where two components must agree (front-end and back-end validation, two microservices, the cache and the origin, two parsers). Disagreements are where vulnerabilities live.
Notice anomalies
Pay attention to the unusual: an odd error message, a slightly different response length, an extra header, a delay, an older-looking page, a naming inconsistency (/api/v2/users but /api/v1/admin). Anomalies mean different code paths, and different code paths mean different bugs.
Be persistent but disciplined
Most tests find nothing. That is normal. Persistence means continuing the structured process rather than giving up, and discipline means not skipping steps out of boredom. When truly stuck, switch to a different part of the application for a while and come back.
Be humble and ethical
You will be wrong often, and you will sometimes find something that looks bad but has no real impact. Say so. Stay within scope, protect data and communicate honestly (see the ethics lesson).
Taking notes that make you faster
Notes are your external memory. Without them you will test the same input twice and forget the interesting thing you saw two hours ago.
What to record
- Scope and rules: the exact scope text and rules, copied at the start.
- Credentials and roles: which test accounts you have and their privileges.
- Endpoint inventory: method, path, parameters, authentication required, observations.
- Tests done and results: what you tried, the payload, and the result. "Not vulnerable" entries save time later.
- Ideas queue: things to check later ("JWT in cookie, try alg none", "report export looks slow, injectable?").
- Evidence: raw requests and responses, saved or screenshotted, with timestamps.
- Findings draft: update as you go.
A simple structure
target-name/
00-scope.md # in-scope assets, rules, contacts
01-recon.md # subdomains, tech stack, interesting endpoints
02-endpoints.md # inventory table
03-ideas.md # to-do hypotheses
04-findings/
F-01-idor-orders.md
F-02-info-disclosure-actuator.md
evidence/ # saved requests, screenshots (redacted)
An endpoint inventory in Markdown might look like:
| Method | Path | Auth | Params | Notes |
|--------|---------------------|------|-----------------|-------------------------------|
| GET | /api/orders/{id} | yes | id (path) | Sequential ids; test IDOR |
| POST | /api/coupon/apply | yes | code (json) | Test race condition |
| GET | /search | no | q (query) | Reflected in HTML; test XSS |
Tools
Pick whatever you will actually use consistently: Obsidian, Notion, Joplin, a git repository of Markdown files, or even a text editor and folders. Burp Suite lets you annotate and highlight items in its history, and you can save items to files. The best tool is the one you open without friction.
Never store real customer data or credentials from an engagement in cloud notes you do not control. Encrypt the disk and follow the data-handling rules of the contract.
Time management and prioritisation
You rarely have unlimited time, so prioritise:
- Start with what matters to the business: authentication, authorization, payments, sensitive data.
- Cover breadth first, then depth. A quick pass across the whole application finds the weakest areas to dig into.
- Favour high-impact classes: access control, authentication and injection typically produce the highest-severity findings.
- Timebox rabbit holes. Give a promising idea 30 to 60 minutes. If there is no signal, note it and move on.
- Automate the boring parts (content discovery, enumeration) while you do manual testing elsewhere.
Common beginner mistakes
- Jumping straight to exploitation without mapping.
- Running a scanner, pasting its output and calling it a pentest.
- Trying one payload, getting no result and concluding "not vulnerable" (filters, encodings and contexts matter).
- Changing several things at once so you cannot tell which one mattered.
- Not saving requests, then being unable to reproduce.
- Going beyond scope or past minimal proof.
Checklist for a new target
- Read and recorded the scope and rules.
- Used the app as every role I have access to.
- Mapped endpoints, inputs and workflows with a proxy.
- Listed assumptions the server makes and planned tests that break them.
- Covered each WSTG category relevant to the application.
- Saved evidence for every finding and minimised proofs of concept.
- Assessed impact and possible chains.
- Drafted findings with remediation, then retested fixes.
Key takeaways
- A methodology gives coverage, repeatability and defensible results; creativity works inside it.
- PTES describes the engagement lifecycle; the WSTG lists the technical tests; the Top 10 ranks common risks.
- The cycle is iterative: recon, map, test, validate, chain, report, retest.
- Vulnerabilities are failed assumptions: write the assumptions down, then break them one at a time.
- Good notes make you faster and your reports better.
Further reading
- PTES technical guidelines: http://www.pentest-standard.org/
- OWASP Web Security Testing Guide: https://owasp.org/www-project-web-security-testing-guide/
- OWASP ASVS: https://owasp.org/www-project-application-security-verification-standard/
- PortSwigger, how to approach a target (Web Security Academy): https://portswigger.net/web-security