← PHP / Laravel · 目次

PHP-074 / 上級

ロックファイルなしのデプロイ、依存関係混同攻撃

A08:2021 Software and Data Integrity Failures · CWE-494 Download of Code Without Integrity Check

なぜ問題になるのか?

ビルドごとに異なるバージョンや内部パッケージと同名の公開パッケージがインストールされます。

修正方法

bash
# composer.lock をコミットし、プライベートリポジトリを優先設定、CI で composer audit を実行

参考資料