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
脆弱性分析エクスプロイトウェブセキュリティリモートアクセスツールバイナリエクスプロイトArchived
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, version 2004 (or 20H1) (Server Core インストール),
  • Windows 10 Version 2004 (or 20H1) (ARM64/x64/32ビット システム用),
  • Windows Server, version 20H2 (Server Core インストール),
  • Windows 10 Version 20H2 (ARM64/x64/32ビット システム用).
ツールをダウンロード