🔍 CVE-2026-78655

9.1
CVSS Score
CRITICAL
2026-08-25
2026-08-26 20:18
✅ 완료

🇰🇷 한글 설명

Perl용 Punk::Plugin::TOTP 0.05 미만 버전에서 세션 쿠키 재전송을 통해 2단계 인증(2FA) 시도 횟수 제한을 초기화할 수 있는 취약점이 존재합니다. 서버 측 세션 저장소를 사용하지 않을 경우, 공격자는 이전 세션 쿠키를 재사용하여 실패 횟수 카운트를 우회하고 무차별 대입 공격을 지속할 수 있습니다.

💡 쉬운 설명

2단계 인증을 여러 번 틀리면 접속이 차단되어야 하는데, 공격자가 예전 쿠키를 다시 사용하면 차단 횟수가 초기화되는 문제입니다. 이로 인해 공격자는 비밀번호를 맞출 때까지 계속해서 인증 번호를 입력해 볼 수 있습니다.

🇺🇸 원문 (English)

Punk::Plugin::TOTP versions before 0.05 for Perl allow the second-factor attempt limit to be reset by replaying an earlier session cookie because the challenge route counts failures in the session. The POST handler on challenge_path keeps the failure count as tries inside the totp_pending record in the session, raising it on each rejected code and deleting the pending record once it reaches attempts, five by default. Punk::Session carries the session in a signed cookie unless the application declares a store, and keeps no server-side record, so an earlier value of the same session stays valid until the expiry stamped inside it. A client that saves the cookie before its failed attempts and presents it again gets the pending record back with its counter, and the limit never fires. The replayed record is accepted while its own expiry, pending_ttl seconds from the challenge and 300 by default, has not passed. Sessions declared with a store are not affected: the pending record and its counter then live server-side. The attempt limit does not bound guessing of the second factor, which is left to the per-address rate limit the plugin registers on the same path, 30 requests per 60 seconds.

📍 영향받는 시스템

Punk::Plugin::TOTP versions before 0.05 (Perl)

⚔️ 공격 벡터

실패 횟수가 기록되기 전의 세션 쿠키를 저장한 뒤, 인증 실패 시 해당 쿠키를 재전송하여 시도 횟수 제한을 우회함

🛡️ 대응 방법

Punk::Plugin::TOTP를 0.05 이상 버전으로 업데이트하거나, 서버 측 세션 저장소(Session Store)를 사용하도록 설정함

🔧 검증 코드

출력된 버전이 0.05 미만인 경우 해당 취약점에 노출된 상태입니다.

Shell / Script
gem list punk-plugin-totp 2>/dev/null | grep -E 'punk-plugin-totp'

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

💻 영향받는 소프트웨어

IBM WebSphere Application Server