CakePHP3 composer管理パッケージの脆弱性チェックツール(security-checker)のご紹介です。
「security-checker」は、既知の脆弱性を含んだパッケージを利用していないかを簡単にチェックできます。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | //// 使用例 // チェック対象のCakeディレクトリTOPに移動 # cd /var/www/cakephp3.com // 脆弱性チェックツールダウンロード(composerでインストールも可) # wget https://get.sensiolabs.org/security-checker.phar // 脆弱性チェック実行(composer.lockファイル指定) # php security-checker.phar security:check ./composer.lock ★★★★ 脆弱性ある場合 ★★★★ Symfony Security Check Report ============================= 2 packages have known vulnerabilities. cakephp/cakephp (3.5.13) ------------------------ * [CVE-NONE-0001][]: XSS in some development error pages zendframework/zend-diactoros (1.7.1) ------------------------------------ * [CVE-NONE-0002][]: URL Rewrite vulnerability [CVE-NONE-0001]: https://bakery.cakephp.org/2018/05/20/cakephp_364_3517_3414_released.html [CVE-NONE-0002]: https://framework.zend.com/security/advisory/ZF2018-01 Note that this checker can only detect vulnerabilities that are referenced in the SensioLabs security advisories database. Execute this command regularly to check the newly discovered vulnerabilities. ★★★★ 脆弱性ない場合 ★★★★ Symfony Security Check Report ============================= No packages have known vulnerabilities. |