🇰🇷 한글 설명
postgresql-operator charm의 postgres_exporter가 데이터베이스 연결 오류 발생 시 모니터링용 PostgreSQL 사용자의 비밀번호를 로그에 평문으로 기록하는 취약점입니다. 로그를 읽을 수 있는 공격자는 이 비밀번호를 탈취하여 PostgreSQL에 대한 읽기 전용(pg_monitor) 권한을 획득할 수 있습니다.
💡 쉬운 설명
데이터베이스 상태를 감시하는 프로그램이 오류가 나면 비밀번호를 암호화하지 않고 그대로 기록해버리는 문제입니다. 로그 파일을 볼 수 있는 사람이라면 누구나 이 비밀번호를 훔쳐서 데이터베이스 내부를 들여다볼 수 있습니다.
🇺🇸 원문 (English)
The postgresql-operator charm runs a Prometheus postgres_exporter to collect database metrics using a dedicated "monitoring" PostgreSQL user. On database connection errors, the exporter writes the monitoring user's password in cleartext to its logs. Any actor able to read those logs can recover the password, which grants read-only pg_monitor access to PostgreSQL. This is fixed in the dev track (14/edge) in revisions 1189 (arm64) and 1190 (amd64), and in the stable track (14/stable) in revisions 1216 (arm64) and 1217 (amd64).
📍 영향받는 시스템
postgresql-operator charm (dev track 14/edge revision 1189/1190, stable track 14/stable revision 1216/1217 미만 버전)
⚔️ 공격 벡터
시스템 로그 파일에 접근하여 평문으로 노출된 모니터링 계정의 비밀번호를 탈취
🛡️ 대응 방법
해당 취약점이 수정된 최신 리비전(dev track 1189/1190 이상 또는 stable track 1216/1217 이상)으로 업데이트
🔧 검증 코드
juju status 결과에서 postgresql-operator charm의 현재 revision 번호가 수정된 버전보다 낮은지 확인
juju status --format=json | grep -E 'postgresql-operator|revision'