CodeIgniter Weak Encryption Key

high Web App Scanning Plugin ID 115893

Synopsis

CodeIgniter Weak Encryption Key

Description

CodeIgniter applications use an encryption key to encrypt and sign various data, including session cookies and other sensitive information. This key is typically stored in the application/config/config.php file (the 'encryption_key' configuration value) and is used for multiple security-critical operations.

When a weak, default or easily guessable encryption key is used, it compromises the security of the entire application. Attackers can potentially decrypt sensitive data, forge valid session cookies to impersonate legitimate users, or even execute remote code in some scenarios through object injection attacks.

Solution

The secret key used to sign the cookies in the application must be stronger (long and random) to prevent it from being retrieved with a bruteforce attack.

See Also

https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html

Plugin Details

Severity: High

ID: 115893

Type: Check Based

Published: 12/4/2026

Updated: 12/4/2026

Scan Template: api, basic, full, pci, scan

Risk Information

VPR

Risk Factor: Medium

Score: 5.7

Percentile: 0

CVSS v2

Risk Factor: High

Base Score: 7.8

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:C/A:N

CVSS Score Source: Tenable

CVSS v3

Risk Factor: High

Base Score: 7.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

CVSS Score Source: Tenable

CVSS v4

Risk Factor: High

Base Score: 8.7

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

CVSS Score Source: Tenable

Reference Information