Lucene search
+L

PuTTY DLL Hijacking Vulnerability - Windows

🗓️ 09 Feb 2017 00:00:00Reported by Copyright (C) 2017 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 43 Views

PuTTY DLL Hijacking Vulnerability - Windows. Vulnerable version 0.67

Related
Refs
Code
ReporterTitlePublishedViews
Family
cnvd
CNVD
PuTTY Elevation of Privilege Vulnerability
8 Jul 201600:00
cnvd
cve
CVE
CVE-2016-6167
30 Jan 201722:00
cve
cvelist
Cvelist
CVE-2016-6167
30 Jan 201722:00
cvelist
debiancve
Debian CVE
CVE-2016-6167
30 Jan 201722:00
debiancve
euvd
EUVD
EUVD-2016-7101
7 Oct 202500:30
euvd
nvd
NVD
CVE-2016-6167
30 Jan 201722:59
nvd
osv
OSV
CVE-2016-6167
30 Jan 201722:59
osv
packetstorm
Packet Storm
Putty Beta 0.67 DLL Hijacking
1 Jul 201600:00
packetstorm
prion
Prion
Design/Logic Flaw
30 Jan 201722:59
prion
susecve
SUSE CVE
SUSE CVE-2016-6167
15 Feb 202304:59
susecve
Rows per page
# SPDX-FileCopyrightText: 2017 Greenbone AG
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only

CPE = "cpe:/a:putty:putty";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.810541");
  script_version("2024-02-15T05:05:40+0000");
  script_tag(name:"last_modification", value:"2024-02-15 05:05:40 +0000 (Thu, 15 Feb 2024)");
  script_tag(name:"creation_date", value:"2017-02-09 14:25:24 +0530 (Thu, 09 Feb 2017)");
  script_tag(name:"cvss_base", value:"4.4");
  script_tag(name:"cvss_base_vector", value:"AV:L/AC:M/Au:N/C:P/I:P/A:P");
  script_tag(name:"severity_vector", value:"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H");
  script_tag(name:"severity_origin", value:"NVD");
  script_tag(name:"severity_date", value:"2022-05-01 01:50:00 +0000 (Sun, 01 May 2022)");

  script_cve_id("CVE-2016-6167");

  script_tag(name:"qod_type", value:"registry");

  script_tag(name:"solution_type", value:"VendorFix");

  script_name("PuTTY DLL Hijacking Vulnerability - Windows");

  script_category(ACT_GATHER_INFO);

  script_copyright("Copyright (C) 2017 Greenbone AG");
  script_family("General");
  script_dependencies("gb_putty_portable_detect.nasl");
  script_require_ports(139, 445);
  script_mandatory_keys("putty/detected");

  script_tag(name:"summary", value:"PuTTY is prone to a dll hijacking vulnerability.");

  script_tag(name:"insight", value:"The flaw is due to multiple untrusted search
  path errors.");

  script_tag(name:"impact", value:"Successful exploitation will allow remote
  attackers to execute arbitrary code in the context of the affected application.
  Failed exploit attempts will result in a denial of service condition.");

  script_tag(name:"vuldetect", value:"Checks if a vulnerable version is present on the target host.");

  script_tag(name:"affected", value:"PuTTY beta 0.67 (Windows installers
  created by Inno Setup for version 0.67) on Windows.");

  script_tag(name:"solution", value:"Upgrade to PuTTY version 0.67 or later
  (MSI format for PuTTY's Windows installer (generated by the WiX toolset)).");

  script_xref(name:"URL", value:"https://packetstormsecurity.com/files/137742");
  script_xref(name:"URL", value:"http://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html");
  script_xref(name:"URL", value:"http://www.chiark.greenend.org.uk/~sgtatham/putty");

  exit(0);
}

include("smb_nt.inc");
include("host_details.inc");
include("version_func.inc");

if( ! infos = get_app_version_and_location( cpe:CPE, exit_no_version:TRUE ) )
  exit( 0 );

version = infos["version"];
location = infos["location"];

os_arch = get_kb_item( "SMB/Windows/Arch" );
if( ! os_arch ) {
  exit( 0 );
}

## Only installer created by Inno Setup are vulnerable and Inno Setup
## creates the following keys.
## http://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html?
if( "x86" >< os_arch ) {
  key = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\PuTTY_is1";
}

else if( "x64" >< os_arch ) {
  key =  "SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\PuTTY_is1";
}

if( version_is_equal( version:version, test_version:"0.67" ) ) {
  inno_location = registry_get_sz( key:key,item:"Inno Setup: App Path" );
  if( ! inno_location ) {
    exit( 0 );
  }

  report = report_fixed_ver( installed_version:version, fixed_version:"0.67 (MSI format for PuTTY's Windows installer)", install_path:location );
  security_message( data:report, port:0 );
  exit( 0 );
}

exit( 99 );

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

15 Feb 2024 00:00Current
7.7High risk
Vulners AI Score7.7
CVSS 24.4
CVSS 3.17.8
EPSS0.00752
43