Lucene search
+L

WebGoat Environment

🗓️ 01 Dec 2025 12:51:31Reported by KittySploitType 
kittysploit
 kittysploit
🔗 kittysploit.com👁 3 Views

The WebGoat Environment module provides access to OWASP WebGoat for security testing.

Refs
Code
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from kittysploit import *

class Module(DockerEnvironment):
    __info__ = {
        'name': 'WebGoat Environment',
        'description': 'OWASP WebGoat - Learning platform for web application security testing',
        'author': 'KittySploit Team',
        'references': [
            'https://github.com/WebGoat/WebGoat',
            'https://owasp.org/www-project-webgoat/',
            'https://hub.docker.com/r/webgoat/goatandwolf'
        ]
    }
    
    # Options du module
    image_name = OptString("webgoat/goatandwolf:latest", "Docker image name to use", True)
    container_name = OptString("kittysploit_webgoat", "Container name", True)
    
    # Ports
    webgoat_port = OptPort(8080, "WebGoat port (mapped to container port 8080)", True)
    webwolf_port = OptPort(9090, "WebWolf port (mapped to container port 9090)", True)
    
    ready_timeout = OptInteger(180, "Timeout in seconds for WebGoat to be ready", True)
    
    def expose_ports(self):
        """Configure exposed ports for WebGoat"""
        self.exposed_ports = {
            "8080/tcp": ('127.0.0.1', int(self.webgoat_port)),
            "9090/tcp": ('127.0.0.1', int(self.webwolf_port))
        }
        # Set environment variable for WebGoat
        self.environment_vars = {
            'WEBGOAT_PORT': '8080'
        }
    
    def on_environment_ready(self):
        """Display WebGoat access information"""
        if not self.print_container_overview():
            return False
        
        print_success("=== WebGoat started successfully ===")
        
        print_status("Access Information:")
        print_info("=" * 60)
        print_info(f"WebGoat: http://127.0.0.1:{self.webgoat_port}/WebGoat")
        print_info(f"WebWolf: http://127.0.0.1:{self.webwolf_port}/WebWolf")
        
        print_status("Default Credentials:")
        print_info("  Login: guest / guest")        
        return True

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

01 Dec 2025 12:51Current
5.8Medium risk
Vulners AI Score5.8
3