Skip to content

About

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

Topics

Resources

Code of conduct

Contributing

Stars

301 stars

Watchers

5 watching

Forks

Latest commit

ย 

History

26 Commits

Folders and files

Repository files navigation

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

Flag Description
-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)
-debug Print detailed error info for failed requests
-delay <s> Global request interval in seconds (0 = unlimited)
-timeout <s> Per-request timeout in seconds (default: 6)
-version Print 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

Tool Description
list_vulns List supported vulnerability modules (ID, type, severity, parameters)
spring_fingerprint Spring framework fingerprinting
spring_leak_scan Actuator / Swagger / Druid info-leak probing
spring_vuln_detect Non-destructive detection for all or a specific CVE
spring_exploit Exploitation execution (requires explicit --enable-exploit)
batch_scan Multi-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

About

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

Topics

Resources

Code of conduct

Contributing

Stars

301 stars

Watchers

5 watching

Forks

Releases

Packages

Used by

Contributors

Languages