r/Pentesting • • 6d ago

How to write a pentest finding a developer can actually fix

If you’re practicing in a lab or writing up your first authorized assessment, try this before you submit a finding: hand it to someone who wasn’t there for the test. Can they tell what happened, why it matters, and how to check the fix?

Here’s a simple structure I use:

  1. Name the behavior. Identify the affected feature and what it allowed. “A regular user could open another test account’s invoice” gives the reader more to work with than “broken access control.”
  2. Show the evidence. Include the relevant request and response with tokens, identifiers, and private data redacted. Use test accounts and keep only the evidence needed to establish the finding.
  3. State the impact you observed. If you confirmed that one invoice could be read, say that. Treat broader exposure as an open question until you have evidence.
  4. Give the developer a retest. In the invoice example, confirm that the owner can still open their invoice and that a separate account is denied access. That checks the fix and the legitimate workflow in one pass.

What’s one detail you wish people included more often in security reports?

2 Upvotes

8 comments sorted by

7

u/AngelMountaineer 6d ago

I'm a dev and I just need to be able to reproduce what you did without having to think.

So for example: 

  • Press login button on website.com
  • Fill in username "admin"
  • Fill in password "{"$ne":"invalid"}"

Desired: I get error because password incorrect  Actual: I get logged in

Then i know what to fix. If you want to be really nice you explain what nosql injection is, but Claude will also know that

2

u/Figuerolles-Aarin 3d ago

dead simple repro steps beat a fancy boilerplate remediation section every time tbh

1

u/proanti777 6d ago

A good pentest report doesn’t require you to ask any more questions, neither to the tester nor to an LLM

2

u/latnGemin616 5d ago

Nope! You're missing a bunch of things elements, including what the developer needs most:

Steps to reproduce + working POC or scripts you ran to help with the debugging.
Videos and screenshots are the evidence of what was found.

If you've been in QA (like I have), the paradigms are the same. A clear and concise ticket with actionable steps and no additional fluff.

2

u/CortexTrace 5d ago

biggest one for us was putting the retest steps in the finding itself. devs love being able to check their own fix before the retest

1

u/Aphridy 5d ago

As an IT auditor: same for me, those pentest reports are my favorite!

1

u/m3rlinda 5d ago

Great advice, one of the things that got us when I was pentesting is writing non-value-added remediation advice. Like this: "We happily suggest you remove this key everywhere it's hardcoded and rotate all admin API keys for good measure." HAHAHAHA the devs laughed in our faces. No one is going to do thru 1M LOC to fix that. The stronger suggestion here would be to 1) prioritize the exposed creds 2) rotate compromised keys (narrower scope) 3) move secret retrieval into an appropriate secrets-management workflow 4) prevent new hardcoded secrets through CI/CD scanning (hopefully) then 5) work through the remaining debt incrementally. Gotta meet the devs at their flow to get things actually changed.

One thing I'd add: explain the security boundary that failed, not just the payload that worked. Devs need to understand what assumption broke so they don't patch one endpoint and leave the same auth flaw across six others. And remediation should include a negative test proving the unauthorized behavior is blocked, not just a screenshot of the ticket marked closed. Closed isn't fixed, verified is fixed.