Rule Definition
Using raw user input for purpose of including files can expose application to stream injection attack vulnerability.
Remediation
Remove including files based on user input.
Violation Code Sample
<?php
include($_GET['filename']);
?>
Reference
https://cwe.mitre.org/data/definitions/98.html
Related Technologies
Technical Criterion
CWE-98 - Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion')
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.