🔍 CVE-2021-47853

8.8
CVSS Score
HIGH
2026-01-21
2026-01-21 18:16
✅ 완료

🇰🇷 한글 설명

phpPgAdmin 7.13.0에 원격 명령어 실행 취약점이 존재하여 인증된 공격자가 SQL 쿼리 조작을 통해 임의의 시스템 명령어를 실행할 수 있다.

💡 쉬운 설명

phpPgAdmin 7.13.0 버전은 원격 명령어 실행 취약점으로 인해 인증된 공격자가 시스템 명령어를 실행할 수 있다. 이는 사용자 인증 후에 발생하며, 공격자는 커스텀 테이블을 생성하고 악성 파일을 업로드하여 COPY FROM PROGRAM 명령어를 사용할 수 있다.

🇺🇸 원문 (English)

phpPgAdmin 7.13.0 contains a remote command execution vulnerability that allows authenticated attackers to execute arbitrary system commands through SQL query manipulation. Attackers can create a custom table, upload a malicious .txt file, and use the COPY FROM PROGRAM command to execute operating system commands with the application's privileges.

📍 영향받는 시스템

phpPgAdmin 7.13.0

⚔️ 공격 벡터

SQL 쿼리 조작을 통해 시스템 명령어 실행

🛡️ 대응 방법

phpPgAdmin을 최신 버전으로 업데이트하거나, COPY FROM PROGRAM 명령어를 사용하지 않도록 설정한다.

🔧 검증 코드

로컬 시스템에서 Python을 사용하여 phpPgAdmin 버전을 확인한다. Python이 설치되어 있어야 하며, phpPgAdmin이 설치된 경로를 알면 해당 경로에서 --version 옵션을 사용하여 버전을 확인할 수 있다.

Shell / Script
import subprocess
result = subprocess.run(['phpPgAdmin', '--version'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
version = result.stdout.decode('utf-8').strip()
if version == '7.13.0':
    print({"result": "취약", "reason": "phpPgAdmin 버전이 7.13.0"})
else:
    print({"result": "양호", "reason": "phpPgAdmin 버전이 7.13.0이 아님"})

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

💻 영향받는 소프트웨어

PHP