nextcloud/lib/private/Security
Lukas Reschke 3d2600b039
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: Lukas Reschke <lukas@statuscode.ch>
2017-07-20 22:48:13 +02:00
..
Bruteforce Add Phan plugin to check for SQL injections 2017-07-20 22:48:13 +02:00
CSP Safari CSPv3 support is sub-par 2016-12-14 13:17:20 +01:00
CSRF Fix missing update of session, when it was already used. 2016-11-02 20:30:36 +01:00
IdentityProof Automatic creation of Identity manager 2017-05-10 09:45:11 +02:00
Normalizer Add support for ratelimiting via annotations 2017-04-13 12:00:16 +02:00
RateLimiting Remove expired attempts 2017-04-13 12:00:18 +02:00
Certificate.php Update with robin 2016-07-21 18:13:58 +02:00
CertificateManager.php Write cert bundle to tmp file first 2017-07-12 19:24:20 +02:00
CredentialsManager.php Remove unused use statements 2017-04-22 19:23:31 -05:00
Crypto.php Fix others 2016-07-21 18:13:57 +02:00
Hasher.php Fix others 2016-07-21 18:13:57 +02:00
SecureRandom.php Remove unused use statements 2017-04-22 19:23:31 -05:00
TrustedDomainHelper.php Fix others 2016-07-21 18:13:57 +02:00