Leakage of sensitive data to RollBar

  • Rule ID: javascript_third_parties_rollbar
  • Languages: javascript
  • Source: rollbar.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 Rollbar.

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.

  Rollbar.critical("Connection error from remote Payments API", user.uuid);

Resources

Associated CWE

OWASP Top 10

Configuration

To skip this rule during a scan, use the following flag

bearer scan /path/to/your-project/ --skip-rule=javascript_third_parties_rollbar

To run only this rule during a scan, use the following flag

bearer scan /path/to/your-project/ --only-rule=javascript_third_parties_rollbar