Zum Inhalt springen

Stack Trace Exposure (ARCH8127)

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

Key kotlin.security.stack-trace-exposure · Severity warning · Category security · CWE CWE-209

Flags exception messages or stack traces written into an HTTP response body.

call.respond(HttpStatusCode.InternalServerError, e.stackTraceToString())
logger.error("request failed", e)
call.respond(HttpStatusCode.InternalServerError, ErrorDto("internal_error"))

Log the exception; answer with a generic message and a correlation id.