Earlier quoted context omitted.
There are no effective static source code security analyzers. Static analyzers aren't a bad thing to add to a CI pipeline, because why not, but anyone depending on static analysis is playing to lose. This is absolutely not the kind of vulnerability that pentests tend to miss; rather, they're the first thing pentesters check for. You can miss bugs like this when they're in obscure backend features and your client or t…
> This is absolutely not the kind of vulnerability that pentests tend to miss You're right; they don't. Which is why I called out automated dynamic analysis. I.e. the web scanning tools which you subsequently mentioned: > Web scanning tools will miss findings like this. --- > As for code review: a competently constructed application shouldn't be relying on developers to catch every possible instance where numeric ids…
A sibling comment makes the obvious point that no pre-auth endpoint should be touching this kind of data to begin with, which is another layer of "stuff you can just regex for".