Unsanitized user input in session key

Description

Using user-defined data in a session key is bad practice and can allow attackers to perform unsafe actions.

Remediations

❌ Avoid using user-defined data in session keys

Resources

Associated CWE

Configuration

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

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

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

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