=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== gitlab-shell-13.6.0/internal/sshenv/sshenv.go-7- gitlab-shell-13.6.0/internal/sshenv/sshenv.go:8:func LocalAddr() string { gitlab-shell-13.6.0/internal/sshenv/sshenv.go-9- address := os.Getenv("SSH_CONNECTION") ############################################## gitlab-shell-13.6.0/internal/sshenv/sshenv_test.go-9- gitlab-shell-13.6.0/internal/sshenv/sshenv_test.go:10:func TestLocalAddr(t *testing.T) { gitlab-shell-13.6.0/internal/sshenv/sshenv_test.go-11- cleanup, err := testhelper.Setenv("SSH_CONNECTION", "127.0.0.1 0") ############################################## gitlab-shell-13.6.0/internal/sshenv/sshenv_test.go-14- gitlab-shell-13.6.0/internal/sshenv/sshenv_test.go:15: require.Equal(t, LocalAddr(), "127.0.0.1") gitlab-shell-13.6.0/internal/sshenv/sshenv_test.go-16-} gitlab-shell-13.6.0/internal/sshenv/sshenv_test.go-17- gitlab-shell-13.6.0/internal/sshenv/sshenv_test.go:18:func TestEmptyLocalAddr(t *testing.T) { gitlab-shell-13.6.0/internal/sshenv/sshenv_test.go:19: require.Equal(t, LocalAddr(), "") gitlab-shell-13.6.0/internal/sshenv/sshenv_test.go-20-} ############################################## gitlab-shell-13.6.0/internal/handler/exec.go-83- "git_protocol": protocol, gitlab-shell-13.6.0/internal/handler/exec.go:84: "remote_ip": sshenv.LocalAddr(), gitlab-shell-13.6.0/internal/handler/exec.go-85- "gl_key_type": response.KeyType, ############################################## gitlab-shell-13.6.0/internal/gitlabnet/accessverifier/client.go-88- gitlab-shell-13.6.0/internal/gitlabnet/accessverifier/client.go:89: request.CheckIp = sshenv.LocalAddr() gitlab-shell-13.6.0/internal/gitlabnet/accessverifier/client.go-90- ############################################## gitlab-shell-13.6.0/vendor/gitlab.com/gitlab-org/labkit/log/access_logger.go-163-func getRemoteIP(r *http.Request) string { gitlab-shell-13.6.0/vendor/gitlab.com/gitlab-org/labkit/log/access_logger.go:164: remoteAddr := xff.GetRemoteAddr(r) gitlab-shell-13.6.0/vendor/gitlab.com/gitlab-org/labkit/log/access_logger.go-165- host, _, err := net.SplitHostPort(remoteAddr) ############################################## gitlab-shell-13.6.0/vendor/gitlab.com/gitlab-org/gitaly/client/dial_test.go-143- } gitlab-shell-13.6.0/vendor/gitlab.com/gitlab-org/gitaly/client/dial_test.go:144: tcpPort := listener.Addr().(*net.TCPAddr).Port gitlab-shell-13.6.0/vendor/gitlab.com/gitlab-org/gitaly/client/dial_test.go-145- address := fmt.Sprintf("%d", tcpPort) ############################################## gitlab-shell-13.6.0/vendor/gitlab.com/gitlab-org/gitaly/client/dial_test.go-179- } gitlab-shell-13.6.0/vendor/gitlab.com/gitlab-org/gitaly/client/dial_test.go:180: tcpPort := listener.Addr().(*net.TCPAddr).Port gitlab-shell-13.6.0/vendor/gitlab.com/gitlab-org/gitaly/client/dial_test.go-181- address := fmt.Sprintf("%d", tcpPort)