Skip to content
Unverified Commit 3d2600b0 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Add Phan plugin to check for SQL injections



This adds a phan plugin which checks for SQL injections on code using our QueryBuilder, while it isn't perfect it should already catch most potential issues.

As always, static analysis will sometimes have false positives and this is also here the case. So in some cases the analyzer just doesn't know if something is potential user input or not, thus I had to add some `@suppress SqlInjectionChecker` in front of those potential injections.

The Phan plugin hasn't the most awesome code but it works and I also added a file with test cases.

Signed-off-by: default avatarLukas Reschke <lukas@statuscode.ch>
parent 4826fd70
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment