-
Notifications
You must be signed in to change notification settings - Fork 173
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
PLAID-SECRET is leaked in error objects #565
Comments
Thank you for the report! I have sent this to our security team for prioritization. We will be primarily tracking work on this issue on our internal tracker, but I have subscribed to the issue in our internal Jira and will do my best to remember to update it here once it's fixed. |
@phoenixy1 Any updates from the security team? I stumbled upon this issue and found that it affects us as well. If removing the secret from the error response is not possible or will take a while, it would be good to at least put a page in the docs warning against logging the full error. |
@donleistman Security evaluated this issue and agreed it should be fixed, but at a priority level that does not have an SLA associated, so we don't have an ETA to share on the fix. I'll update the README as suggested. |
Thanks @phoenixy1 ! Much appreciated |
Hey @phoenixy1 I noticed that the warning you added to the README was removed. Do you know if the issue was fixed? |
Sorry, the issue was that I forgot that the README files are generated from a template so the changes got overwritten when the README was regenerated. I've made the update to the template file for the README so it'll get propagated the next time it gets regenerated. |
When receiving a 400 error, using the Plaid client, the error thrown will contain the PLAID-SECRET key. Since it's a common practice to log an error object, this will often result in PLAID-SECRET being leaked to logs.
Consider the following scenario:
In this case, if we receive a 400 from the server (for example because the
client_user_id
is missing, or any other reason),err.config.headers
will includePLAID-SECRET
.I haven't tested this with other error codes.
The text was updated successfully, but these errors were encountered: