Skip to content

A heapdump leaks Shiro key causing RCE vulnerability environment.

Notifications You must be signed in to change notification settings

P4r4d1se/heapdump_shiro_vuln

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

heapdump_shiro_vuln

2024.5.16

没想到这个环境还有挺多人用,我更新了一下,打包成了jar,并且可以docker运行:docker compose up -d

0x01

heapdump泄露Shiro key从而RCE的漏洞环境

This is a heapdump leaks Shiro key causing RCE vulnerability environment.

Shiro deserialization is an unfixable vulnerability. As long as you have the Shiro key, you can exploit it, Visit https://xz.aliyun.com/t/11908 for full content.

0x02

After loading the vulnerability environment, you can see that the Shiro version is 1.8.0: 1

Access /actuator/heapdump on port 8080 to obtain the heapdump file: 1

Get the shiro key from heapdump: 1

Vulnerability exploited successfully: 1

Restart the server to obtain the shiro key again. You can see that the key has changed, because a new key is randomly generated every time it is started: 1

Vulnerability exploited successfully again using new key: 1

About

A heapdump leaks Shiro key causing RCE vulnerability environment.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published