LOW: Container log tail parameter not validated — passed directly to Docker API #24
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sneak/upaas#24
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.