Exploit databaseDownload repository ZIP
GH-fa5c871fea38479ff88e7c6b646acfd5
fracturelabs/spring4shell_victim
Sources for CVE-2022-22965
88 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files3
fracturelabs/spring4shell_victimRevision 2efb15a6204f
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
src/main/java/io/fracturelabs/SpringBootController.java
Java · 768 bytespackage io.fracturelabs;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class SpringBootController {
@GetMapping("/")
public String safeGetHandler() {
return "GET / is not vulnerable";
}
@PostMapping("/")
public String safePostHandler() {
return "POST / is not vulnerable";
}
@GetMapping("/vulnerable")
public String vulnGetHandler(ExampleBean bean) {
return "GET /vulnerable is vulnerable - check for a shell";
}
@PostMapping("/vulnerable")
public String vulnPostHandler(ExampleBean bean) {
return "POST /vulnerable is vulnerable - check for a shell";
}
}