Skip to content

state as parameter not protecting against CSRF attacks #72

@GPrimola

Description

@GPrimola

Hi,

I was validating the authorization flow of an application which we use oidcc_plug and it came to me that this state on Oidcc.Plug.Authorize module:

  1. shouldn't be a parameter
  2. it isn't preventing CSRF attacks as for RFC 6749.

Explanation:

This diagram illustrates the problem on the flow with state as a parameter to generate the redirect url.

Desired:

The Oidcc.Plug.Authorize should generate a random value representing the state for each specific authorization request.

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