-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
fix(jwt-auth): real_payload was overridden by malicious payload #10982
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please refer jwt-auth.t and add some UT. The rest LGTM.
Test cases are needed |
Got it. |
t/plugin/jwt-auth4.t
Outdated
|
||
__DATA__ | ||
|
||
=== TEST 24: verify the real_payload's value (key & exp) is not overridden by malicious payload |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The index should be 1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I got some troube when building local test env.
I'm trying to fix it and will feedback asap.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I re-implement the test case and verified in local test env, please check it.
Any problem , pls contact me. thx!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you for your contribution!
Description
Fixes #10967
Checklist