Writing the vulnerability report
A bug you cannot communicate is a bug that gets rejected learn to write a report a developer understands and fixes fast with a real example and a builder you fill in yourself
- Track
- Web security
- Estimated time
- 20 min
- Level
- Beginner
Before this lesson
The hardest part of security is not finding the bug, it is convincing the other side it is real. A clear report means a faster fix, a higher reward, and more trust. A poor report wastes a great bug.
The sections of a good report
- Title the bug type and exactly where it is, in one line
- Summary two sentences: what the bug is and where
- Steps to reproduce numbered, so the developer repeats them exactly and lands on the same result
- Impact what the attacker actually gains, not a vague note about danger
- Proof of concept the request, code, or image that proves it
- Remediation how the developer fixes it
A real example
A reflected XSS in the Crows’ Shop search.
Title: Reflected XSS in the search field (parameter q) on /search
Severity: High
Summary:
The search field reflects the q value into the page without encoding, so any
html tag the user types turns into code that runs in the victim's browser.
Steps to reproduce:
1. Open /search?q=crow — results render normally
2. Replace q with the value below, then open the link
q=<script>alert(document.domain)</script>
3. An alert box shows the domain name, proving the code executed
Impact:
The attacker sends the link to a victim; on open, the attacker's code runs with
the victim's privileges, reading their session and acting as them in their account.
Proof of concept:
GET /search?q=<script>alert(document.domain)</script>
Remediation:
HTML-encode the q value before placing it in the page,
or render it via textContent instead of inserting it into html directly.Notice every line does a job: the steps reproduce the bug, the impact shows the loss, the fix hands the developer a solution.
Try it yourself
On the easy level, pick the better wording for each section and the report builds in front of you. Raise the level from the understanding switch above the lesson to write each section by hand, then print the sheet.
Report builder
Put together a clear vulnerability report, then print it
Report preview
Vulnerability title
Summary
Steps to reproduce
Impact
Proof of concept
Remediation
Labs
The labs for this lesson are in preparation.
