🇰🇷 한글 설명
Glances 4.5.4 미만 버전의 IP 플러그인에서 public_api 설정 매개변수의 검증 미흡으로 인한 SSRF 취약점이 존재합니다. 공격자가 설정을 수정할 수 있다면 임의의 내부 또는 외부 엔드포인트로 요청을 강제할 수 있으며, 설정된 인증 정보가 공격자 서버로 유출될 수 있습니다.
💡 쉬운 설명
프로그램 설정값에 잘못된 주소를 입력하여 프로그램이 공격자가 원하는 곳으로 몰래 접속하게 만드는 보안 약점입니다. 이 과정에서 사용자의 아이디와 비밀번호 같은 중요한 정보가 공격자에게 전달될 위험이 있습니다.
🇺🇸 원문 (English)
Glances is an open-source system cross-platform monitoring tool. Prior to version 4.5.4, a Server-Side Request Forgery (SSRF) vulnerability exists in the Glances IP plugin due to improper validation of the public_api configuration parameter. The value of public_api is used directly in outbound HTTP requests without any scheme restriction or hostname/IP validation. An attacker who can modify the Glances configuration can force the application to send requests to arbitrary internal or external endpoints. Additionally, when public_username and public_password are set, Glances automatically includes these credentials in the Authorization: Basic header, resulting in credential leakage to attacker-controlled servers. This vulnerability can be exploited to access internal network services, retrieve sensitive data from cloud metadata endpoints, and/or exfiltrate credentials via outbound HTTP requests. The issue arises because public_api is passed directly to the HTTP client (urlopen_auth) without validation, allowing unrestricted outbound connections and unintended disclosure of sensitive information. Version 4.5.4 contains a patch.
📍 영향받는 시스템
Glances version 4.5.4 미만
⚔️ 공격 벡터
Glances 설정 파일 내 public_api 매개변수를 조작하여 임의의 HTTP 요청을 발생시킴
🛡️ 대응 방법
Glances를 최신 패치 버전인 4.5.4 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 버전 번호가 4.5.4보다 낮으면 취약한 상태입니다.
pip show glances | grep Version