data["Error"]="Failed to create app: "+createErr.Error()
The raw Go error message (which may contain internal details like file paths, SQL errors, or stack traces) is passed directly to the template. While Go's html/template auto-escapes HTML, this is still an information disclosure issue — internal error details should never be shown to users.
This pattern appears in HandleAppCreate but not in other handlers (which correctly use generic messages like "Failed to create user").
Suggested Fix
Use a generic error message for the user and log the detailed error server-side:
h.log.Error("failed to create app","error",createErr)data["Error"]="Failed to create app. Check server logs for details."
## Severity: MEDIUM
## File: `internal/handlers/app.go` line 73
## Description
```go
data["Error"] = "Failed to create app: " + createErr.Error()
```
The raw Go error message (which may contain internal details like file paths, SQL errors, or stack traces) is passed directly to the template. While Go's `html/template` auto-escapes HTML, this is still an information disclosure issue — internal error details should never be shown to users.
This pattern appears in `HandleAppCreate` but not in other handlers (which correctly use generic messages like "Failed to create user").
## Suggested Fix
Use a generic error message for the user and log the detailed error server-side:
```go
h.log.Error("failed to create app", "error", createErr)
data["Error"] = "Failed to create app. Check server logs for details."
```
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Severity: MEDIUM
File:
internal/handlers/app.goline 73Description
The raw Go error message (which may contain internal details like file paths, SQL errors, or stack traces) is passed directly to the template. While Go's
html/templateauto-escapes HTML, this is still an information disclosure issue — internal error details should never be shown to users.This pattern appears in
HandleAppCreatebut not in other handlers (which correctly use generic messages like "Failed to create user").Suggested Fix
Use a generic error message for the user and log the detailed error server-side: