Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sikkerhet: Resource Server Does Not Correctly Validate JWTs #500

Closed
Andreass2 opened this issue Nov 19, 2024 · 1 comment
Closed

Sikkerhet: Resource Server Does Not Correctly Validate JWTs #500

Andreass2 opened this issue Nov 19, 2024 · 1 comment

Comments

@Andreass2
Copy link
Collaborator

Fra DAST analyse mot testmiljø:
The application does not correctly validate JWTs, which can be exploited by attackers to present false claims and impersonate other users in the system. JWTs are typically used as access tokens to provide a user with access to a resource or application. The owner of the token sends the JWTs to the resource server (typically an API endpoint) and gets access to the resources, provided that the JWT is considered valid by the resource server.

løsnig:
Validate the JWTs. Ensure that all JWTs contain the expected claims and that those claims are validated:\n\n* The application must reject expired tokens ("exp").\n* The application must reject tokens that are not yet valid ("nbf").\n* The application must reject tokens that are intended for a different resource server of endpoint ("aud").\n* The application must reject tokens that were issued by an unauthorized issuer ("iss").\n* The application must reject tokens with an invalid signature.\n* If the application implements token revocation, the application must reject tokens that are revoked.

@Andreass2
Copy link
Collaborator Author

Andreass2 commented Nov 21, 2024

Correspondence is connected to #507
Broker is only on Health endpoint, which should not have auth

@github-project-automation github-project-automation bot moved this from Ready for dev to ✅ Done in Altinn melding og formidling Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

No branches or pull requests

1 participant