Vulnerabilities > CVE-2013-5680 - Improper Restriction of Operations Within the Bounds of A Memory Buffer vulnerability in LEE Howard Hylafax+

047910
CVSS 6.8 - MEDIUM
Attack vector
NETWORK
Attack complexity
MEDIUM
Privileges required
NONE
Confidentiality impact
PARTIAL
Integrity impact
PARTIAL
Availability impact
PARTIAL
network
lee-howard
CWE-119
nessus
exploit available

Summary

Heap-based buffer overflow in hfaxd in HylaFAX+ 5.2.4 through 5.5.3, when using LDAP authentication, might allow remote attackers to cause a denial of service (child hang) or execute arbitrary code via a long USER command.

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • Client-side Injection-induced Buffer Overflow
    This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
  • Filter Failure through Buffer Overflow
    In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
  • MIME Conversion
    An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.

Exploit-Db

descriptionHylaFAX+ 5.2.4 - 5.5.3 - Buffer Overflow. CVE-2013-5680,CVE-2130-5680. Dos exploit for linux platform
fileexploits/linux/dos/28683.txt
idEDB-ID:28683
last seen2016-02-03
modified2013-10-02
platformlinux
port
published2013-10-02
reporterDennis Jenkins
sourcehttps://www.exploit-db.com/download/28683/
titleHylaFAX+ 5.2.4 - 5.5.3 - Buffer Overflow
typedos

Nessus

NASL familyMisc.
NASL idHYLAFAX_5_5_4.NASL
descriptionAccording to its version number, the HylaFAX+ install hosted on the remote web server is 5.2.4 or later and prior to 5.5.4. It is, therefore, affected by a heap-based remote buffer overflow vulnerability. The flaw exists when
last seen2020-06-01
modified2020-06-02
plugin id76348
published2014-07-02
reporterThis script is Copyright (C) 2014-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/76348
titleHylaFAX+ 5.2.4 < 5.5.4 Remote Buffer Overflow
code
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(76348);
  script_version("1.4");
  script_cvs_date("Date: 2018/11/15 20:50:23");

  script_cve_id("CVE-2013-5680");
  script_bugtraq_id(62729);
  script_xref(name:"EDB-ID", value:"28683");

  script_name(english:"HylaFAX+ 5.2.4 < 5.5.4 Remote Buffer Overflow");
  script_summary(english:"Checks the version of HylaFAX+.");

  script_set_attribute(attribute:"synopsis", value:
"The remote host contains an application that is affected by a
heap-based remote buffer overflow vulnerability.");
  script_set_attribute(attribute:"description", value:
"According to its version number, the HylaFAX+ install hosted on the
remote web server is 5.2.4 or later and prior to 5.5.4. It is,
therefore, affected by a heap-based remote buffer overflow
vulnerability.

The flaw exists when 'hfaxd' is compiled with support for LDAP. The
user input for LDAP authentication is not properly validated. This
could allow a remote attacker to cause a denial of service or execute
arbitrary code.

Note that Nessus has not tested for this issues but has instead
relied only on the application's self-reported version number.");
  script_set_attribute(attribute:"see_also", value:"http://hylafax.sourceforge.net/news/5.5.4.php");
  script_set_attribute(attribute:"see_also", value:"https://seclists.org/bugtraq/2013/Sep/148");
  script_set_attribute(attribute:"solution", value:"Upgrade to version 5.5.4 or later.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P");
  script_set_cvss_temporal_vector("CVSS2#E:POC/RL:OF/RC:C");
  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2013/07/31");
  script_set_attribute(attribute:"patch_publication_date", value:"2013/08/06");
  script_set_attribute(attribute:"plugin_publication_date", value:"2014/07/02");

  script_set_attribute(attribute:"potential_vulnerability", value:"true");
  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:hylafax:hylafax");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_copyright(english:"This script is Copyright (C) 2014-2018 Tenable Network Security, Inc.");
  script_family(english:"Misc.");

  script_dependencies("hylafax_detect.nbin");
  script_require_keys("hylafax/installed", "hylafax/version", "Settings/ParanoidReport");
  script_require_ports("Services/hylafax", 4559);

  exit(0);
}

include("audit.inc");
include("global_settings.inc");
include("misc_func.inc");

port = get_service(svc:"hylafax", default:4559, exit_on_fail:TRUE);

if (report_paranoia < 2) audit(AUDIT_PARANOID);

banner = get_kb_item_or_exit("hylafax/banner");
version = get_kb_item_or_exit("hylafax/version");

fixed = '5.5.4';

ver = split(version, sep:'.', keep:FALSE);
for (i=0; i<max_index(ver); i++)
  ver[i] = int(ver[i]);

if (
  ver[0] == 5 &&
  (
    ver[1] == 2 ||
    ver[1] == 3 ||
    ver[1] == 4 ||
    (ver[1] == 5 && ver[2] < 4)
  )
)
{
 if (report_verbosity > 0)
  {
    report =
      '\n  Source            : ' + banner +
      '\n  Installed version : ' + version +
      '\n  Fixed version     : ' + fixed +
      '\n';
    security_warning(port:port, extra:report);
  }
  else security_warning(port);
}
else audit(AUDIT_LISTEN_NOT_VULN, "HylaFAX+", port, version);

Packetstorm

data sourcehttps://packetstormsecurity.com/files/download/123456/hylafaxplus-overflow.txt
idPACKETSTORM:123456
last seen2016-12-05
published2013-09-30
reporterDennis Jenkins
sourcehttps://packetstormsecurity.com/files/123456/HylaFAX-5.5.3-Buffer-Overflow.html
titleHylaFAX+ 5.5.3 Buffer Overflow