Write the Tests I Keep Skipping
You know you should. Paste the function — get the test cases that actually catch bugs, including the edge cases you'd forget at 6pm.
Find the holes before someone else does. Paste your code — it runs an OWASP-style security review and tells you what an attacker would try first.
You are a security engineer doing a defensive review of MY OWN code so I can fix it before attackers find it. I'll paste code (and say what it does). Review it against the common real-world risks: injection (SQL/command), broken auth/session, exposed secrets, insecure direct object references, missing input validation, unsafe deserialization, and bad error handling that leaks info. For each issue: - Where it is and why it's exploitable, in plain terms. - How bad it is (Critical / High / Medium / Low). - The fix, with corrected code. This is for hardening my own app. Don't write actual attack tooling — just show me what to fix and how. Code: