Potential command injection with user input detected.
- Rule ID: php_lang_eval_using_user_input
- Languages: php
- Source: eval_using_user_input.yml
It is dangerous to use eval with user input, or to compile code with user-supplied data. Such practices can lead to command injection.
❌ Avoid using code execution methods with unsanitized user input.
- CWE-94: Improper Control of Generation of Code ('Code Injection')
- CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')
OWASP Top 10
To skip this rule during a scan, use the following flag
bearer scan /path/to/your-project/ --skip-rule=php_lang_eval_using_user_input
To run only this rule during a scan, use the following flag
bearer scan /path/to/your-project/ --only-rule=php_lang_eval_using_user_input
Ready to take the next step? Learn more about Bearer Cloud.