Spring Remote Code Execution Vulnerability

I’d like to start by saying that I’m not a security expert. I also won’t link to the exploit. This is a very fresh take on a new vulnerability but there’s already confirmation from Sonatype. The current exploit seems to be limited to Spring on top of T…


This content originally appeared on DEV Community and was authored by Shai Almog

I'd like to start by saying that I'm not a security expert. I also won't link to the exploit. This is a very fresh take on a new vulnerability but there's already confirmation from Sonatype. The current exploit seems to be limited to Spring on top of Tomcat but it probably can be adapted since the underlying vulnerability seems general enough.

The vulnerability only impacts Java 9 or newer so if you have an older version you should be safe from this specific exploit.

The core problem is a regression related to an old RCE which was fixed here.

The problem is that the Java 9 module system increased the surface area. So the original fix for the RCE is no longer sufficient.

Workaround

This is actually pretty simple... Cyber Kendra included a solution and it was also mentioned by Praetorian. It seems like a prudent thing to add and I suggest you incorporate it as soon as possible!

Detection

If you have Lightrun in your servers you can instantly detect if this is exploited by placing a snapshot in the BeanWrapperImpl class as I explain in this twitter video.


This content originally appeared on DEV Community and was authored by Shai Almog


Print Share Comment Cite Upload Translate Updates
APA

Shai Almog | Sciencx (2022-03-31T02:46:17+00:00) Spring Remote Code Execution Vulnerability. Retrieved from https://www.scien.cx/2022/03/31/spring-remote-code-execution-vulnerability/

MLA
" » Spring Remote Code Execution Vulnerability." Shai Almog | Sciencx - Thursday March 31, 2022, https://www.scien.cx/2022/03/31/spring-remote-code-execution-vulnerability/
HARVARD
Shai Almog | Sciencx Thursday March 31, 2022 » Spring Remote Code Execution Vulnerability., viewed ,<https://www.scien.cx/2022/03/31/spring-remote-code-execution-vulnerability/>
VANCOUVER
Shai Almog | Sciencx - » Spring Remote Code Execution Vulnerability. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/03/31/spring-remote-code-execution-vulnerability/
CHICAGO
" » Spring Remote Code Execution Vulnerability." Shai Almog | Sciencx - Accessed . https://www.scien.cx/2022/03/31/spring-remote-code-execution-vulnerability/
IEEE
" » Spring Remote Code Execution Vulnerability." Shai Almog | Sciencx [Online]. Available: https://www.scien.cx/2022/03/31/spring-remote-code-execution-vulnerability/. [Accessed: ]
rf:citation
» Spring Remote Code Execution Vulnerability | Shai Almog | Sciencx | https://www.scien.cx/2022/03/31/spring-remote-code-execution-vulnerability/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.