Exploit databaseDownload repository ZIP
GH-a8e33f0971be6263a43e1a9724b15299
rakutentech/jndi-ldap-test-server
Sources for CVE-2021-44228
465 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files4
rakutentech/jndi-ldap-test-serverRevision 278e11de9a40
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
routes/bind.go
Go · 586 bytespackage routes
import (
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
"github.com/vjeantet/ldapserver"
)
func handleBind(w ldapserver.ResponseWriter, m *ldapserver.Message) {
r := m.GetBindRequest()
log.Info().
Str("component", "ldap").
Str("event", "request").
Str("client_ip", m.Client.Addr().String()).
Dict("request", zerolog.Dict().
Str("type", "bind").
Str("auth_type", r.AuthenticationChoice()).
Str("user", string(r.Name())),
).
Msg("Incoming LDAP Bind Request")
res := ldapserver.NewBindResponse(ldapserver.LDAPResultSuccess)
w.Write(res)
}