Skip to content
This repository has been archived by the owner on Aug 10, 2021. It is now read-only.

Fix security vulnerability #14

Merged
merged 1 commit into from
Jun 25, 2021
Merged

Fix security vulnerability #14

merged 1 commit into from
Jun 25, 2021

Conversation

giorgos-f3
Copy link

@giorgos-f3 giorgos-f3 commented Jun 24, 2021

Issue

Right now, if you were to validate the expires_at, not_before, and issued_at jwt fields while not setting them up as required.. Even if the presented value was an invalid string, the verification would pass.

Solution

Make sure that if the type is not expected, we return false. The presented solution should not cause any breaking changes.

Also, proceeded to add modules.

Fixes a security vulnerability where a jwt token could potentially be validated having invalid string characters.
@@ -0,0 +1,3 @@
module github.com/form3tech-oss/jwt-go
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should it be directed to the original repo i wonder 🤔

@giorgos-f3 giorgos-f3 marked this pull request as ready for review June 24, 2021 10:37
@giorgos-f3 giorgos-f3 merged commit a211650 into master Jun 25, 2021
@giorgos-f3 giorgos-f3 deleted the fix-vulnerability branch June 25, 2021 14:10
thaJeztah pushed a commit to thaJeztah/jwt that referenced this pull request Jul 29, 2021
Fixes a security vulnerability where a jwt token could potentially be validated having invalid string characters.

(cherry picked from commit a211650c6ae1cff6d7347d3e24070d65dcfb1122)
form3tech-oss/jwt-go#14

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
thaJeztah pushed a commit to thaJeztah/jwt that referenced this pull request Jul 29, 2021
Fixes a security vulnerability where a jwt token could potentially be validated having invalid string characters.

(cherry picked from commit a211650c6ae1cff6d7347d3e24070d65dcfb1122)
form3tech-oss/jwt-go#14

Co-Authored-By: Giorgos Lampadakis <82932062+giorgos-f3@users.noreply.github.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
oxisto pushed a commit to golang-jwt/jwt that referenced this pull request Jul 30, 2021
Fixes a security vulnerability where a jwt token could potentially be validated having invalid string characters.

(cherry picked from commit a211650c6ae1cff6d7347d3e24070d65dcfb1122)
form3tech-oss/jwt-go#14

Co-Authored-By: Giorgos Lampadakis <82932062+giorgos-f3@users.noreply.github.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants