JWT is created using either signed or encrypted.
Scenario:
- User logs into the application and application client requests for JWT to auth server.
- Auth server responds the newly created JWT with exp claim.
- Client uses the JWT (from step 2) as an Authorization header and calls microservice.
- Microservice validates the token either by SIGN / ENCRYPT methodology and exp claim verification etc and responds to the client.
- 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.
JWT is created using either signed or encrypted.
Scenario:
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.