LOW: Container log tail parameter not validated — passed directly to Docker API #24
In neuem Issue referenzieren
Einen Benutzer sperren
Branch "%!s()" löschen
Das Löschen eines Branches ist permanent. Obwohl der Branch für eine kurze Zeit weiter existieren könnte, kann diese Aktion in den meisten Fällen NICHT rückgängig gemacht werden. Fortfahren?
Bug
File:
internal/handlers/app.go,HandleAppLogs()Severity: LOW
Description
The
tailquery parameter is read from user input and passed directly to the Docker API without validation:While Docker's API likely handles invalid values gracefully, the parameter should be validated as a positive integer to ensure predictable behavior and prevent potential edge cases (e.g., passing
"all"to dump the entire log history, which could be a DoS vector for containers with large log files).Suggested Fix
do it. also clamp it to max 500.