codeql-queries
codeql-queries copied to clipboard
CSRF validation missing - enhanced rule forked from main CodeQL queries
trafficstars
Improvement from existing cs/web/missing-token-validation rule.
I also don't want to take the same shortcut checking that at least one other HttpPost is validated before flagging those that aren't, since that leads to loads of FNs.
I plan to make one version that is just an update of the original, adding AspNetCore, but this is an attempt to be much more thorough on spotting anti-CSRF devices.
This repo has been merged with the Security Lab one into the new community-codeql-packs repo which we plan to make public and promote soon. If you would like this PR to be applied to the new repo, please open a new PR there so it can get merged in the new QLPacks.