Exploit database

GH-aea6512a4d300842a35d5e0affc76202

631068264/multi-cluster-ingress-nginx

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2021-23017

15 sources

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

Repository files2

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

images/fastcgi-helloserver/rootfs/main.go

Go · 444 bytes
package main

import (
	"fmt"
	"net"
	"net/http"
	"net/http/fcgi"
)

func hello(w http.ResponseWriter, r *http.Request) {
	keys, ok := r.URL.Query()["name"]

	if !ok || len(keys[0]) < 1 {
		fmt.Fprintf(w, "Hello world!")
		return
	}

	key := keys[0]
	fmt.Fprintf(w, "Hello "+string(key)+"!")
}

func main() {
	http.HandleFunc("/hello", hello)

	l, err := net.Listen("tcp", "0.0.0.0:9000")
	if err != nil {
		panic(err)
	}
	fcgi.Serve(l, nil)
}