Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2021-40346 — Proof-of-concept for CVE-2021-40346, demonstrating HTTP request smuggling in HAProxy via integer overflow, with Docker-based environment to bypass access controls. | Kitploit
Tools/GitHubGitHub/alexoarga/cve-2021-40346
Vulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPenetration Testing
GitHubalexoarga/cve-2021-40346

CVE-2021-40346

Proof-of-concept for CVE-2021-40346, demonstrating HTTP request smuggling in HAProxy via integer overflow, with Docker-based environment to bypass access controls.

View Repository
4 years agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2021-40346

Integer overflow on header request internal representation allows HTTP request smuggling. This repository presents a PoC built with docker-compose using two docker images: one with a vulnerable version of HaProxy (in this case 2.2.16) and one with a Flask web server using Gunicorn as WSGI. By exploiting the vulnerability we are able to access the /admin page, whose requests are blocked by HaProxy though a user-defined rule.

POC

Requirements

  • Docker 🐳
  • Docker compose 🐳

Environment

  • HaProxy docker container with port 8000 mapped to host.
  • Python docker container with Gunicorn and Flask server with port 5000 open on shared network with the HaProxy container.

Run PoC

Run the followinf commands on terminal to bring up HaProxy docker container and Flask server image:

root@kitploit:~
docker-compose up

Send the payload to HaProxy:

root@kitploit:~
cat payload | nc localhost 8000

In order to bring it down run:

root@kitploit:~
docker-compose down

Author

@alexOarga

Download Tool