This host is installed with Tor and is prone to Information Disclosure
vulnerability.
###############################################################################
# OpenVAS Vulnerability Test
# $Id: secpod_tor_clients_info_disc_vuln_lin.nasl 5401 2017-02-23 09:46:07Z teissa $
#
# Tor Clients Information Disclosure Vulnerability (Linux)
#
# Authors:
# Antu Sanadi <[email protected]>
#
# Copyright:
# Copyright (c) 2010 SecPod, http://www.secpod.com
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2
# (or any later version), as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
###############################################################################
tag_impact = "Successful exploitation will allow attackers to obtain client IP information
that can help them launch further attacks.
Impact level: Application";
tag_affected = "Tor version 0.2.2.x before 0.2.2.7-alpha on Linux.";
tag_insight = "The issue is due to directory mirror which does not prevent logging of the
client IP address upon detection of erroneous client behavior, which might make
it easier for local users to discover the identities of clients by reading log
files.";
tag_solution = "Upgrade to version 0.2.2.7-alpha
http://www.torproject.org/download.html.en";
tag_summary = "This host is installed with Tor and is prone to Information Disclosure
vulnerability.";
if(description)
{
script_id(902103);
script_version("$Revision: 5401 $");
script_tag(name:"last_modification", value:"$Date: 2017-02-23 10:46:07 +0100 (Thu, 23 Feb 2017) $");
script_tag(name:"creation_date", value:"2010-01-28 16:24:05 +0100 (Thu, 28 Jan 2010)");
script_tag(name:"cvss_base", value:"2.1");
script_tag(name:"cvss_base_vector", value:"AV:L/AC:L/Au:N/C:P/I:N/A:N");
script_cve_id("CVE-2010-0384");
script_name("Tor Clients Information Disclosure Vulnerability (Linux)");
script_xref(name : "URL" , value : "http://secunia.com/advisories/38198");
script_xref(name : "URL" , value : "http://archives.seul.org/or/announce/Jan-2010/msg00000.html");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2010 SecPod");
script_family("General");
script_dependencies("secpod_tor_detect_lin.nasl");
script_require_keys("Tor/Linux/Ver");
script_tag(name : "affected" , value : tag_affected);
script_tag(name : "insight" , value : tag_insight);
script_tag(name : "solution" , value : tag_solution);
script_tag(name : "summary" , value : tag_summary);
script_tag(name : "impact" , value : tag_impact);
script_tag(name:"qod_type", value:"executable_version");
script_tag(name:"solution_type", value:"VendorFix");
exit(0);
}
include("http_func.inc");
include("version_func.inc");
torVer = get_kb_item("Tor/Linux/Ver");
if(torVer == NULL){
exit(0);
}
foreach torPort (make_list(9050, 9051, 8118))
{
if(get_port_state(torPort))
{
sndReq = string("GET / HTTP/1.1", "\r\n",
"Host: ", get_host_name(), "\r\n\r\n");
rcvRes = http_send_recv(port:torPort, data:sndReq);
if(!isnull(rcvRes) && "Tor" >< rcvRes)
{
torVer = ereg_replace(pattern:"-", replace:".", string:torVer);
if(torVer =~ "^0\.2\.2.*")
{
if(version_is_less(version:torVer, test_version:"0.2.2.7.alpha"))
{
security_message(torPort);
exit(0);
}
}
}
}
}