Skip to content

CRITICAL: Missing TLS - HTTP server listens without encryption #667

Description

@poyrazK

Why is this an issue?

The API server in cmd/api/main.go:87-88 uses ListenAndServe() (HTTP) instead of ListenAndServeTLS(). All API traffic including credentials is transmitted in plaintext.

What is causing it?

StartHTTPServer: func(s *http.Server) error {
    return s.ListenAndServe()
},

How can it be solved?

Add TLS certificate configuration and use ListenAndServeTLS(certFile, keyFile, handler).

Category

  • Small
  • Medium
  • Large

Severity

  • Low
  • Medium
  • High
  • Critical

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions