Lucene search
+L

IPFire 'OINKCODE' Parameter Remote Command Injection Vulnerability

🗓️ 06 Sep 2017 00:00:00Reported by Copyright (C) 2017 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 67 Views

IPFire 'OINKCODE' Parameter Remote Command injection Vulnerability. File 'ids.cgi' doesn't sanitize 'OINKCODE' parameter and allows system call for wget

Related
Refs
Code
ReporterTitlePublishedViews
Family
attackerkb
ATTACKERKB
CVE-2017-9757
19 Jun 201700:00
attackerkb
githubexploit
GithubExploit
Exploit for OS Command Injection in Ipfire
8 Aug 202601:05
githubexploit
circl
Circl
CVE-2017-9757
29 May 201815:50
circl
cnvd
CNVD
IPFire Remote Code Execution Vulnerability
14 Jun 201700:00
cnvd
checkpoint_advisories
Check Point Advisories
IPFire ids.cgi OINKCODE Parameter Command Injection (CVE-2017-9757)
23 Jul 201700:00
checkpoint_advisories
cve
CVE
CVE-2017-9757
19 Jun 201713:00
cve
cvelist
Cvelist
CVE-2017-9757
19 Jun 201713:00
cvelist
kitploit
Kitploit
IPFire_2.19_RCE_Authenticated
29 Aug 202606:45
kitploit
kitploit
Kitploit
CVE-2017-9757
27 Aug 202617:47
kitploit
metasploit
Metasploit
IPFire proxy.cgi RCE
9 Jun 201700:00
metasploit
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

if (description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.811728");
  script_version("2025-07-17T05:43:33+0000");
  script_cve_id("CVE-2017-9757");
  script_tag(name:"cvss_base", value:"6.5");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:S/C:P/I:P/A:P");
  script_tag(name:"last_modification", value:"2025-07-17 05:43:33 +0000 (Thu, 17 Jul 2025)");
  script_tag(name:"severity_vector", value:"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H");
  script_tag(name:"severity_origin", value:"NVD");
  script_tag(name:"severity_date", value:"2019-10-03 00:03:00 +0000 (Thu, 03 Oct 2019)");
  script_tag(name:"creation_date", value:"2017-09-06 16:29:23 +0530 (Wed, 06 Sep 2017)");
  script_name("IPFire 'OINKCODE' Parameter Remote Command Injection Vulnerability");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2017 Greenbone AG");
  script_family("General");
  script_dependencies("gather-package-list.nasl");
  script_mandatory_keys("ipfire/system-release");

  script_xref(name:"URL", value:"https://www.ipfire.org/blog/ipfire-2-19-core-update-112-released");
  script_xref(name:"URL", value:"https://www.exploit-db.com/exploits/42149");
  script_xref(name:"URL", value:"https://web.archive.org/web/20210124065654/http://www.securityfocus.com/bid/99173");

  script_tag(name:"summary", value:"IPFire is prone to a remote command injection vulnerability.");

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

  script_tag(name:"insight", value:"The flaw exists as the file 'ids.cgi' doesn't sanitize the
  'OINKCODE' parameter and input gets passed to a system call which call wget.");

  script_tag(name:"impact", value:"Successfully exploiting this issue may allow an attacker to
  execute arbitrary code in the context of the affected application. Failed exploit attempts may
  cause a denial-of-service condition.");

  script_tag(name:"affected", value:"IPFire versions prior to 2.19 - Core Update 112.");

  script_tag(name:"solution", value:"Update to version 2.19 - Core Update 112 or later.");

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

  exit(0);
}

include("version_func.inc");

if( ! rls = get_kb_item( "ipfire/system-release" ) )
  exit( 0 );

if( "IPFire" >!< rls )
  exit( 0 );

vers = eregmatch( pattern:'IPFire ([0-9.]+[^ ]*)', string:rls );
if( ! isnull( vers[1] ) )
  version = vers[1];

if( ! version )
  exit( 0 );

c = eregmatch( pattern:"core([0-9]+)", string:rls );
if( ! isnull( c[1] ) )
  core = c[1];
else
  core = 0;

chk_version = version + "." + core;

if( version_is_less( version:chk_version, test_version:"2.19.112" ) ) {
  report = report_fixed_ver( installed_version:version + " - Core Update" + core, fixed_version:"2.19 - Core Update 112" );
  security_message( port:0, data:report );
  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

17 Jul 2025 00:00Current
9High risk
Vulners AI Score9
CVSS 26.5
CVSS 38.8
EPSS0.32355
67