🇰🇷 한글 설명
lakeFS의 Web UI가 저장소 객체의 마크다운 파일을 렌더링할 때 HTML을 적절히 정제하지 않아 발생하는 취약점입니다. 쓰기 권한이 있는 사용자가 악성 HTML/JavaScript가 포함된 .md 파일을 커밋하면, 해당 파일을 열람하는 다른 사용자의 세션에서 공격자의 스크립트가 실행될 수 있습니다.
💡 쉬운 설명
해커가 저장소에 가짜 설명 파일을 올려두면, 다른 사용자가 그 파일을 클릭하는 순간 해커가 심어놓은 악성 코드가 실행됩니다. 이를 통해 사용자의 권한을 탈취하거나 정보를 훔칠 수 있습니다.
🇺🇸 원문 (English)
lakeFS is an open-source tool that transforms object storage into a Git-like repositories. Prior to version 1.81.1 of the open source edition and 1.84.0 of the enterprise edition, lakeFS Web UI renders markdown files from repository objects without sanitizing the resulting HTML. A user with write access to any repository branch can commit a `.md` object containing arbitrary HTML/JavaScript. Any other user who opens that object, or who navigates to a repository or directory containing a malicious `README.md`, executes the attacker-supplied script in their own authenticated session. lakeFS fixes the issue in v1.81.1 and lakeFS Enterprise fixes the issue in in v1.84.0. Enterprise customers using older versions can temporarily disable Markdown rendering by adding YAML to their config. No workaround exists for OSS release. Users are advised to upgrade to the latest version for both lakeFS and lakeFS-Enterprise.
📍 영향받는 시스템
lakeFS Open Source (v1.81.1 미만), lakeFS Enterprise (v1.84.0 미만)
⚔️ 공격 벡터
악성 스크립트가 포함된 마크다운(.md) 파일을 저장소에 커밋하여 다른 사용자의 브라우저에서 실행 유도
🛡️ 대응 방법
lakeFS Open Source는 v1.81.1 이상으로, Enterprise 버전은 v1.84.0 이상으로 즉시 업그레이드
🔧 검증 코드
출력된 버전 정보가 취약한 버전 범위(OSS < 1.81.1 또는 Enterprise < 1.84.0)에 해당하는지 확인
curl -s http://<lakefs-endpoint>/api/v1/version | grep -E 'version'