Skip to content

Improve Input Validation for API Endpoints #22

@bonjourguillem

Description

@bonjourguillem

Several API endpoints lack proper input validation, which could lead to security vulnerabilities or unexpected behavior:

For example:

  1. Solution save endpoint (problems.py): Doesn't validate solution content length or format
  2. Note endpoints: Don't sanitize HTML/XSS content in user notes
  3. Pagination parameters: page and limit aren't validated for reasonable bounds (could accept arbitrarily large values)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions