-
Notifications
You must be signed in to change notification settings - Fork 7
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
qsh verification #40
qsh verification #40
Conversation
Please update the version too. |
Yes, please update README and explain when you must verify qsh and in what cases you want to skip it. |
@@ -81,12 +81,7 @@ def verify | |||
|
|||
qsh = Digest::SHA256.hexdigest(qsh) | |||
|
|||
unless data['qsh'] == qsh | |||
log(:error, "QSH mismatch for client_key #{data['iss']} and addon_key #{addon_key}") |
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.
@bulinutza did this log line turned useful to you? Do you depend on it or can it be removed?
We never had verification fail because of qsh mismatch, so I'm ok with
removing it.
…On Mon, Jul 26, 2021 at 11:44 AM Pawel Niewiadomski < ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In lib/atlassian-jwt-authentication/verify.rb
<#40 (comment)>
:
> @@ -81,12 +81,7 @@ def verify
qsh = Digest::SHA256.hexdigest(qsh)
- unless data['qsh'] == qsh
- log(:error, "QSH mismatch for client_key #{data['iss']} and addon_key #{addon_key}")
@bulinutza <https://github.com/bulinutza> did this log line turned useful
to you? Do you depend on it or can it be removed?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#40 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMEGGAR76TJ4BXXSCFP2WDTZUVBJANCNFSM5A7QWJEA>
.
|
|
@bulinutza you wanna take a look at this or should I merge it? |
copying behaviour from atlassian-connect-express https://bitbucket.org/atlassian/atlassian-connect-express/src/58263a23be29b5603367f47341e984725b6a89b6/lib/middleware/authentication.js#lines-217
based on
https://community.developer.atlassian.com/t/action-required-atlassian-connect-vulnerability-allows-bypass-of-app-qsh-verification-via-context-jwts/47072
Probably I need to put into README explanation of what is qsh?