{"id":18278839,"url":"https://github.com/aancw/spring4shell-poc-rs","last_synced_at":"2025-04-09T04:42:48.130Z","repository":{"id":76531041,"uuid":"476172963","full_name":"aancw/Spring4shell-poc-rs","owner":"aancw","description":"Spring 4 Shell PoC script writted in Rust","archived":false,"fork":false,"pushed_at":"2022-04-01T15:17:35.000Z","size":16684,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-14T23:17:04.122Z","etag":null,"topics":["rustlang","spring4shell"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aancw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-31T06:07:34.000Z","updated_at":"2022-04-08T09:48:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"cc4f58dc-c717-4a0d-8397-879a79510077","html_url":"https://github.com/aancw/Spring4shell-poc-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aancw%2FSpring4shell-poc-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aancw%2FSpring4shell-poc-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aancw%2FSpring4shell-poc-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aancw%2FSpring4shell-poc-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aancw","download_url":"https://codeload.github.com/aancw/Spring4shell-poc-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247980822,"owners_count":21027803,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["rustlang","spring4shell"],"created_at":"2024-11-05T12:26:24.319Z","updated_at":"2025-04-09T04:42:48.106Z","avatar_url":"https://github.com/aancw.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring4shell PoC Script\n\nInteractive Spring4Shell PoC attack script written in Rust\n\n## Requirements\n\n- Rust\n- Docker\n\n## Features\n\n- war file deployer\n- interactive web shell\n\n## Vulnerable Products\n\n- JDK version 9.0+\n- Spring framework and derivative framework spring-beans-*.jar exists\n\n## Building the Lab\n\n- Install docker\n- Git clone lab repo and then build\n\n```bash\ngit clone https://github.com/aancw/Spring4shell-poc-lab\ncd Spring4shell-poc-lab\nsh deploy.sh\n```\n\n- Wait until container is up\n- Happy hacking!\n\n## Checking Affected System\n\n- For JDK version, you can use \n\n```bash\njava -version\n```\n\n- To check if you are using Spring framework or derivative. Do a global search after \"spring-beans-.jar\" and \"spring.jar\"\n\n```bash\nfind . -name spring-beans*.jar\n\n$ root@aa3b00479589:/usr/local/tomcat# find . -name spring-beans*.jar\n./webapps/spring_app/WEB-INF/lib/spring-beans-5.2.3.RELEASE.jar\n```\n\n## Detail Informations\n\n- https://www.cyberkendra.com/2022/03/springshell-rce-0-day-vulnerability.html\n- https://www.springcloud.io/post/2022-03/spring-0day-vulnerability/#gsc.tab=0\n- https://www.praetorian.com/blog/spring-core-jdk9-rce/\n\n## Spring Patch\n\n- https://github.com/spring-projects/spring-framework/commit/7f7fb58dd0dae86d22268a4b59ac7c72a6c22529\n\n## Acknowledgment\n\n- https://github.com/Retrospected/spring-rce-poc\n- https://github.com/craig/SpringCore0day\n- https://github.com/BobTheShoplifter/Spring4Shell-POC","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faancw%2Fspring4shell-poc-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faancw%2Fspring4shell-poc-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faancw%2Fspring4shell-poc-rs/lists"}