Use of reflection influenced by user input detected.
- Rule ID: php_lang_reflection_using_user_input
- Languages: php
- Source: reflection_using_user_input.yml
Description
Applications should not look up or manipulate code using user-supplied data.
Remediations
❌ Avoid using user input when using reflection:
$class = new ReflectionClass($_GET["class"])
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=php_lang_reflection_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_reflection_using_user_input
Ready to take the next step? Learn more about Bearer Cloud.