phpcs-security-audit
phpcs-security-audit copied to clipboard
phpcs-security-audit is a set of PHP_CodeSniffer rules that finds vulnerabilities and weaknesses related to security in PHP code
I get phpcs: PHPCS_SecurityAudit.BadFunctions.FilesystemFunctions.WarnFilesystem: Filesystem function file_put_contents() detected with dynamic parameter with this: file_put_contents('test.txt', 1, FILE_APPEND); So FILE_APPEND is a dynamic parameter? If its the content or filename, i would...
Hi! Is it ok that the ruleset complains about every `array_filter`, `array_map`, `array_reduce` call? What's wrong with functions supporting callbacks when those callbacks are explicitly passed as closures?
The following code fails to scan due to line 6 (use function usort). ````php
From a fresh build of Ubuntu 20 LTS with 7.4, running `composer install` after cloning produces: ``` Loading composer repositories with package information Updating dependencies Your requirements could not be...
Variables, constants and function calls are not included in the report if concatenated with something which has already been included. Is there any way to override this behaviour other than...
The DealerDirect Composer plugin has just released version `0.7.0`. This new version includes support for Composer 2.0.0 (upcoming) and allows for installation of the plugin in combination with PHP 8...
Hello. It is possible, to update security rules? I found in the example_base_ruleset.xml two rules: ``` ``` Could you update or send any recommendations - how to update? :) Only...
PHP 8.0 has been branched off two months ago, so `nightly` is now PHP 8.1 and in the mean time PHP 8.0 was released last week. As of today, there...
Anyone installing phpcs-security-audit via Composer now gets warnings like this: > Deprecation Notice: Class PHPCS_SecurityAudit\Sniffs\Drupal8\CVE20132110Sniff located in ./vendor/pheromone/phpcs-security-audit/Security/Sniffs/CVE/20132110Sniff.php does not comply with psr-4 autoloading standard. It will not autoload anymore...