Exploit databaseDownload repository ZIP
GH-6ae1cb256413aaf3498a037ef1a6c52c
carlos-mesquita/tpaslog4shellpoc
Sources for CVE-2021-44228
465 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files1
carlos-mesquita/tpaslog4shellpocRevision a37444cb26f8
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
backend/src/main/java/tpas/poc/log4shell/configs/CorsConfig.java
Java · 667 bytespackage tpas.poc.log4shell.configs;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.reactive.config.CorsRegistry;
import org.springframework.web.reactive.config.EnableWebFlux;
import org.springframework.web.reactive.config.WebFluxConfigurer;
@Configuration
@EnableWebFlux
public class CorsConfig implements WebFluxConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("*")
.allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS")
.allowedHeaders("*")
.maxAge(3600);
}
}