Skip to content
FunCoding

Scan-Spring-GO

Spring Boot & Spring Framework vulnerability scanner (17 modules + MCP server for AI-assisted pentesting) written in Go

Star
301
Category
Security
License
MIT
Last commit
Nov 26, 2026

English | 简体中文

SSP - Spring Framework Vulnerability Scanner

CI Release License: MIT

Scan-Spring-GO

🚀 Overview

SSP is a lightweight, high-performance vulnerability scanner and exploitation tool for the Spring ecosystem written in Go. It supports detection and exploitation across 17 vulnerability modules, information-leak endpoint probing (Actuator / Swagger / Druid), custom wordlists, concurrency and rate-limiting controls, and a built-in MCP server—exposing all capabilities to AI clients (Claude Desktop, ZCode, Cursor, etc.) for end-to-end AI-assisted fingerprinting, scanning, and validation.

🤖 v2.x was refactored end-to-end with AI: architecture redesign, unified interface across all 17 vulnerability modules, unit tests & CI, and the MCP server were implemented by AI (ZCode), with human specification, review, and real-world environment testing.


🛠️ Features

  • Multi-Vulnerability Detection & Exploitation: 17 vulnerability modules behind a unified interface (safe Detect / controlled Exploit); adding a new vulnerability only requires adding a single file.
  • Information-Leak Probing: Built-in wordlist of 210+ endpoints (Actuator / Swagger / Druid), supporting -d to merge or -D to replace with custom wordlists.
  • Dual Mode: CLI binary + MCP server (stdio), returning structured JSON for both detection and exploitation.
  • Concurrency & Rate Limiting: Worker pool + global rate limiting + context cancellation for stable long-running scans.
  • Safety Gates: MCP mode enforces target allowlisting (--scope), opt-in exploitation (--enable-exploit), and full invocation audit logging.
  • Clean Output: Colored terminal output + plain-text file output for batch scans.

🔥 Supported Vulnerabilities (17 Modules)

RCE / SpEL Injection

  • CVE-2022-22965 Spring Framework RCE (Spring4Shell)
  • CVE-2022-22963 Spring Cloud Function SpEL RCE
  • CVE-2022-22947 Spring Cloud Gateway SpEL RCE
  • CVE-2018-1273 Spring Data Commons SpEL RCE
  • CVE-2018-1270 Spring Messaging STOMP selector SpEL RCE
  • CVE-2017-8046 Spring Data REST PATCH path SpEL RCE
  • CVE-2017-4971 Spring WebFlow transition parameter SpEL RCE
  • CVE-2016-4977 Spring Security OAuth2 response_type SpEL RCE (with command output)

Information Disclosure / File Read / Auth Bypass

  • CVE-2025-41243 Spring Cloud Gateway environment property modification (extensible to arbitrary file read)
  • CVE-2025-41242 Spring Framework + Jetty URI parsing mismatch path traversal (Ghost Bits)
  • CVE-2021-21234 Spring Boot log view arbitrary file read
  • CVE-2022-22978 Spring Security RegexRequestMatcher authentication bypass

Deserialization / File Upload

  • CVE-2024-37084 Spring Cloud Data Flow / Skipper deserialization RCE
  • SnakeYAML-RCE Spring Boot config injection deserialization
  • Eureka-Xstream-RCE Eureka XStream deserialization
  • Jolokia-JNDI-RCE Jolokia misconfiguration RCE
  • JeeSpring-2023 JeeSpringCloud arbitrary file upload

📜 Usage

🔍 Vulnerability Detection (with Interactive Exploitation)

ssp -v http://example.com
image

Automatically performs fingerprinting and non-destructive detection across all modules, then lists exploitable modules so you can choose whether to enter an interactive shell.

🧪 Non-Interactive Command Execution

ssp -v http://example.com -c "id"                    # First matched & exploitable module
ssp -v http://example.com -ce CVE-2022-22947 -c "id" # Target a specific CVE module

Recommended for scripting and AI automation: probe → match → execute → structured result.

🔍 Single URL Info-Leak Scan

ssp -u http://example.com
image

📄 Batch Scanning

ssp -uf urls.txt        # Batch info-leak scan
ssp -vf urls.txt        # Batch vulnerability detection

📚 Custom Wordlists

ssp -u http://example.com -d mydict.txt   # Merge with built-in wordlist (auto-deduplicated)
ssp -u http://example.com -D mydict.txt   # Replace built-in wordlist completely

