CVE-2014-10400
Description
The session.lua library in CGILua 5.0.x uses sequential session IDs, which makes it easier for remote attackers to predict the session ID and hijack arbitrary sessions. NOTE: this vulnerability was SPLIT from CVE-2014-2875.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
CGILua 5.0.x uses sequential session IDs, allowing remote attackers to predict and hijack sessions without authentication.
Vulnerability
The session.lua library in CGILua versions 5.0.x, 5.1.x, and 5.2 alpha releases generates weak session identifiers that are predictable or insufficiently random [1]. In CGILua 5.0.x, session IDs are sequential 8-digit numbers [1]. In CGILua 5.1.x, a bug causes all sessions to receive the same ID [1]. In CGILua 5.2 alpha, session IDs are generated based on OS time, typically 9 digits long [1]. Generating predictable session IDs violates secure session management best practices [1]. The affected versions include CGILua 5.0.x, 5.1.x, and 5.2 alpha 1 and alpha 2 [1].
Exploitation
An attacker needs only network access to the target web application that uses the vulnerable CGILua session library [1]. The generation mechanism is publicly known, as the source code is available on GitHub [1]. For 5.0.x, the attacker can enumerate sequential IDs in ascending order to find an active session [1]. For 5.1.x, all users get the same ID, so the attacker may already know a valid ID [1]. For 5.2 alpha, the attacker can brute-force IDs by guessing values based on OS timestamps [1]. No authentication or user interaction is required [1].
Impact
A successful attacker can hijack active user sessions, obtaining the same privileges and access rights as the legitimate user [1]. This includes potentially accessing sensitive data or performing actions on behalf of the victim [1]. The vulnerability compromises session integrity and confidentiality [1].
Mitigation
No official patch or fixed version has been released by the project maintainers [1]. The vendor was informed but the vulnerability was unpatched as of the advisory date [1]. Mitigation requires developers to replace the session.lua library with a custom implementation that generates cryptographically random session IDs [1]. As of 2020, the project status is unclear; users should consider migrating to alternative session management libraries or frameworks [1].
AI Insight generated on May 26, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
2- CGILua/session.lua librarydescription
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
3- seclists.org/fulldisclosure/2014/Apr/318mitrex_refsource_MISC
- www.securityfocus.com/archive/1/531981/100/0/threadedmitrex_refsource_MISC
- www.syhunt.com/en/index.phpmitrex_refsource_MISC
News mentions
0No linked articles in our index yet.