🇰🇷 한글 설명
Perl용 Google::Auth 0.09 미만 버전에서 인증용 JSON 파일에 포함된 검증되지 않은 URL을 통해 서버 측 요청 위조(SSRF) 및 자격 증명 탈취가 발생할 수 있습니다. 공격자는 조작된 URL을 통해 내부 서비스나 메타데이터 엔드포인트에 접근하여 민감한 인증 정보를 외부로 유출할 수 있습니다.
💡 쉬운 설명
인증 정보를 읽어올 때 주소가 안전한지 확인하지 않아, 해커가 만든 가짜 주소로 인증 정보를 대신 보내게 만드는 취약점입니다. 이 과정에서 서버의 중요한 비밀번호나 권한이 해커에게 넘어갈 수 있습니다.
🇺🇸 원문 (English)
Google::Auth versions before 0.09 for Perl allow server side request forgery and credential exfiltration via unvalidated URLs taken from the credentials JSON.
The URLs the library requests are read from the credentials JSON, and their hosts were not checked against the universe domain before the request. For an external_account configuration, retrieve_subject_token fetched credential_source.url with headers from the same JSON, and fetch_access_token posted the subject token to token_url, then sent the STS access token it received to service_account_impersonation_url in an Authorization: Bearer header. The authorized_user, impersonated_service_account and service_account configurations posted the client secret and refresh token, the source access token, and a signed JWT assertion to their own JSON-supplied token_uri or impersonation URL.
Any caller that builds credentials from a configuration it does not fully control issues those requests from the application's network position, reaching hosts the configuration names, including internal services and link-local metadata endpoints, and hands them the credentials each request carries. The service_account assertion is bound to aud, so it is not replayable against Google.
Version 0.06 added a _validate_url host check to the external_account class, keyed on a universe_domain read from the same credentials JSON. Version 0.07 gated a JSON-supplied universe domain behind GOOGLE_EXTERNAL_ACCOUNT_ALLOW_CUSTOM_UNIVERSES=1, deriving the pin flag from arguments that an earlier BUILDARGS pass had already merged on the make_creds path. Version 0.08 passed the pin decision through as an explicit constructor argument and moved _validate_url to Google::Auth::Credentials, adding the call to UserRefreshCredentials and ImpersonatedServiceAccountCredentials, and 0.09 added it to ServiceAccountCredentials.
📍 영향받는 시스템
Perl Google::Auth versions before 0.09
⚔️ 공격 벡터
조작된 credentials JSON 파일을 사용하여 인증 과정 중 임의의 외부 또는 내부 URL로 요청을 유도함
🛡️ 대응 방법
Google::Auth 라이브러리를 0.09 버전 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 버전 번호가 0.09보다 낮으면 취약한 상태입니다.
perl -MGoogle::Auth -e 'print $Google::Auth::VERSION . "\n"' 2>/dev/null
📊 CVSS Vector String
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
💻 영향받는 소프트웨어
IBM WebSphere Application Server