Je Yiuwai

Important Considerations for Injecting Groovy Memory Shell using CVE-2024-45507

This article discusses key considerations when injecting a Groovy memory shell using the CVE-2024-45507 vulnerability. It covers script formatting, package name settings, use of the main function, relationship between class name and file name, and how to handle and replace special keywords in Groovy scripts. The article also provides code examples demonstrating how to convert Java code to Groovy script to avoid specific keywords and syntax restrictions.

CVE-2024-36401 Memory Shell Exploit for JDK 11-22

This article details an attack method using SpEL expression injection for memory shells, successfully bypassing reflection restrictions in higher JDK versions. Through techniques such as manual bytecode compilation and gzip compression, the author successfully compressed the final Base64 string to an acceptable length. This approach has been tested and successfully bypasses reflection restrictions across all versions of JDK from 11 to 22.