One path per line; # comments supported; automatically strips BOM, deduplicates, and normalizes leading /.

🕹️ Proxy / Rate Limiting / Concurrency

ssp -u http://example.com -p socks5://127.0.0.1:1080 -t 30 -delay 1 -timeout 5

🧑‍💻 CLI Flags

FlagDescription
-u <url>Run info-leak scan on a single URL
-uf <file>Batch info-leak scan from file
-v <url>Run vulnerability detection on a single URL (interactive shell on hit)
-vf <file>Batch vulnerability detection from file
-c <cmd>Execute a single command on hit (non-interactive, used with -v)
-ce <cve>Specify the CVE/module ID to execute the command against
-p <proxy>Proxy URL, e.g. socks5|http://user:pass@host:port
-d <file>Custom wordlist merged with built-in list (# for comments)
-D <file>Custom wordlist replacing the built-in list
-t <n>Concurrency per target for endpoint probing (default: 20)
-o <file>Output file for info-leak scan results (default: result.txt)
-debugPrint detailed error info for failed requests
-delay <s>Global request interval in seconds (0 = unlimited)
-timeout <s>Per-request timeout in seconds (default: 6)
-versionPrint version information

🤖 MCP Mode (AI Integration)

Expose all detection and exploitation tools to AI clients (Claude Desktop, ZCode, Cursor, etc.):

ssp mcp --scope 127.0.0.1 --enable-exploit

Example MCP Client Configuration

{
  "mcpServers": {
    "scan-spring-go": {
      "command": "/path/to/ssp",
      "args": ["mcp", "--scope", "127.0.0.1", "--enable-exploit"]
    }
  }
}

Available Tools

ToolDescription
list_vulnsList supported vulnerability modules (ID, type, severity, parameters)
spring_fingerprintSpring framework fingerprinting
spring_leak_scanActuator / Swagger / Druid info-leak probing
spring_vuln_detectNon-destructive detection for all or a specific CVE
spring_exploitExploitation execution (requires explicit --enable-exploit)
batch_scanMulti-target batch detection

Safety Gates

  • --scope: Target allowlist (domains/IPs); out-of-scope requests are rejected immediately.
  • spring_exploit is not registered by default and requires --enable-exploit explicitly.
  • Every tool call writes an audit log entry to stderr (timestamp, tool, target, arguments).

📦 Build

go build -o ssp .
go test ./...

⚠️ Notes

  • Always comply with applicable laws and regulations and only scan targets you are explicitly authorized to test.
  • Unauthorized scanning or exploitation may violate laws; users assume full responsibility for their actions.
  • Some exploits modify target runtime state (e.g., property changes in CVE-2025-41243 or log valves in CVE-2022-22965). The tool attempts to restore state afterward, though restarting the target service is recommended for full cleanup.

📢 Disclaimer

This tool is intended strictly for technical research and educational purposes. Do not use it for illegal activities. The author assumes no responsibility for any legal liability arising from misuse.


⭐ Support

If you find this project helpful, please leave a ⭐ on the repository and follow the WeChat Official Account: SSP安全研究.

Feel free to open an issue for bug reports or feature requests!

WeChat Official Account QR Code

Star History

Star History Chart

Similar MCP servers

REA

Reverse engineer anything from your terminal or agent with one CLI and MCP server.

MOmorluto/rea485k9,215 new stars in the last 7 days

Featured

Filesystem

Read and write files, create and search directories, update access without restart.

MOmodelcontextprotocol/servers92k200 new stars in the last 7 days

hexstrike-ai

HexStrike AI MCP Agents is an advanced MCP server that lets AI agents (Claude, GPT, Copilot, etc.) autonomously run 150+ cybersecurity tools for automated pentesting, vulnerability discovery, bug bounty automation, and security research. Seamlessly bridge LLMs with real-world offensive security capabilities.

0X0x4m4/hexstrike-ai14k167 new stars in the last 7 days

ida-pro-mcp

AI-powered reverse engineering assistant that bridges IDA Pro with language models through MCP.

MRmrexodia/ida-pro-mcp14k97 new stars in the last 7 days

GhidraMCP

MCP Server for Ghidra

LALaurieWired/GhidraMCP12k89 new stars in the last 7 days

AiSOC

Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.

BEbeenuar/AiSOC8.7k1,078 new stars in the last 7 days