Zum Inhalt springen

Stack Trace Exposure (ARCH9127)

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

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

Flags error descriptions or call stacks written into an HTTP response (Abort(reason: "\(error)"), Thread.callStackSymbols in a body).

throw Abort(.internalServerError, reason: "\(error)")
req.logger.error("\(error)")
throw Abort(.internalServerError, reason: "internal_error")

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