module

Spring Cloud Function SpEL Injection

Disclosed
2022-03-29
Created
2022-03-31

Description

Spring Cloud Function versions prior to 3.1.7 and 3.2.3 are vulnerable to remote code execution due to using
an unsafe evaluation context with user-provided queries. By crafting a request to the application and setting
the spring.cloud.function.routing-expression header, an unauthenticated attacker can gain remote code
execution. Both patched and unpatched servers will respond with a 500 server error and a JSON encoded message.

Authors

m09u3r
hktalent
Spencer McIntyre

Platform

Linux,Unix

Architectures

cmd, x86, x64

Module Options

To display the available options, load the module within the Metasploit console and run the commands ‘show options’ or ‘show advanced’:


msf > use exploit/multi/http/spring_cloud_function_spel_injection
msf exploit(spring_cloud_function_spel_injection) > show targets
...targets...
msf exploit(spring_cloud_function_spel_injection) > set TARGET < target-id >
msf exploit(spring_cloud_function_spel_injection) > show options
...show and set options...
msf exploit(spring_cloud_function_spel_injection) > exploit

Title
NEW

Explore Exposure Command

Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.