Cloudanix VulnDB

CVE-2014-8684

Critical · 9.8

CVSS

9.8

EPSS

72.2%

Published

Sep 19, 2017

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Attend

Attackers can guess secret session tokens by watching how long the system takes to check them, letting them pretend to be logged-in users and run harmful code inside the application.

Weaponized Chainable
Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Remote Code Execution
Component
Web Framework
Class
Cryptographic Weakness
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

The vulnerability stems from use of standard string comparison operators (such as == or strcmp) to compare cryptographic hashes of session cookies, enabling remote timing attacks that leak the correct hash value and allow spoofing of valid session cookies leading to PHP object injection.

Why it matters to the business

Attackers can hijack user sessions and execute arbitrary code on affected applications, resulting in data theft, unauthorized access, and full system compromise; the high EPSS score and weaponized exploit maturity increase urgency despite the age of the flaw.

How an attack unfolds

An attacker sends crafted session cookies while measuring response time differences caused by early-exit string comparisons; once the correct hash is deduced bit-by-bit, a valid session cookie is forged and used to trigger PHP object injection for code execution.

How to fix it

Upgrade CodeIgniter to version 3.0 or later and Kohana to versions beyond 3.3.2; replace all direct hash comparisons with constant-time functions such as hash_equals; review all session and cookie handling code for similar weaknesses.

How to confirm the fix worked

Audit source code for session cookie hash comparisons using ==, ===, strcmp, or strcasecmp; test with timing analysis tools to confirm constant-time behavior after remediation; verify upgrade by checking framework version strings in application files.

Typical attack path

  1. Identify an application using affected CodeIgniter or Kohana versions handling session cookies
  2. Perform timing side-channel analysis against the hash comparison routine
  3. Reconstruct a valid session cookie hash through iterative probing
  4. Submit the forged cookie to establish an authenticated session
  5. Craft malicious serialized PHP objects within the session to achieve code execution

How to detect it

Examine web server and application logs for repeated requests with varying session cookie values from the same source IP; look for timing patterns or error rates consistent with brute-force hash guessing; review PHP error logs for object injection attempts after session establishment.

What your security team should do

  • Prioritize patching all CodeIgniter and Kohana instances due to weaponized exploit availability and high EPSS
  • Implement code scanning rules to flag non-constant-time hash comparisons across the codebase
  • Monitor for anomalous session cookie lengths or values in application logs
  • Conduct a full inventory of downstream dependents to assess ecosystem exposure

The record

CodeIgniter before 3.0 and Kohana 3.2.3 and earlier and 3.3.x through 3.3.2 make it easier for remote attackers to spoof session cookies and consequently conduct PHP object injection attacks by leveraging use of standard string comparison operators to compare cryptographic hashes.

Affected packages

Ecosystem Package Introduced Fixed
Packagist codeigniter/framework 0 3.0.0
Packagist kohana/core 0 3.3.3

Related vulnerabilities