Skip to content
This repository was archived by the owner on Jun 4, 2026. It is now read-only.
This repository was archived by the owner on Jun 4, 2026. It is now read-only.

Critical Security: Prevent Cross-Site Request Forgery (CSRF) on state-changing API endpoints #3346

Description

@basantnema31

Description

Currently, the application does not implement anti-CSRF tokens for POST/PUT/DELETE requests. This means a malicious site can trick an authenticated user's browser into making state-changing requests to the API, leading to unauthorized actions.

Proposed Solution

I propose implementing the Double Submit Cookie pattern or synchronizer token pattern for all state-changing API routes. This involves sending a unique CSRF token in a secure cookie and verifying it against a custom request header on the server.

I would love to work on this critical security issue under the GSSoC '24 program! Could you please assign it to me?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions