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

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

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

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

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
pgAdminOpendoor — CVE-2025-2945용 익스플로잇 및 테스트 스탠드 | Kitploit
도구/GitHubGitHub/i3r1h0n/pgadminopendoor
Vulnerability AnalysisCode AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & Education
GitHubi3r1h0n/pgadminopendoor

pgAdminOpendoor

CVE-2025-2945용 익스플로잇 및 테스트 스탠드

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

인기

모두 보기 →

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

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →
공유

pgAdminOpendoor (CVE-2025-2945)

개요

이것은 CVE-2025-2945에 대한 제 연구입니다. 이 저장소에는 postgress와 취약한 pgadmin이 포함된 테스트 스탠드와 익스플로잇이 포함되어 있습니다.

CVE

유용한 링크:

  • NVD 세부 정보
  • WIZ 분석
  • Metasploit

분석

Python으로 작성된 pgAdmin 백엔드에는 적절한 입력 검증이 부족한 두 개의 엔드포인트가 있습니다. 엔드포인트는 다음과 같습니다:

  • /sqleditor/query_tool/download - query_commited 매개변수
  • /cloud/deploy - high_availability 매개변수

sqleditor의 코드를 살펴보겠습니다:

root@kitploit:~
for key, value in data.items():
    if key == 'query':
        sql = value
    if key == 'query_commited':
        query_commited = (
            eval(value) if isinstance(value, str) else value
        )

여기서 볼 수 있듯이 query_commited의 값이 eval() 함수에 직접 전달됩니다. eval 문서를 참조하세요.

pgacloud의 코드도 살펴보세요:

root@kitploit:~
def _create_google_postgresql_instance(self, args):
    credentials = self._get_credentials(self._scopes)
    service = discovery.build('sqladmin', 'v1beta4',
                              credentials=credentials)
    high_availability = \
        'REGIONAL' if eval(args.high_availability) else 'ZONAL'

여기도 같은 문제입니다.

여전히 이러한 엔드포인트에 접근하려면 유효한 자격 증명과 pgadmin에 대한 액세스 권한이 필요합니다. 그러나 액세스 권한이 있는 공격자는 eval에 임의의 값을 전달할 수 있습니다. 이는 임의의 Python 원라이너를 실행하는 것과 같습니다.

익스플로잇

익스플로잇은 매우 간단합니다. exploit/src/main.py를 참조하세요. 리버스 셸을 얻으려면 config를 업데이트하는 것을 잊지 마세요.

스탠드 설정

스탠드를 설정하려면 다음을 실행하세요:

root@kitploit:~
cd stand
docker compose up -d

그게 전부입니다. 이제 pgAdmin은 http://localhost:8080에서 접근할 수 있습니다. 기본 자격 증명은 다음과 같습니다:

root@kitploit:~
[email protected]
admin

.env 파일과 stand/init-db/01-init.sql을 자유롭게 편집하세요.


prod by I3r1h0n.

도구 다운로드