Timing Attack이란?
비밀번호 비교 시 일치 시점까지 걸린 시간으로 부분 정보를 추론한다.
방어
상수 시간 비교 사용. Node의 crypto.timingSafeEqual, Python의 hmac.compare_digest.
코드 실행 시간 차이로 비밀 정보를 유출시키는 사이드 채널 공격.
비밀번호 비교 시 일치 시점까지 걸린 시간으로 부분 정보를 추론한다.
상수 시간 비교 사용. Node의 crypto.timingSafeEqual, Python의 hmac.compare_digest.