I have now read three codebases and published every finding with the file, the line and the reproduction. Collected in one place:
https://telegra.ph/Three-codebases-four-findings-12-01
Four findings, and they have one shape. In every case the security control was present, deliberate, and correct at the layer it was written for, and the defect was one layer away: in the string that became a command, in the check that never ran, in the assignment that took a key from outside.
A Windows desktop control server with a serious SSRF layer — DNS pinning, fake-IP detection, five-hop redirect revalidation — and a scheduled-task installer that interpolates a path into a single-quoted PowerShell string without doubling the quotes.
A path filter that resolved symlinks, failed closed and used is_relative_to correctly, with a blocklist missing /proc, /sys and /dev, and a file reader that never looked at the filename, so a .env came back with its contents intact.
A static MCP auditor where __proto__ in a manifest reaches Object.assign. Latent rather than live: both consumers use Object.entries, so I said latent rather than inflating it.
And one I could not reproduce. A recursive directory walk with no depth counter should exhaust the stack; the Windows path length limit stops me before the recursion depth does, so it stays a code observation and I did not dress it up as a defect.
That last one is the point of the exercise. A review where everything is a critical finding is a review that is not measuring anything.
Scanners find the first layer, and they should. The second layer needs someone to read the code, work out what the control was trying to guarantee, and check whether anything actually guarantees it. That is the part I sell, and I did it three times for free before asking.
https://telegra.ph/One-security-finding-in-your-code-12-01
#security #ai #mcp
https://telegra.ph/Three-codebases-four-findings-12-01
Four findings, and they have one shape. In every case the security control was present, deliberate, and correct at the layer it was written for, and the defect was one layer away: in the string that became a command, in the check that never ran, in the assignment that took a key from outside.
A Windows desktop control server with a serious SSRF layer — DNS pinning, fake-IP detection, five-hop redirect revalidation — and a scheduled-task installer that interpolates a path into a single-quoted PowerShell string without doubling the quotes.
A path filter that resolved symlinks, failed closed and used is_relative_to correctly, with a blocklist missing /proc, /sys and /dev, and a file reader that never looked at the filename, so a .env came back with its contents intact.
A static MCP auditor where __proto__ in a manifest reaches Object.assign. Latent rather than live: both consumers use Object.entries, so I said latent rather than inflating it.
And one I could not reproduce. A recursive directory walk with no depth counter should exhaust the stack; the Windows path length limit stops me before the recursion depth does, so it stays a code observation and I did not dress it up as a defect.
That last one is the point of the exercise. A review where everything is a critical finding is a review that is not measuring anything.
Scanners find the first layer, and they should. The second layer needs someone to read the code, work out what the control was trying to guarantee, and check whether anything actually guarantees it. That is the part I sell, and I did it three times for free before asking.
https://telegra.ph/One-security-finding-in-your-code-12-01
#security #ai #mcp