Sitelet https://web.archive.org/web/20230906011943/https://github.com/github/codeql/pull/14089
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

Java: JWT decoding without verification #14089

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

amammad
Copy link
Contributor

@amammad amammad commented Aug 29, 2023

No description provided.


// only decode, no verification
String JwtToken2 = request.getParameter("JWT2");
decodeToken(JwtToken2);
Copy link
Contributor

Choose a reason for hiding this comment

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

Since nobody is using the result of decodeToken why does it matter whether we verify it or not?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

:) @intrigus-lgtm really fast response!
it is just an example if it is mandatory that I wrote a complete example then please let me know.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the sink is the jwt claims values so I think the query is OK but the example can be wrong I can extend the code or write more comment too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants