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

jwk.py #329

Open
mr-n30 opened this issue Aug 16, 2023 · 0 comments
Open

jwk.py #329

mr-n30 opened this issue Aug 16, 2023 · 0 comments

Comments

@mr-n30
Copy link

mr-n30 commented Aug 16, 2023

Hello world,

The function construct in

def construct(key_data, algorithm=None):

contains an Generation of Error Message Containing Sensitive Information vulnerability that allows an attacker to view the victims Secret Key that is used to sign tokens. With the secret key an attacker would be able to create and sign valid tokens on the victims site and bypass authentication if JWT's are used for authorizing a user via the HTTP Authorization header for example. I've submitted a fix and PR:

#328

Best regards,
mr-n30

@mr-n30 mr-n30 changed the title jwk.py is vulnerable to an Information Disclosure vulnerability leaking victims secret key jwk.py is vulnerable Aug 18, 2023
@mr-n30 mr-n30 changed the title jwk.py is vulnerable jwk.py Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant