Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
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.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
cve-2025-22235-demo — Demonstrates CVE-2025-22235 Spring Boot authentication bypass via EndpointRequest.to() misconfiguration. Includes environment setup, reproduction steps, code analysis, and remediation guidance for security research and education. | Kitploit
Tools/GitHubGitHub/idealzh/cve-2025-22235-demo
Vulnerability AnalysisExploitationWeb Application ExploitationAuthenticationMisconfigurationLearning & Education
GitHubidealzh/cve-2025-22235-demo

cve-2025-22235-demo

Demonstrates CVE-2025-22235 Spring Boot authentication bypass via EndpointRequest.to() misconfiguration. Includes environment setup, reproduction steps, code analysis, and remediation guidance for security research and education.

View Repository
401 year agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    962
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    558
  • 3

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    348
  • 4

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    344
  • 5

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    324
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    297

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2025-22235: Spring Boot EndpointRequest.to() Authentication Bypass Vulnerability Demo

Vulnerability Description

CVE-2025-22235 is a Spring Boot security vulnerability involving the EndpointRequest.to() method, which may generate an incorrect matcher when configuring security rules, leading to the security protection failing for non-exposed actuator endpoint paths (such as /null/**).

Affected Versions

  • Spring Security 5.7.16
  • Spring Security 5.8.18
  • Spring Security 6.0.16
  • Spring Security 6.1.14
  • Spring Security 6.2.10
  • Spring Security 6.3.8
  • Spring Security 6.4.4
  • Older, unsupported versions are also affected

Vulnerability Principle

When using EndpointRequest.to("health") to configure security rules, if the health endpoint is not configured in management.endpoints.web.exposure.include, Spring Boot generates an incorrect path matcher /null/**, causing all requests under that path to bypass authentication checks.

Environment Setup

1. Project Dependencies

  • Spring Boot 3.4.3 (vulnerable version)
  • Spring Security
  • Spring Boot Actuator

2. Key Configuration

  • management.endpoints.web.exposure.include=info (only the info endpoint is exposed, the health endpoint is not exposed)
  • The security configuration uses EndpointRequest.to("health") to reference a non-exposed endpoint

Vulnerability Reproduction Steps

1. Start the Application

mvn spring-boot:run

2. Access the Protected Endpoint

Visit http://localhost:8080/null directly – it can be accessed without login, confirming an authentication bypass vulnerability exists.

3. Normal Authentication Flow

Accessing other protected endpoints such as http://localhost:8080/info will require login.

Vulnerability Code Analysis

Security Configuration Class (SecurityConfig.java)

.requestMatchers(EndpointRequest.to("health")).permitAll()  // Vulnerability trigger point
.requestMatchers("/null").authenticated()                   // Should be protected but bypassed

Controller (DemoController.java)

@GetMapping("/null")
public String sensitiveEndpoint() {
    return "Seeing this page without login indicates the CVE-2025-22235 authentication bypass vulnerability!";
}

Vulnerability Fix

1. Upgrade Spring Boot Version

Upgrade to the following fixed versions:

  • 3.4.5+
  • 3.3.11+
  • Other supported latest versions

2. Temporary Mitigation Measures

  • Ensure that the endpoint referenced by EndpointRequest.to() is enabled and exposed via the web
  • Avoid handling requests to the /null path
  • Check whether all endpoints referenced in the security configuration are properly exposed

Technical Details

The root cause of the vulnerability is that the EndpointRequest.to() method generates an incorrect path matcher when processing a non-exposed endpoint. When the endpoint name is not configured in management.endpoints.web.exposure.include, Spring Boot creates a path pattern containing null, causing the security rule to become invalid.

References

  • CVE-2025-22235 Official Announcement
  • Spring Boot Official Security Advisory
  • Spring Security Official Documentation

Disclaimer

This demonstration project is for security research and educational purposes only. Do not use it in production environments. All risks arising from using this project are borne by the user.

Download Tool