Sensitive data sent to Honeybadger detected.
- Rule ID: javascript_third_parties_honeybadger
- Languages: javascript
- Source: honeybadger.yml
Description
Leaking sensitive data to third-party error logging tools is a common cause of data leaks and can lead to data breaches. This rule looks for instances of sensitive data sent to Honeybadger.
Remediations
When sending data to logging libraries, ensure all sensitive data is removed.
If you really need to identify users, use unique identifiers from the database.
const Honeybadger = require("@honeybadger-io/js");
let context = { user: { uuid: "aacd05fd-8f5b-4bc6-aa8b-35e5fbf37325" } };
Honeybadger.setContext(context);
Resources
Associated CWE
OWASP Top 10
Ready to take the next step? Join the Bearer Cloud waitlist.