Exploit database

GH-a7883118b07d6b016ba101c8b172f55f

alikarimi999/cve-2021-40346

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2021-40346

6 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files8

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

haproxy/contrib/mod_defender/defender.h

Text · 975 bytes
/*
 * Mod Defender for HAProxy
 *
 * Copyright 2017 HAProxy Technologies, Dragan Dosen <[email protected]>
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version
 * 3 of the License, or (at your option) any later version.
 *
 */
#ifndef __DEFENDER_H__
#define __DEFENDER_H__

#include <haproxy/sample-t.h>

struct defender_request {
	struct sample clientip;
	struct sample id;
	struct sample method;
	struct sample path;
	struct sample query;
	struct sample version;
	struct sample headers;
	struct sample body;
};

struct defender_header {
	struct {
		char     *str;
		uint64_t  len;
	} name;
	struct {
		char     *str;
		uint64_t  len;
	} value;
};

int defender_init(const char *config_file, const char *log_file);
int defender_process_request(struct worker *worker, struct defender_request *request);

#endif /* __DEFENDER_H__ */