Trust boundary violation detected.

Description

Mixing trusted and untrusted data inside the same data structure can lead to untrusted data being mistakenly treated as being trusted.

Remediations

✅ Avoid adding trusted data to data structures containing untrusted data

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=java_lang_trust_boundary_violation

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

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

Ready to take the next step? Learn more about Bearer Cloud.