04 / Systems / 35 min READ + PRACTICE
Validation and remediation.
Analyze common web and system weaknesses and test the fix in your own app.
Ask what is trusted
Map inputs, trust boundaries, authentication and data flows. Common categories include injection, broken access control, insecure configuration, secret exposure and outdated components. A scanner finding is a hypothesis; confirm the exact behavior with a minimal lab test.
Fix the root cause
Use parameterized database queries, contextual output encoding, object-level permission checks and narrow file-system privileges. Patch dependencies through supported channels and remove unused services. Write a regression test that fails before the fix and passes after it.
Write defensible evidence
State prerequisites, a sanitized reproduction, observed result, impact and remediation. Avoid including real personal data, active tokens or a copy of a private database in a report. Retest after the fix.
Try it in your lab
In a toy application, identify one missing server-side check, write a failing test, apply the check and rerun the test.
Make sure it clicks
How do you distinguish a theoretical weakness from a verified finding?
A prompt you can adapt
Review my toy app route for authorization and input-validation gaps, propose a minimal patch and create regression tests.How to set up OpenCode ↗