🇰🇷 한글 설명
Portainer Community Edition의 Custom Template 파일 엔드포인트에서 권한 검증이 누락되어 발생하는 취약점입니다. 인증된 사용자가 순차적인 정수 ID를 열거함으로써 다른 사용자의 커스텀 템플릿 파일 내용을 읽을 수 있으며, 이를 통해 API 토큰이나 연결 문자열 같은 민감한 정보가 노출될 수 있습니다.
💡 쉬운 설명
로그인한 사용자라면 누구나 다른 사람이 만든 설정 파일을 몰래 훔쳐볼 수 있는 보안 구멍이 발견되었습니다. 이 파일 안에는 시스템 접속에 필요한 비밀번호나 중요한 열쇠 정보가 들어있을 수 있어 위험합니다.
🇺🇸 원문 (English)
Portainer Community Edition is a lightweight service delivery platform for containerized applications that can be used to manage Docker, Swarm, Kubernetes and ACI environments. From 2.33.0 to before 2.33.8 and 2.39.1, a missing authorization vulnerability in the Custom Template file endpoint (GET /api/custom_templates/{id}/file) allows any authenticated user to read the file content of any custom template by enumerating sequential integer IDs, bypassing Resource Control access restrictions. Template files may contain environment-specific values such as connection strings, API tokens, or registry credentials that administrators would not expect standard users to read. This vulnerability is fixed in 2.33.8 and 2.39.1.
📍 영향받는 시스템
Portainer Community Edition 2.33.0 ~ 2.33.7 및 2.39.0 이전 버전
⚔️ 공격 벡터
인증된 사용자가 API 엔드포인트의 ID 값을 순차적으로 변경(Enumeration)하여 접근
🛡️ 대응 방법
Portainer를 2.33.8 또는 2.39.1 이상의 최신 버전으로 업데이트하십시오.
🔧 검증 코드
명령어 결과에 취약한 버전 범위가 나타나면 해당 버전이 설치되어 있음을 의미합니다.
curl -s http://<PORTAINER_IP>:9000/api/version | grep -E '"version": "(2\.33\.[0-7]|2\.39\.[0])"'