Exploit databaseDownload repository ZIP
GH-b6dd3288ac75829caf44c376b6a83fb5
forxiucn/nginx-cve-2026-42945-poc
Sources for CVE-2026-42945
33 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files31
forxiucn/nginx-cve-2026-42945-pocRevision 4987d77b19a4
- ↑..Parent directory
- bpf/
- ngx_event_quic.c
- ngx_event_quic.h
- ngx_event_quic_ack.c
- ngx_event_quic_ack.h
- ngx_event_quic_bpf.c
- ngx_event_quic_bpf_code.c
- ngx_event_quic_connection.h
- ngx_event_quic_connid.c
- ngx_event_quic_connid.h
- ngx_event_quic_frames.c
- ngx_event_quic_frames.h
- ngx_event_quic_migration.c
- ngx_event_quic_migration.h
- ngx_event_quic_openssl_compat.c
- ngx_event_quic_openssl_compat.h
- ngx_event_quic_output.c
- ngx_event_quic_output.h
- ngx_event_quic_protection.c
- ngx_event_quic_protection.h
- ngx_event_quic_socket.c
- ngx_event_quic_socket.h
- ngx_event_quic_ssl.c
- ngx_event_quic_ssl.h
- ngx_event_quic_streams.c
- ngx_event_quic_streams.h
- ngx_event_quic_tokens.c
- ngx_event_quic_tokens.h
- ngx_event_quic_transport.c
- ngx_event_quic_transport.h
- ngx_event_quic_udp.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
src/nginx-1.26.3/src/event/quic/ngx_event_quic_openssl_compat.h
Text · 1,850 bytes
/*
* Copyright (C) Nginx, Inc.
*/
#ifndef _NGX_EVENT_QUIC_OPENSSL_COMPAT_H_INCLUDED_
#define _NGX_EVENT_QUIC_OPENSSL_COMPAT_H_INCLUDED_
#if defined SSL_R_MISSING_QUIC_TRANSPORT_PARAMETERS_EXTENSION \
|| defined LIBRESSL_VERSION_NUMBER
#undef NGX_QUIC_OPENSSL_COMPAT
#else
#include <ngx_config.h>
#include <ngx_core.h>
typedef struct ngx_quic_compat_s ngx_quic_compat_t;
enum ssl_encryption_level_t {
ssl_encryption_initial = 0,
ssl_encryption_early_data,
ssl_encryption_handshake,
ssl_encryption_application
};
typedef struct ssl_quic_method_st {
int (*set_read_secret)(SSL *ssl, enum ssl_encryption_level_t level,
const SSL_CIPHER *cipher,
const uint8_t *rsecret, size_t secret_len);
int (*set_write_secret)(SSL *ssl, enum ssl_encryption_level_t level,
const SSL_CIPHER *cipher,
const uint8_t *wsecret, size_t secret_len);
int (*add_handshake_data)(SSL *ssl, enum ssl_encryption_level_t level,
const uint8_t *data, size_t len);
int (*flush_flight)(SSL *ssl);
int (*send_alert)(SSL *ssl, enum ssl_encryption_level_t level,
uint8_t alert);
} SSL_QUIC_METHOD;
ngx_int_t ngx_quic_compat_init(ngx_conf_t *cf, SSL_CTX *ctx);
int SSL_set_quic_method(SSL *ssl, const SSL_QUIC_METHOD *quic_method);
int SSL_provide_quic_data(SSL *ssl, enum ssl_encryption_level_t level,
const uint8_t *data, size_t len);
int SSL_set_quic_transport_params(SSL *ssl, const uint8_t *params,
size_t params_len);
void SSL_get_peer_quic_transport_params(const SSL *ssl,
const uint8_t **out_params, size_t *out_params_len);
#endif /* TLSEXT_TYPE_quic_transport_parameters */
#endif /* _NGX_EVENT_QUIC_OPENSSL_COMPAT_H_INCLUDED_ */