Exploit databaseDownload repository ZIP
GH-dea1db7960fe152b06ec3db7451052e8
tchize/cve-2022-22971
Sources for CVE-2022-22971
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files2
tchize/cve-2022-22971Revision 22a8fd352579
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
springstomp/src/main/java/se/hms/ewon/demostomp/WebsocketConfig.java
Java · 1,394 bytespackage se.hms.ewon.demostomp;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.messaging.simp.config.MessageBrokerRegistry;
import org.springframework.web.socket.config.annotation.AbstractWebSocketMessageBrokerConfigurer;
import org.springframework.web.socket.config.annotation.EnableWebSocketMessageBroker;
import org.springframework.web.socket.config.annotation.StompEndpointRegistry;
import org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer;
@Configuration("WebSocketConfig")
@EnableWebSocketMessageBroker
public class WebsocketConfig implements WebSocketMessageBrokerConfigurer {
@Value("${stomp.host:localhost}")
private String relayHost;
@Value("${stomp.port:61613}")
private int relayPort;
@Value("${stomp.user:guest}")
private String username;
@Value("${stomp.pass:guest}")
private String password;
@Override
public void configureMessageBroker(MessageBrokerRegistry config) {
config.enableStompBrokerRelay("/topic", "/queue", "/exchange")
.setRelayHost(relayHost)
.setRelayPort(relayPort)
.setClientLogin(username)
.setClientPasscode(password);
}
@Override
public void registerStompEndpoints(StompEndpointRegistry registry) {
registry
.addEndpoint("/ws")
.setAllowedOriginPatterns("*")
.withSockJS();
}
}