Skip to content

[BUG] Missing String Length Constraints #1492

Description

@sahare77

Missing String Length Constraints

Description:
Various creation and update endpoints (e.g., target policies, workflows, profiles) accept string inputs such as name and description without imposing any maximum length constraints.

Impact:
An attacker could submit excessively large payloads for these fields, resulting in database bloat, increased memory consumption on data retrieval, and potential application slowdowns.

Recommendation:
Introduce length validation (e.g., maximum 255 characters for name, maximum 2000 characters for description) either via Pydantic model Field constraints or explicit length checks in the route handlers before processing the data.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:backendBackend API, database, or service worklevel:beginner20 pts difficulty label for small beginner-friendly PRspriority:lowNice-to-have issue with low urgencytype:bugBug fix work category bonus label

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions