🇰🇷 한글 설명
rfc3161-client 라이브러리의 타임스탬프 응답(TSR) 서명 검증에 결함이 있어, 공격자가 신뢰할 수 있는 CA 체인에 연결된 임의의 타임스탬프 서명을 삽입할 수 있습니다. 버전 1.0.3 이전에서 타임스탬프 응답 자체의 서명을 리프 인증서와 검증하지 않아 불충분한 서명 검증이 발생하며, 시간 증명 메커니즘을 우회하여 위조된 타임스탬프 사용이 가능합니다.
💡 쉬운 설명
rfc3161-client 라이브러리가 타임스탬프 서명을 제대로 확인하지 않아 위조된 시간 증명을 받아들일 수 있습니다. 공격자는 이를 악용하여 거짓 타임스탬프를 주입하고 신뢰성을 검증하는 메커니즘을 우회할 수 있습니다.
🇺🇸 원문 (English)
rfc3161-client is a Python library implementing the Time-Stamp Protocol (TSP) described in RFC 3161. Prior to version 1.0.3, there is a flaw in the timestamp response signature verification logic. In particular, chain verification is performed against the TSR's embedded certificates up to the trusted root(s), but fails to verify the TSR's own signature against the timestamping leaf certificates. Consequently, vulnerable versions perform insufficient signature validation to properly consider a TSR verified, as the attacker can introduce any TSR signature so long as the embedded leaf chains up to some root TSA. This issue has been patched in version 1.0.3. There is no workaround for this issue.
📍 영향받는 시스템
rfc3161-client < 1.0.3
⚔️ 공격 벡터
공격자가 악의적 타임스탬프 응답(TSR)을 생성하여 검증 로직을 우회하고 신뢰할 수 있는 것처럼 보이게 주입
🛡️ 대응 방법
rfc3161-client를 1.0.3 이상으로 업그레이드
🔧 검증 코드
Version 필드에 1.0.3 이상이 표시되면 패치됨, 1.0.3 미만 또는 명령어 실행 불가하면 취약함
pip show rfc3161-client 2>/dev/null | grep Version