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-23113-test-env | Kitploit
Tools/GitHubGitHub/mavrick-1/cve-2024-23113-test-env
Vulnerability ScannersVulnerability AnalysisWeb SecurityPenetration TestingLearning & EducationLabs & Practice
GitHubmavrick-1/cve-2024-23113-test-env

cve-2024-23113-test-env

View Repository
11 year 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-2024-23113 FortiOS Test Environment

A Docker-based test environment for validating CVE-2024-23113 Nuclei templates against simulated vulnerable FortiOS instances.

🔍 Overview

This environment simulates vulnerable FortiOS HTTP interfaces to test the detection capabilities of CVE-2024-23113 Nuclei templates. It provides realistic FortiOS responses including login pages, API endpoints, and proper version information.

🚀 Quick Start

Prerequisites

  • Docker
  • Docker Compose
  • Nuclei (for testing)

Basic Setup

  1. Clone and build:
root@kitploit:~
git clone <this-repository>
cd cve-2024-23113-test-env
docker-compose up -d
  1. Verify the environment:
root@kitploit:~
curl http://localhost:8080/
  1. Test with Nuclei:
root@kitploit:~
# Test against vulnerable instance
nuclei -t CVE-2024-23113.yaml -u http://localhost:8080 -v

# Test with debug output
nuclei -t CVE-2024-23113.yaml -u http://localhost:8080 -debug

🎯 Available Environments

Default Environment

  • Service: fortios-vulnerable
  • Port: 8080
  • Version: FortiOS v7.2.5 (vulnerable)
  • URL: http://localhost:8080

Additional Test Environments

root@kitploit:~
# Start patched version for comparison
docker-compose --profile patched up -d

# Start multiple vulnerable versions
docker-compose --profile multiple up -d

Available Profiles:

  • Default: FortiOS v7.2.5 (vulnerable) - Port 8080
  • Patched: FortiOS v7.2.7 (patched) - Port 8081
  • Multiple:
    • FortiOS v7.4.1 (vulnerable) - Port 8082
    • FortiOS v7.0.10 (vulnerable) - Port 8083

🔧 Configuration

Environment Variables

VariableDescriptionDefault
FORTIOS_VERSIONFortiOS version to simulate7.2.5
PORTContainer internal port8080

Custom Version

root@kitploit:~
# Run specific version
docker run -p 8080:8080 -e FORTIOS_VERSION=7.4.2 cve-2024-23113-test

📡 API Endpoints

The simulated FortiOS provides these endpoints:

Example API Response

root@kitploit:~
{
  "version": "v7.2.5",
  "hostname": "TEST-FORTIGATE",
  "serial": "FGTVM1234567890",
  "build": 1396,
  "model": "FortiGate-VM64"
}

🧪 Testing Scenarios

Vulnerable Versions Detection

root@kitploit:~
# Test vulnerable versions
nuclei -t CVE-2024-23113.yaml -u http://localhost:8080     # v7.2.5
nuclei -t CVE-2024-23113.yaml -u http://localhost:8082     # v7.4.1  
nuclei -t CVE-2024-23113.yaml -u http://localhost:8083     # v7.0.10

Patched Version Validation

root@kitploit:~
# Test patched version (should not detect)
nuclei -t CVE-2024-23113.yaml -u http://localhost:8081     # v7.2.7

Batch Testing

root@kitploit:~
# Test all instances
echo -e "http://localhost:8080\nhttp://localhost:8081\nhttp://localhost:8082\nhttp://localhost:8083" | nuclei -t CVE-2024-23113.yaml -l /dev/stdin

🔍 Manual Testing

Check Service Response

root@kitploit:~
# Basic connectivity
curl -v http://localhost:8080/

# API endpoint
curl -s http://localhost:8080/api/v2/monitor/system/status | jq .

# Check headers
curl -I http://localhost:8080/

Expected Vulnerable Indicators

  • HTML: Contains FortiOS v7.2.5
  • Server Header: FortiGate-HTTP/v7.2.5
  • API Response: "version": "v7.2.5"

🐛 Troubleshooting

Common Issues

Port Already in Use

root@kitploit:~
# Check what's using the port
netstat -tlnp | grep 8080

# Use different port
docker-compose up -d --scale fortios-vulnerable=0
docker run -p 8090:8080 cve-2024-23113-test

Container Won't Start

root@kitploit:~
# Check logs
docker-compose logs fortios-vulnerable

# Rebuild image
docker-compose build --no-cache

Health Check Failing

root@kitploit:~
# Check container health
docker ps
docker exec cve-2024-23113-vulnerable curl -f http://localhost:8080/

Debugging

root@kitploit:~
# View real-time logs
docker-compose logs -f

# Interactive shell
docker exec -it cve-2024-23113-vulnerable /bin/bash

# Test from inside container
docker exec cve-2024-23113-vulnerable curl localhost:8080

📋 Vulnerable Versions

This environment can simulate any of these vulnerable versions:

FortiOS

  • 7.4.0, 7.4.1, 7.4.2
  • 7.2.0 through 7.2.6
  • 7.0.0 through 7.0.13

FortiProxy

  • 7.4.0, 7.4.1, 7.4.2
  • 7.2.0 through 7.2.8
  • 7.0.0 through 7.0.14

Example Usage

root@kitploit:~
# Test different vulnerable versions
docker run -p 8080:8080 -e FORTIOS_VERSION=7.4.0 cve-2024-23113-test
docker run -p 8081:8080 -e FORTIOS_VERSION=7.0.13 cve-2024-23113-test

🏗️ Development

Building from Source

root@kitploit:~
# Build image
docker build -t cve-2024-23113-test .

# Run manually
docker run -p 8080:8080 cve-2024-23113-test

Customizing Responses

Edit server.py to modify:

  • HTML responses
  • API endpoint data
  • Server headers
  • Version information

⚠️ Security Notice

This is a test environment only:

  • ✅ Use for security testing and template validation
  • ✅ Use in isolated lab environments
  • ❌ Never expose to public networks
  • ❌ Never use in production

📚 References

  • CVE-2024-23113 Details
  • Fortinet Security Advisory
  • CISA KEV Catalog
  • Nuclei Templates Repository

📞 Support

For issues with this test environment:

  1. Check the troubleshooting section
  2. Review container logs
  3. Verify Nuclei template syntax
  4. Test with manual curl requests

Remember: This environment is for authorized security testing only. Always ensure you have permission before testing any systems.

Download Tool
EndpointDescriptionContent-Type
/Main login pagetext/html
/loginLogin formtext/html
/remote/loginRemote access portaltext/html
/api/v2/monitor/system/statusSystem status APIapplication/json
/api/v2/cmdb/system/globalGlobal config APIapplication/json