You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The errors thrown by this module include the request, options and response details.
These objects tend to carry sensitive information like Authorization headers and POST parameters which could contain passwords. Given that the functions calling request-promise should have all of the request context, I contend the potential security exposure is not worth the convenience of having this information on the error objects.
Consider, for instance, generic JSON logging of errors. It would be quite easy to leak passwords into log files. Unfortunately, this security threat is insidious in nature since it will only present itself under error circumstances. In other words, leaks are likely to go unnoticed until long after the software is running in production.
The text was updated successfully, but these errors were encountered:
The errors thrown by this module include the
request
,options
andresponse
details.These objects tend to carry sensitive information like Authorization headers and POST parameters which could contain passwords. Given that the functions calling
request-promise
should have all of the request context, I contend the potential security exposure is not worth the convenience of having this information on the error objects.Consider, for instance, generic JSON logging of errors. It would be quite easy to leak passwords into log files. Unfortunately, this security threat is insidious in nature since it will only present itself under error circumstances. In other words, leaks are likely to go unnoticed until long after the software is running in production.
The text was updated successfully, but these errors were encountered: