Leakage of sensitive data to Airbrake
- Rule ID: javascript_third_parties_airbrake
- Languages: javascript
- Source: airbrake.yml
Description
Leaking sensitive data to third-party loggers like Airbrake is a common cause of data leaks and can lead to data breaches.
Remediations
- Do ensure all sensitive data is removed when logging errors or events to Airbrake
- Do use unique identifiers from the database if you really need to identify users.
airbrake.notify({
error: err,
params: { user: user.uuid },
});
References
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_airbrake
To run only this rule during a scan, use the following flag
bearer scan /path/to/your-project/ --only-rule=javascript_third_parties_airbrake