Skip to content

Validate login return_to redirects to prevent external navigation #3016

@adityathebe

Description

@adityathebe

Basic and Kratos login flows read return_to from the URL and use it for post-login navigation. Because the value is query-controlled, a crafted login URL can redirect users to an external domain after successful authentication instead of keeping navigation within the app.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions