This is a proof of concept for CVE-2021-31166 ("HTTP Protocol Stack Remote Code Execution Vulnerability"), a use-after-free dereference in http.sys patched by Microsoft in May 2021. The bug itself happens in http!UlpParseContentCoding where the function has a local LIST_ENTRY and appends an item to it. When it's done, it moves it into the Request structure; but it doesn't NULL out the local list. The issue with that is that an attacker can trigger a code-path that frees every entry of the local list leaving them dangling in the Request object.

Features

  • HTTP Protocol Stack Remote Code Execution Vulnerability
  • Use-after-free dereference in http.sys patched by Microsoft in May 2021
  • Bugcheck defined
  • Remote HTTP.sys use-after-free triggered remotely

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow CVE-2021-31166

CVE-2021-31166 Web Site

You Might Also Like
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of CVE-2021-31166!

Additional Project Details

Programming Language

Python

Related Categories

Python HTTP Servers, Python HTTP Clients

Registered

2023-05-18