🔍 CVE-2025-46820

7.1
CVSS Score
HIGH
2025-05-06
2026-04-15 00:35
✅ 완료

🇰🇷 한글 설명

phpgt/Dom 4.1.8 이전 버전에서 CI 워크플로우 artifact에 GITHUB_TOKEN이 포함되어 인증 토큰이 노출됩니다. 공격자는 워크플로우 완료 전 artifact를 다운로드하여 토큰을 추출 후 악의적 코드 푸시나 릴리스 조작에 악용할 수 있습니다.

💡 쉬운 설명

phpgt/Dom 소프트웨어의 구버전이 빌드 파일에 GitHub의 비밀 인증 토큰을 실수로 포함시킵니다. 공격자가 이 토큰을 빼내서 저장소를 조작할 수 있습니다.

🇺🇸 원문 (English)

phpgt/Dom provides access to modern DOM APIs. Versions of phpgt/Dom prior to 4.1.8 expose the GITHUB_TOKEN in the Dom workflow run artifact. The ci.yml workflow file uses actions/upload-artifact@v4 to upload the build artifact. This artifact is a zip of the current directory, which includes the automatically generated .git/config file containing the run's GITHUB_TOKEN. Seeing as the artifact can be downloaded prior to the end of the workflow, there is a few seconds where an attacker can extract the token from the artifact and use it with the GitHub API to push malicious code or rewrite release commits in your repository. Any downstream user of the repository may be affected, but the token should only be valid for the duration of the workflow run, limiting the time during which exploitation could occur. Version 4.1.8 fixes the issue.

📍 영향받는 시스템

phpgt/Dom < 4.1.8

⚔️ 공격 벡터

workflow artifact 다운로드 후 .git/config 파일에서 GITHUB_TOKEN 추출

🛡️ 대응 방법

phpgt/Dom을 4.1.8 이상으로 즉시 업그레이드

🔧 검증 코드

버전 번호가 4.1.8 이상이면 취약점이 패치되었으므로 안전합니다.

Shell / Script
grep -A 2 '"name": "phpgt/dom"' composer.lock | grep '"version"'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Git