← PHP / Laravel 목차

PHP-076 / 중급

로그에 전체 요청(Input::all) 기록 — 비밀번호 포함

A09:2021 Security Logging and Monitoring Failures · CWE-532 Sensitive Info in Log

왜 문제가 될까요?

로그 수집 시스템 접근자가 비밀번호를 본다.

이렇게 수정하세요

php
Log::debug('request', $request->except(['password', 'password_confirmation', 'token']));

더 읽기