Lucene search

K
openvasCopyright (C) 2009 Greenbone Networks GmbHOPENVAS:800840
HistoryJul 17, 2009 - 12:00 a.m.

Tor 'relay.c' DNS Spoofing Vulnerability - July09 (Linux)

2009-07-1700:00:00
Copyright (C) 2009 Greenbone Networks GmbH
plugins.openvas.org
7

0.004 Low

EPSS

Percentile

73.6%

This host is installed with Tor and is prone to DNS Spoofing vulnerability.

###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_tor_dns_spoofing_vuln_jul09_lin.nasl 4892 2016-12-30 15:39:07Z teissa $
#
# Tor 'relay.c' DNS Spoofing Vulnerability - July09 (Linux)
#
# Authors:
# Sharath S <[email protected]>
#
# Copyright:
# Copyright (c) 2009 Greenbone Networks GmbH, http://www.greenbone.net
#
# 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 conduct DNS spoofing
  attacks.

  Impact level: Application";

tag_affected = "Tor version 0.2.x before 0.2.0.35 and 0.1.x before 0.1.2.8-beta on Linux.";
tag_insight = "Error in 'connection_edge_process_relay_cell_not_open' function in 'relay.c'
  in src/or/ allows exit relays to have an unspecified impact by causing
  controllers to accept DNS responses that redirect to an internal IP address
  via unknown vectors.";
tag_solution = "Upgrade to version 0.2.0.35 or 0.1.2.8-beta or later
  http://www.torproject.org/download.html.en";
tag_summary = "This host is installed with Tor and is prone to DNS Spoofing vulnerability.";

if(description)
{
  script_id(800840);
  script_version("$Revision: 4892 $");
  script_tag(name:"last_modification", value:"$Date: 2016-12-30 16:39:07 +0100 (Fri, 30 Dec 2016) $");
  script_tag(name:"creation_date", value:"2009-07-17 12:47:28 +0200 (Fri, 17 Jul 2009)");
  script_tag(name:"cvss_base", value:"5.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:N/I:N/A:P");
  script_cve_id("CVE-2009-2426");
  script_bugtraq_id(35505);
  script_name("Tor 'relay.c' DNS Spoofing Vulnerability - July09 (Linux)");
  script_xref(name : "URL" , value : "http://secunia.com/advisories/35546");
  script_xref(name : "URL" , value : "http://xforce.iss.net/xforce/xfdb/51377");
  script_xref(name : "URL" , value : "http://archives.seul.org/or/announce/Jun-2009/msg00000.html");

  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2009 Greenbone Networks GmbH");
  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");

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(egrep(pattern:"<a\ href=?[^?]+:\/\/www\.torproject\.org",
             string:rcvRes) && "Tor" >< rcvRes)
    {
      torVer = get_kb_item("Tor/Linux/Ver");
      torVer = ereg_replace(pattern:"-", replace:".", string:torVer);
      if(torVer == NULL){
        exit(0);
      }

      # Check for Tor version 0.2 < 0.2.0.35 and 0.1 < 0.1.2.8-beta
      if(version_in_range(version:torVer, test_version:"0.1",
                                          test_version2:"0.1.2.8.alpha")||
         version_in_range(version:torVer, test_version:"0.2",
                                          test_version2:"0.2.0.34.alpha"))
      {
        security_message(torPort);
        exit(0);
      }
    }
  }
}

0.004 Low

EPSS

Percentile

73.6%