🇰🇷 한글 설명
공격자가 특수하게 제작된 디렉토리 트리를 Visual Studio Code의 작업 영역으로 열도록 유도하면, CodeQL 확장이 활성화된 상태에서 임의의 코드가 실행될 수 있습니다. 이 취약점은 확장의 1.0.1 버전에서 수정되었습니다. 사용자는 VS Code 마켓플레이스를 통해 해당 버전으로 업그레이드해야 합니다.
💡 쉬운 설명
해커가 만든 폴더를 VS Code로 열기만 해도 컴퓨터에 몰래 나쁜 프로그램이 실행될 수 있는 보안 약점입니다. CodeQL이라는 확장 프로그램을 사용하는 경우에 발생하며, 최신 버전으로 업데이트하면 해결됩니다.
🇺🇸 원문 (English)
If an attacker can get a user to open a specially prepared directory tree as a workspace in Visual Studio Code with the CodeQL extension active, arbitrary code of the attacker's choosing may be executed on the user's behalf. This is fixed in version 1.0.1 of the extension. Users should upgrade to this version using Visual Studio Code Marketplace's upgrade mechanism. After upgrading, the codeQL.cli.executablePath setting can only be set in the per-user settings, and not in the per-workspace settings. More information about VS Code settings can be found here.
📍 영향받는 시스템
Visual Studio Code CodeQL extension (version 1.0.1 미만)
⚔️ 공격 벡터
사용자가 악의적으로 조작된 디렉토리 구조를 VS Code 작업 영역으로 여는 사회 공학적 공격
🛡️ 대응 방법
CodeQL 확장을 1.0.1 버전 이상으로 업데이트하고, codeQL.cli.executablePath 설정을 사용자 설정(per-user settings)으로 관리
🔧 검증 코드
설치된 확장 목록에서 codeql을 확인하고, 설치된 버전이 1.0.1 이상인지 확인하십시오.
code --list-extensions | grep codeql && code --list-extensions | xargs code --extension-id | grep codeql | xargs -I {} code --list-extensions | grep -E 'codeql'