← Back to all lessons

04 / Systems / 35 min READ + PRACTICE

Validation and remediation.

Analyze common web and system weaknesses and test the fix in your own app.

Practice boundaryUse your own devices, your isolated practice VM or 127.0.0.1. Get explicit authorization for any other system.

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.

HANDS-ON EXERCISE

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.

CHECKPOINT

Make sure it clicks

How do you distinguish a theoretical weakness from a verified finding?

TRY WITH OPENCODE

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 ↗
Your progress stays in this browser only.