From Findings to Fixes: My Experience Creating a Penetration Test
The author describes a penetration test of a web application's authentication and email-handling modules, finding HTML injection in email bodies, login CSRF, stored XSS that was blocked client-side, and a known denial-of-service CVE. An attacker could send phishing-style emails, force a victim to log in to an attacker-controlled account, and potentially crash the email service.
Published on medium.com
As a beginner in penetration testing, I’ve spent a lot of time learning how to identify vulnerabilities, exploit them, and understand their impact. But recently, I took a big step forward — I created my first penetration testing report.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely missing input sanitisation on email content and missing CSRF token validation on the login endpoint, plus use of a vulnerable library version.
Impact
Attackers could send deceptive emails to trick users into entering credentials, force a victim to log in to an attacker's account, and crash the email service; the stored XSS was blocked by client-side protections but could pose a risk if bypassed.
What the attacker needed
Access to email-sending feature; victim visits a malicious page; victim uses the web application
The fix
The report recommends strict input sanitisation, a Content Security Policy, proper CSRF token validation, and upgrading to patched library versions; it does not state that fixes were applied.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
This is a write-up of a beginner's first penetration test report. The tester found that the application let people put HTML (the code that formats web pages) into emails without cleaning it, which could be used to make fake login forms. They also found that the login form did not check a security token, so a malicious website could log a victim into someone else's account.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.