S4E just found a critical-severity finding from cve-2022-44727 scanner
PlatformPlansPartners
Resources
ToolsBlogDocs
Sign Up →
high·Misconfiguration·Updated Oct 8, 2024

Codeigniter Config Exposure Scanner

This scanner probes the /application/config/ directory and common config file paths to detect publicly accessible configuration files, enabling attackers to extract database credentials and encryption keys.

Est. Time~10 seconds
Scan TypeSingle Scan
Targetsurl
CostFree
2.5k
Times Used
continuous scan runs
3.4k
Continuously Checked
assets under CS
125
Vulnerabilities Found
confirmed findings
References
Detail

Codeigniter is a lightweight PHP framework widely used for building dynamic web applications. It is popular among developers for its simplicity, speed, and built-in libraries that simplify tasks like database access, session management, and input validation. Many small to medium-sized businesses and startups rely on Codeigniter for rapid prototyping and production deployments due to its minimal footprint and ease of customization.

Config exposure in Codeigniter occurs when sensitive configuration files, such as database.php or config.php, are left accessible via the web server. This vulnerability typically arises from misconfigured server permissions, improper .htaccess rules, or deploying the application without moving configuration files outside the public web root. Attackers can exploit this by directly requesting these files through a browser.

The scanner specifically targets the /application/config/ directory and common file names like database.php, config.php, and autoload.php. It sends HTTP requests to these paths and checks for successful responses that reveal file contents. If the server returns the file without proper access controls, the scanner flags it as a config exposure vulnerability.

If exploited, an attacker can obtain database credentials, encryption keys, and other sensitive settings, leading to unauthorized database access, data theft, or full system compromise. This can result in financial loss, reputational damage, and legal liabilities, especially if user data is exposed. Immediate remediation is critical to prevent exploitation.

Solution Advice
  • Move all configuration files outside the web root directory (e.g., above public_html or www).
  • Configure the web server to deny access to the /application/ directory using .htaccess or server directives.
  • Set restrictive file permissions (e.g., 640 or 600) on configuration files to limit access to the web server user only.
  • Use environment variables or a dedicated secrets manager to store sensitive data instead of hardcoding them in config files.
  • Implement a web application firewall (WAF) rule to block requests to known config file paths.
  • Regularly audit the web root for any exposed files using automated scanning tools.
  • Ensure the Codeigniter framework and all dependencies are updated to the latest versions to benefit from security patches.
  • Enable logging and monitor access logs for unusual requests to configuration file paths.

Get AI-powered remediation steps tailored to your asset.

Try AI Solutions →

Check your infrastructure.
Right now.

11,000+ scanners. Free to start. No credit card required.

Codeigniter Config Exposure Scanner | S4E Free Check