High severityPHPInsecure ConfigurationHIGH confidence
Allow URL Include Fopen Enabled
allow_url_include / allow_url_fopen is being enabled at runtime (CWE-829/CWE-98).
Standards mapping
Vulnerable vs. safe
Flagged by this check
ini_set("allow_url_include", 1);Passes - the safe pattern
ini_set("allow_url_include", 0);Why it matters & how to fix it
allow_url_include / allow_url_fopen is being enabled at runtime (CWE-829/CWE-98). This lets include/require and file functions pull code and data from remote URLs, turning path bugs into remote file inclusion. Keep allow_url_include = Off and avoid enabling allow_url_fopen.
References
Rule ID integsec-php-allow-url-include-fopen-enabled - engine: Opengrep - license: MIT - Copyright (c) IntegSec Inc.
TurboPentest runs this check automatically
Connect a GitHub repo and this check runs on every white-box pentest - AI-validated and reported with proof, from $99 per target.
Start a pentestRelated checks
- JavaScript / TypeScript - Insecure ConfigurationCORS Acao Wildcard Header
- JavaScript / TypeScript - Insecure ConfigurationCORS Wildcard Origin
- JavaScript / TypeScript - Insecure ConfigurationCORS Wildcard With Credentials
- JavaScript / TypeScript - Insecure ConfigurationCSRF Protection Disabled
- JavaScript / TypeScript - Insecure ConfigurationExpress Trust Proxy All
- JavaScript / TypeScript - Insecure ConfigurationExpress X Powered By Enabled