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

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

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

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

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
CVE-2021-31166 — CVE-2021-31166에 대한 개념 증명, 원격으로 트리거되는 HTTP.sys use-after-free. | Kitploit
도구/GitHubGitHub/0vercl0k/cve-2021-31166
Vulnerability AnalysisExploitationWeb SecurityRemote Access ToolBinary ExploitationArchived
GitHub0vercl0k/cve-2021-31166

CVE-2021-31166

CVE-2021-31166에 대한 개념 증명, 원격으로 트리거되는 HTTP.sys use-after-free.

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

인기

모두 보기 →

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

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →
공유

CVE-2021-31166: HTTP 프로토콜 스택 원격 코드 실행 취약점

이것은 CVE-2021-31166 ("HTTP 프로토콜 스택 원격 코드 실행 취약점")의 개념 증명으로, 2021년 5월 Microsoft가 패치한 http.sys의 use-after-free 역참조 취약점입니다. 이 트윗에 따르면 취약점은 @_mxms와 @fzzyhd1에 의해 발견되었습니다.

trigger

버그 자체는 http!UlpParseContentCoding에서 발생하며, 함수는 로컬 LIST_ENTRY를 가지고 여기에 항목을 추가합니다. 작업이 완료되면 이를 Request 구조체로 옮깁니다. 그러나 로컬 리스트를 NULL로 설정하지 않습니다. 문제는 공격자가 로컬 리스트의 모든 항목을 해제하는 코드 경로를 트리거할 수 있다는 점이며, 이로 인해 Request 객체에 항목이 남아있게 됩니다.

rel04vsrel05

다음은 버그체크입니다:

root@kitploit:~
KDTARGET: Refreshing KD connection

*** Fatal System Error: 0x00000139
                       (0x0000000000000003,0xFFFFF90EA867EE40,0xFFFFF90EA867ED98,0x0000000000000000)

Break instruction exception - code 80000003 (first chance)

A fatal system error has occurred.
Debugger entered on first try; Bugcheck callbacks have not been invoked.

A fatal system error has occurred.

nt!DbgBreakPointWithStatus:
fffff804`19410c50 cc              int     3

kd> kp
 # Child-SP          RetAddr               Call Site
00 fffff90e`a867e368 fffff804`19525382     nt!DbgBreakPointWithStatus
01 fffff90e`a867e370 fffff804`19524966     nt!KiBugCheckDebugBreak+0x12
02 fffff90e`a867e3d0 fffff804`19408eb7     nt!KeBugCheck2+0x946
03 fffff90e`a867eae0 fffff804`1941ad69     nt!KeBugCheckEx+0x107
04 fffff90e`a867eb20 fffff804`1941b190     nt!KiBugCheckDispatch+0x69
05 fffff90e`a867ec60 fffff804`19419523     nt!KiFastFailDispatch+0xd0
06 fffff90e`a867ee40 fffff804`1db3f677     nt!KiRaiseSecurityCheckFailure+0x323
07 fffff90e`a867efd0 fffff804`1daf6c05     HTTP!UlFreeUnknownCodingList+0x63
08 fffff90e`a867f000 fffff804`1dacd201     HTTP!UlpParseAcceptEncoding+0x299c5
09 fffff90e`a867f0f0 fffff804`1daa93d8     HTTP!UlAcceptEncodingHeaderHandler+0x51
0a fffff90e`a867f140 fffff804`1daa8ab7     HTTP!UlParseHeader+0x218
0b fffff90e`a867f240 fffff804`1da04c5f     HTTP!UlParseHttp+0xac7
0c fffff90e`a867f3a0 fffff804`1da0490a     HTTP!UlpParseNextRequest+0x1ff
0d fffff90e`a867f4a0 fffff804`1daa48c2     HTTP!UlpHandleRequest+0x1aa
0e fffff90e`a867f540 fffff804`1932ae85     HTTP!UlpThreadPoolWorker+0x112
0f fffff90e`a867f5d0 fffff804`19410408     nt!PspSystemThreadStartup+0x55
10 fffff90e`a867f620 00000000`00000000     nt!KiStartSystemThread+0x28

kd> !analyze -v
[...]
*******************************************************************************
*                                                                             *
*                        Bugcheck Analysis                                    *
*                                                                             *
*******************************************************************************

KERNEL_SECURITY_CHECK_FAILURE (139)
A kernel component has corrupted a critical data structure.  The corruption
could potentially allow a malicious user to gain control of this machine.
Arguments:
Arg1: 0000000000000003, A LIST_ENTRY has been corrupted (i.e. double remove).
Arg2: fffff90ea867ee40, Address of the trap frame for the exception that caused the BugCheck
Arg3: fffff90ea867ed98, Address of the exception record for the exception that caused the BugCheck
Arg4: 0000000000000000, Reserved

자주 묻는 질문

Q: Windows Remote Management (WinRM)이 영향을 받나요?

예 (실험 결과를 공유해 주신 @JimDinMN 님께 감사드립니다: 트윗).

Q: Web Services on Devices (WSDAPI)가 영향을 받나요?

예 (결과를 공유해 주신 @HenkPoley 님께 감사드립니다: 트윗).

Q: 영향을 받는 Windows 버전은 무엇인가요?

Microsoft 문서에 따르면 영향을 받는 플랫폼은 다음과 같습니다:

  • Windows Server, 버전 2004 (또는 20H1) (Server Core 설치),
  • Windows 10 버전 2004 (또는 20H1) (ARM64/x64/32비트 시스템),
  • Windows Server, 버전 20H2 (Server Core 설치),
  • Windows 10 버전 20H2 (ARM64/x64/32비트 시스템).
도구 다운로드