-
Notifications
You must be signed in to change notification settings - Fork 1.3k
HMAC Signatures and API Keys Logged in Plaintext Across Authentication Components #12006
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
Changes from all commits
f9a6394
c18a163
15b1cd8
a98887b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -534,7 +534,7 @@ private boolean verifyRequest(Map<String, Object[]> requestParameters) { | |
| // if api/secret key are passed to the parameters | ||
| if ((signature == null) || (apiKey == null)) { | ||
| if (LOGGER.isDebugEnabled()) { | ||
| LOGGER.debug("expired session, missing signature, or missing apiKey -- ignoring request...sig: " + signature + ", apiKey: " + apiKey); | ||
| LOGGER.debug("expired session, missing signature, or missing apiKey -- ignoring request"); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why do you consider this one harmful? if so, this is going over the connection as well. The apikey should not be a secret and the signature is generated from the apikey and the secretkey so should not give any information.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @DaanHoogland Thank you for the feedback. While I agree that HMAC signatures are Key concerns:
Suggested approach:
This aligns with the principle of least privilege and real-world security practices.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok, @YLChen-007 makes sense. |
||
| } | ||
| return false; // no signature, bad request | ||
| } | ||
|
|
||
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.