🇰🇷 한글 설명
Perl용 Dancer2::Plugin::Auth::OAuth::Provider 0.23 미만 버전은 OAuth 2.0의 state 파라미터를 지원하지 않습니다. 이로 인해 인증 콜백이 세션과 결합되지 않아 로그인 CSRF 공격에 노출될 수 있으며, 공격자가 피해자의 세션에 자신의 계정을 연결할 수 있습니다.
💡 쉬운 설명
로그인 과정에서 본인이 요청한 것이 맞는지 확인하는 보안 장치가 빠져 있는 상태입니다. 공격자가 만든 로그인 링크를 피해자가 클릭하면, 피해자의 계정이 공격자의 소셜 계정과 연결되어 계정을 탈취당할 수 있습니다.
🇺🇸 원문 (English)
Dancer2::Plugin::Auth::OAuth::Provider versions before 0.23 for Perl do not support the OAuth 2.0 state parameter.
The authentication_url method builds the provider authorization redirect without issuing a state value, and the callback method exchanges the callback code and registers the resulting token into the session without verifying that the callback corresponds to an authorization request this session initiated.
Any application that uses this plugin for OAuth 2.0 login is exposed to login cross-site request forgery: because the callback is not bound to the session that began the flow, an attacker who starts an authorization with their own provider account can deliver the resulting callback to a victim, causing the victim's session to complete the attacker's authorization and associating the attacker's provider identity and access token with that session. Where the application persists this as an account link, the attacker may retain access to the victim's account through their own provider credentials.
📍 영향받는 시스템
Dancer2::Plugin::Auth::OAuth::Provider versions before 0.23
⚔️ 공격 벡터
공격자가 자신의 OAuth 인증 코드를 피해자의 세션으로 전달하여 계정을 강제로 연결하는 CSRF 공격
🛡️ 대응 방법
Dancer2::Plugin::Auth::OAuth::Provider를 0.23 이상의 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 버전 번호가 0.23 미만이면 취약한 상태입니다.
perl -MDancer2::Plugin::Auth::OAuth::Provider -e 'print $Dancer2::Plugin::Auth::OAuth::Provider::VERSION . "\n"'
📊 CVSS Vector String
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
💻 영향받는 소프트웨어
IBM Security Verify Access