exploit the possibilities

DFLabs PTK 1.0.5 Cross Site Request Forgery

DFLabs PTK 1.0.5 Cross Site Request Forgery
Posted Feb 23, 2012
Authored by Ivano Binetti

DFLabs PTK versions 1.0.5 and below suffer from a cross site request forgery vulnerability.

tags | exploit, csrf
MD5 | c6feebc11667693b7609b3a53083ae11

DFLabs PTK 1.0.5 Cross Site Request Forgery

Change Mirror Download
# Exploit Title : DFLabs PTK <= 1.0.5 Multiple Vulnerabilities (Steal Authentication Credentials)
# Date : 22-02-2012
# Author : Ivano Binetti (http://ivanobinetti.com)
# Software link : http://sourceforge.net/projects/ptk-forensics/files/latest/download
# Vendor site : http://www.dflabs.com
# Version : 1.0.5 (and lower)
# Tested on : Ubuntu 10.04
+-------------------------[Steal Authentication Credentials by Ivano Binetti]-----------------------------------------------------------------------+

2)Vulnerability Description


DFLabs PTK is "an alternative advanced interface for the suite TSK (The Sleuth Kit)".

2)Vulnerability Description
PTK 1.0.5 (and lower) suffer from a CSRF vulnerability which allows an attacker to force administrator/investigator logout at web management
interface. Furthermore PTK's default installation (following the procedure indicated into PTK's "INSTALL" file) doesn't perform "http to https"
redirection in order to secure http connection by transport layer encryption. To default there isn't https redirection in the authentication
phase as well as there isn't https redirection during other PTK's activities. If an internal attacker (the nature of this tool makes difficult
that PTK may have public ip address) makes an Man in the Middle attack (I successfully made it using Dsniff and Ettercap) the CSRF vulnerability
found, forcing the administrator/investigator to logout, will aid the attacker to sniff authentication credentials. This condition can occur when
PTK is used in production environment and the investigator is conducting an analysis about internal people. Of course this logic can be extended
to any person which has access to internal LAN as an attacker which with a client-based exploit can control a internal client which can reach
PTK's server.

This vulnerability is correlated to poor session check into /<ptk_main_directory>/lib/logout.php script. In fact, differently from other php
script, where there is the php code like the following to session's check:

if (!isset($_SESSION['case_token']) or strcmp($_SESSION['user'],"admin")!=0 or strcmp($_SESSION['case_token'],$_GET['tk'])!=0 or $token_age > 300){
new AuditLog('Unauthorized access to delete_case '.sanitize(RemoveXSS($_GET['id']),PARANOID));
header("location: goto_home.php");

into /<ptk_main_directory>/lib/logout.php there isn't tha above check. This security flaw allows an attacker to force administrator/investigator
logout using a CSRF vulnerability.
When an administrator/investigator browses a web pages which contains the following html/javascript code he is forced to logout at the PTK web
management interface.

<body onload="javascript:document.forms[0].submit()">
<H2>CSRF Exploit to force ADMIN/INVESTIGATOR logout</H2>
<form method="GET" name="form0" action="http://<ptk_ip_address>:80/lib/logout.php">


Comments (1)

RSS Feed Subscribe to this comment feed

The vulnerability described in this advisory it is limited exclusively to the theoretical  applicability in the forensic field.  Whoever is familiar with the basics of computer forensics knows that the software used in laboratory is  in segregated and trusted network compared to the local LAN network of the lab itself. Thus it is very difficult for us to have a practical application of the exploit.

Comment by cbforensic
2012-04-17 09:33:17 UTC | Permalink | Reply
Login or Register to post a comment

File Archive:

October 2019

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Oct 1st
    24 Files
  • 2
    Oct 2nd
    15 Files
  • 3
    Oct 3rd
    7 Files
  • 4
    Oct 4th
    4 Files
  • 5
    Oct 5th
    10 Files
  • 6
    Oct 6th
    1 Files
  • 7
    Oct 7th
    21 Files
  • 8
    Oct 8th
    19 Files
  • 9
    Oct 9th
    5 Files
  • 10
    Oct 10th
    20 Files
  • 11
    Oct 11th
    17 Files
  • 12
    Oct 12th
    4 Files
  • 13
    Oct 13th
    4 Files
  • 14
    Oct 14th
    15 Files
  • 15
    Oct 15th
    19 Files
  • 16
    Oct 16th
    25 Files
  • 17
    Oct 17th
    17 Files
  • 18
    Oct 18th
    7 Files
  • 19
    Oct 19th
    1 Files
  • 20
    Oct 20th
    4 Files
  • 21
    Oct 21st
    5 Files
  • 22
    Oct 22nd
    0 Files
  • 23
    Oct 23rd
    0 Files
  • 24
    Oct 24th
    0 Files
  • 25
    Oct 25th
    0 Files
  • 26
    Oct 26th
    0 Files
  • 27
    Oct 27th
    0 Files
  • 28
    Oct 28th
    0 Files
  • 29
    Oct 29th
    0 Files
  • 30
    Oct 30th
    0 Files
  • 31
    Oct 31st
    0 Files

Top Authors In Last 30 Days

File Tags


packet storm

© 2019 Packet Storm. All rights reserved.

Security Services
Hosting By