Skip to content

How to avoid unexpired JWT replay attack ? #738

@vickymicky

Description

@vickymicky

JWT is created using either signed or encrypted.

Scenario:

  1. User logs into the application and application client requests for JWT to auth server.
  2. Auth server responds the newly created JWT with exp claim.
  3. Client uses the JWT (from step 2) as an Authorization header and calls microservice.
  4. Microservice validates the token either by SIGN / ENCRYPT methodology and exp claim verification etc and responds to the client.
  5. User logs off from the application.

Attack Scenario:

Somehow, JWT was acquired from the user system by the hacker and the attacker keeps replaying the step 3 to overload the microservice or manipulate the request to get desired response, as long as the JWT lives.

Application could use TLS and HTTPS set up to avoid any one sniffing the network, but still if the JWT is acquired by other mechanism, these might lead to issues.

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