Vulnerabilities > CVE-2014-4047 - Unspecified vulnerability in Digium Asterisk and Certified Asterisk

047910
CVSS 5.0 - MEDIUM
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
NONE
Integrity impact
NONE
Availability impact
PARTIAL
network
low complexity
digium
nessus

Summary

Asterisk Open Source 1.8.x before 1.8.28.1, 11.x before 11.10.1, and 12.x before 12.3.1 and Certified Asterisk 1.8.15 before 1.8.15-cert6 and 11.6 before 11.6-cert3 allows remote attackers to cause a denial of service (connection consumption) via a large number of (1) inactive or (2) incomplete HTTP connections.

Vulnerable Configurations

Part Description Count
Application
Digium
217

Nessus

  • NASL familyMandriva Local Security Checks
    NASL idMANDRIVA_MDVSA-2014-138.NASL
    descriptionMultiple vulnerabilities has been discovered and corrected in asterisk : Asterisk Open Source 11.x before 11.10.1 and 12.x before 12.3.1 and Certified Asterisk 11.6 before 11.6-cert3 allows remote authenticated Manager users to execute arbitrary shell commands via a MixMonitor action (CVE-2014-4046). Asterisk Open Source 1.8.x before 1.8.28.1, 11.x before 11.10.1, and 12.x before 12.3.1 and Certified Asterisk 1.8.15 before 1.8.15-cert6 and 11.6 before 11.6-cert3 allows remote attackers to cause a denial of service (connection consumption) via a large number of (1) inactive or (2) incomplete HTTP connections (CVE-2014-4047). The updated packages has been upgraded to the 11.11.0 version which is not vulnerable to these issues.
    last seen2020-06-01
    modified2020-06-02
    plugin id76482
    published2014-07-13
    reporterThis script is Copyright (C) 2014-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/76482
    titleMandriva Linux Security Advisory : asterisk (MDVSA-2014:138)
    code
    #%NASL_MIN_LEVEL 80502
    
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from Mandriva Linux Security Advisory MDVSA-2014:138. 
    # The text itself is copyright (C) Mandriva S.A.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(76482);
      script_version("1.5");
      script_cvs_date("Date: 2019/08/02 13:32:56");
    
      script_cve_id("CVE-2014-4046", "CVE-2014-4047");
      script_bugtraq_id(68036, 68040);
      script_xref(name:"MDVSA", value:"2014:138");
    
      script_name(english:"Mandriva Linux Security Advisory : asterisk (MDVSA-2014:138)");
      script_summary(english:"Checks rpm output for the updated packages");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:
    "The remote Mandriva Linux host is missing one or more security
    updates."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "Multiple vulnerabilities has been discovered and corrected in 
    asterisk :
    
    Asterisk Open Source 11.x before 11.10.1 and 12.x before 12.3.1 and
    Certified Asterisk 11.6 before 11.6-cert3 allows remote authenticated
    Manager users to execute arbitrary shell commands via a MixMonitor
    action (CVE-2014-4046).
    
    Asterisk Open Source 1.8.x before 1.8.28.1, 11.x before 11.10.1, and
    12.x before 12.3.1 and Certified Asterisk 1.8.15 before 1.8.15-cert6
    and 11.6 before 11.6-cert3 allows remote attackers to cause a denial
    of service (connection consumption) via a large number of (1) inactive
    or (2) incomplete HTTP connections (CVE-2014-4047).
    
    The updated packages has been upgraded to the 11.11.0 version which is
    not vulnerable to these issues."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://downloads.asterisk.org/pub/security/AST-2014-006.html"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://downloads.asterisk.org/pub/security/AST-2014-007.html"
      );
      # http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-11.11.0-summary.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?b02f44bd"
      );
      script_set_attribute(attribute:"solution", value:"Update the affected packages.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:S/C:P/I:P/A:P");
      script_set_cvss_temporal_vector("CVSS2#E:ND/RL:OF/RC:C");
      script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"false");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:asterisk");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:asterisk-addons");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:asterisk-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:asterisk-firmware");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:asterisk-gui");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:asterisk-plugins-alsa");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:asterisk-plugins-calendar");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:asterisk-plugins-cel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:asterisk-plugins-corosync");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:asterisk-plugins-curl");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:asterisk-plugins-dahdi");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:asterisk-plugins-fax");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:asterisk-plugins-festival");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:asterisk-plugins-ices");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:asterisk-plugins-jabber");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:asterisk-plugins-jack");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:asterisk-plugins-ldap");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:asterisk-plugins-lua");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:asterisk-plugins-minivm");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:asterisk-plugins-mobile");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:asterisk-plugins-mp3");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:asterisk-plugins-mysql");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:asterisk-plugins-ooh323");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:asterisk-plugins-osp");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:asterisk-plugins-oss");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:asterisk-plugins-pgsql");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:asterisk-plugins-pktccops");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:asterisk-plugins-portaudio");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:asterisk-plugins-radius");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:asterisk-plugins-saycountpl");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:asterisk-plugins-skinny");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:asterisk-plugins-snmp");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:asterisk-plugins-speex");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:asterisk-plugins-sqlite");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:asterisk-plugins-tds");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:asterisk-plugins-unistim");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:asterisk-plugins-voicemail");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:asterisk-plugins-voicemail-imap");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:asterisk-plugins-voicemail-plain");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:lib64asteriskssl1");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:mandriva:business_server:1");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2014/07/11");
      script_set_attribute(attribute:"plugin_publication_date", value:"2014/07/13");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2014-2019 Tenable Network Security, Inc.");
      script_family(english:"Mandriva Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/cpu", "Host/Mandrake/release", "Host/Mandrake/rpm-list");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("global_settings.inc");
    include("rpm.inc");
    
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    if (!get_kb_item("Host/Mandrake/release")) audit(AUDIT_OS_NOT, "Mandriva / Mandake Linux");
    if (!get_kb_item("Host/Mandrake/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if (cpu !~ "^(amd64|i[3-6]86|x86_64)$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Mandriva / Mandrake Linux", cpu);
    
    
    flag = 0;
    if (rpm_check(release:"MDK-MBS1", cpu:"x86_64", reference:"asterisk-11.11.0-1.mbs1")) flag++;
    if (rpm_check(release:"MDK-MBS1", cpu:"x86_64", reference:"asterisk-addons-11.11.0-1.mbs1")) flag++;
    if (rpm_check(release:"MDK-MBS1", cpu:"x86_64", reference:"asterisk-devel-11.11.0-1.mbs1")) flag++;
    if (rpm_check(release:"MDK-MBS1", cpu:"x86_64", reference:"asterisk-firmware-11.11.0-1.mbs1")) flag++;
    if (rpm_check(release:"MDK-MBS1", cpu:"x86_64", reference:"asterisk-gui-11.11.0-1.mbs1")) flag++;
    if (rpm_check(release:"MDK-MBS1", cpu:"x86_64", reference:"asterisk-plugins-alsa-11.11.0-1.mbs1")) flag++;
    if (rpm_check(release:"MDK-MBS1", cpu:"x86_64", reference:"asterisk-plugins-calendar-11.11.0-1.mbs1")) flag++;
    if (rpm_check(release:"MDK-MBS1", cpu:"x86_64", reference:"asterisk-plugins-cel-11.11.0-1.mbs1")) flag++;
    if (rpm_check(release:"MDK-MBS1", cpu:"x86_64", reference:"asterisk-plugins-corosync-11.11.0-1.mbs1")) flag++;
    if (rpm_check(release:"MDK-MBS1", cpu:"x86_64", reference:"asterisk-plugins-curl-11.11.0-1.mbs1")) flag++;
    if (rpm_check(release:"MDK-MBS1", cpu:"x86_64", reference:"asterisk-plugins-dahdi-11.11.0-1.mbs1")) flag++;
    if (rpm_check(release:"MDK-MBS1", cpu:"x86_64", reference:"asterisk-plugins-fax-11.11.0-1.mbs1")) flag++;
    if (rpm_check(release:"MDK-MBS1", cpu:"x86_64", reference:"asterisk-plugins-festival-11.11.0-1.mbs1")) flag++;
    if (rpm_check(release:"MDK-MBS1", cpu:"x86_64", reference:"asterisk-plugins-ices-11.11.0-1.mbs1")) flag++;
    if (rpm_check(release:"MDK-MBS1", cpu:"x86_64", reference:"asterisk-plugins-jabber-11.11.0-1.mbs1")) flag++;
    if (rpm_check(release:"MDK-MBS1", cpu:"x86_64", reference:"asterisk-plugins-jack-11.11.0-1.mbs1")) flag++;
    if (rpm_check(release:"MDK-MBS1", cpu:"x86_64", reference:"asterisk-plugins-ldap-11.11.0-1.mbs1")) flag++;
    if (rpm_check(release:"MDK-MBS1", cpu:"x86_64", reference:"asterisk-plugins-lua-11.11.0-1.mbs1")) flag++;
    if (rpm_check(release:"MDK-MBS1", cpu:"x86_64", reference:"asterisk-plugins-minivm-11.11.0-1.mbs1")) flag++;
    if (rpm_check(release:"MDK-MBS1", cpu:"x86_64", reference:"asterisk-plugins-mobile-11.11.0-1.mbs1")) flag++;
    if (rpm_check(release:"MDK-MBS1", cpu:"x86_64", reference:"asterisk-plugins-mp3-11.11.0-1.mbs1")) flag++;
    if (rpm_check(release:"MDK-MBS1", cpu:"x86_64", reference:"asterisk-plugins-mysql-11.11.0-1.mbs1")) flag++;
    if (rpm_check(release:"MDK-MBS1", cpu:"x86_64", reference:"asterisk-plugins-ooh323-11.11.0-1.mbs1")) flag++;
    if (rpm_check(release:"MDK-MBS1", cpu:"x86_64", reference:"asterisk-plugins-osp-11.11.0-1.mbs1")) flag++;
    if (rpm_check(release:"MDK-MBS1", cpu:"x86_64", reference:"asterisk-plugins-oss-11.11.0-1.mbs1")) flag++;
    if (rpm_check(release:"MDK-MBS1", cpu:"x86_64", reference:"asterisk-plugins-pgsql-11.11.0-1.mbs1")) flag++;
    if (rpm_check(release:"MDK-MBS1", cpu:"x86_64", reference:"asterisk-plugins-pktccops-11.11.0-1.mbs1")) flag++;
    if (rpm_check(release:"MDK-MBS1", cpu:"x86_64", reference:"asterisk-plugins-portaudio-11.11.0-1.mbs1")) flag++;
    if (rpm_check(release:"MDK-MBS1", cpu:"x86_64", reference:"asterisk-plugins-radius-11.11.0-1.mbs1")) flag++;
    if (rpm_check(release:"MDK-MBS1", cpu:"x86_64", reference:"asterisk-plugins-saycountpl-11.11.0-1.mbs1")) flag++;
    if (rpm_check(release:"MDK-MBS1", cpu:"x86_64", reference:"asterisk-plugins-skinny-11.11.0-1.mbs1")) flag++;
    if (rpm_check(release:"MDK-MBS1", cpu:"x86_64", reference:"asterisk-plugins-snmp-11.11.0-1.mbs1")) flag++;
    if (rpm_check(release:"MDK-MBS1", cpu:"x86_64", reference:"asterisk-plugins-speex-11.11.0-1.mbs1")) flag++;
    if (rpm_check(release:"MDK-MBS1", cpu:"x86_64", reference:"asterisk-plugins-sqlite-11.11.0-1.mbs1")) flag++;
    if (rpm_check(release:"MDK-MBS1", cpu:"x86_64", reference:"asterisk-plugins-tds-11.11.0-1.mbs1")) flag++;
    if (rpm_check(release:"MDK-MBS1", cpu:"x86_64", reference:"asterisk-plugins-unistim-11.11.0-1.mbs1")) flag++;
    if (rpm_check(release:"MDK-MBS1", cpu:"x86_64", reference:"asterisk-plugins-voicemail-11.11.0-1.mbs1")) flag++;
    if (rpm_check(release:"MDK-MBS1", cpu:"x86_64", reference:"asterisk-plugins-voicemail-imap-11.11.0-1.mbs1")) flag++;
    if (rpm_check(release:"MDK-MBS1", cpu:"x86_64", reference:"asterisk-plugins-voicemail-plain-11.11.0-1.mbs1")) flag++;
    if (rpm_check(release:"MDK-MBS1", cpu:"x86_64", reference:"lib64asteriskssl1-11.11.0-1.mbs1")) flag++;
    
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:rpm_report_get());
      else security_warning(0);
      exit(0);
    }
    else audit(AUDIT_HOST_NOT, "affected");
    
  • NASL familyMisc.
    NASL idASTERISK_AST_2014_007.NASL
    descriptionAccording to the version in its SIP banner, the version of Asterisk running on the remote host is potentially affected by a denial of service vulnerability. A flaw exists in the handling of TCP and TLS connections when the connection is initiated but not completed. A remote attacker could repeatedly send such requests that may result in a denial of service. Note that Nessus has not tested for these issues but has instead relied only on the application
    last seen2020-06-01
    modified2020-06-02
    plugin id76088
    published2014-06-17
    reporterThis script is Copyright (C) 2014-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/76088
    titleAsterisk HTTP Session Handling DoS (AST-2014-007)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(76088);
      script_version("1.9");
      script_cvs_date("Date: 2018/06/27 18:42:26");
    
      script_cve_id("CVE-2014-4047");
      # script_bugtraq_id();
    
      script_name(english:"Asterisk HTTP Session Handling DoS (AST-2014-007)");
      script_summary(english:"Checks version in SIP banner.");
    
      script_set_attribute(attribute:"synopsis", value:
    "A telephony application running on the remote host is affected by a
    denial of service vulnerability.");
      script_set_attribute(attribute:"description", value:
    "According to the version in its SIP banner, the version of Asterisk
    running on the remote host is potentially affected by a denial of
    service vulnerability. A flaw exists in the handling of TCP and TLS
    connections when the connection is initiated but not completed. A
    remote attacker could repeatedly send such requests that may result in
    a denial of service.
    
    Note that Nessus has not tested for these issues but has instead
    relied only on the application's self-reported version number.");
      script_set_attribute(attribute:"solution", value:
    "Upgrade to Asterisk 1.8.28.1 / 11.10.1 / 12.3.1 / Certified Asterisk
    1.8.15-cert6 / 11.6-cert3, or apply the appropriate patch listed in
    the Asterisk advisory.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:P");
      script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
      script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"false");
      script_set_attribute(attribute:"see_also", value:"http://downloads.asterisk.org/pub/security/AST-2014-007.html");
      # http://asterisktimes.xdev.net/2014/06/13/asterisk-1-8-15-cert7-1-8-28-2-11-6-cert4-11-10-2-12-3-2-now-available-securityregression-release/
      script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?d949b72e");
      script_set_attribute(attribute:"see_also", value:"https://issues.asterisk.org/jira/browse/ASTERISK-23673");
      # http://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLog-1.8.28.1
      script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?95c079df");
      # http://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLog-11.10.1
      script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?dd99d03c");
      # http://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLog-12.3.1
      script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?12bda26e");
      # http://downloads.asterisk.org/pub/telephony/certified-asterisk/releases/ChangeLog-1.8.15-cert6
      script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?98e4995b");
      # http://downloads.asterisk.org/pub/telephony/certified-asterisk/releases/ChangeLog-11.6-cert3
      script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?7d60d352");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2014/06/12");
      script_set_attribute(attribute:"patch_publication_date", value:"2014/06/12");
      script_set_attribute(attribute:"plugin_publication_date", value:"2014/06/17");
    
      script_set_attribute(attribute:"potential_vulnerability", value:"true");
      script_set_attribute(attribute:"plugin_type", value:"remote");
      script_set_attribute(attribute:"cpe", value:"cpe:/a:digium:asterisk");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_family(english:"Misc.");
    
      script_copyright(english:"This script is Copyright (C) 2014-2018 Tenable Network Security, Inc.");
    
      script_dependencies("asterisk_detection.nasl");
      script_require_keys("asterisk/sip_detected", "Settings/ParanoidReport");
    
      exit(0);
    }
    
    include("audit.inc");
    include("global_settings.inc");
    include("misc_func.inc");
    
    get_kb_item_or_exit("asterisk/sip_detected");
    
    asterisk_kbs = get_kb_list_or_exit("sip/asterisk/*/version");
    
    if (report_paranoia < 2) audit(AUDIT_PARANOID);
    
    is_vuln = FALSE;
    not_vuln_installs = make_list();
    errors = make_list();
    
    foreach kb_name (keys(asterisk_kbs))
    {
      vulnerable = 0;
    
      matches = eregmatch(pattern:"/(udp|tcp)/([0-9]+)/version", string:kb_name);
      if (isnull(matches))
      {
        errors = make_list(errors, "Unexpected error parsing port number from '"+kb_name+"'.");
        continue;
      }
    
      proto = matches[1];
      port  = matches[2];
      version = asterisk_kbs[kb_name];
    
      if (version == 'unknown')
      {
        errors = make_list(errors, "Unable to obtain version of install on " + proto + "/" + port + ".");
        continue;
      }
    
      banner = get_kb_item("sip/asterisk/" + proto + "/" + port + "/source");
      if (!banner)
      {
        # We have version but banner is missing;
        # log error and use in version-check though.
        errors = make_list(errors, "KB item 'sip/asterisk/" + proto + "/" + port + "/source' is missing.");
        banner = 'unknown';
      }
    
      # Open Source 1.8.x < 1.8.28.1
      if (version =~ "^1\.8([^0-9]|$)" && "cert" >!< tolower(version))
      {
        fixed = "1.8.28.1";
        vulnerable = ver_compare(ver:version, fix:fixed, app:"asterisk");
      }
    
      # Open Source 11.x < 11.10.1
      if (version =~ "^11([^0-9]|$)" && "cert" >!< tolower(version))
      {
        fixed = "11.10.1";
        vulnerable = ver_compare(ver:version, fix:fixed, app:"asterisk");
      }
    
      # Open Source 12.x < 12.3.1
      if (version =~ "^12\." && "cert" >!< tolower(version))
      {
        fixed = "12.3.1";
        vulnerable = ver_compare(ver:version, fix:fixed, app:"asterisk");
      }
    
      # Asterisk Certified 1.8.15-certx < 1.8.15-cert6
      if (version =~ "^1\.8\.15([^0-9])" && "cert" >< tolower(version))
      {
        fixed = "1.8.15-cert6";
        vulnerable = ver_compare(ver:version, fix:fixed, app:"asterisk");
      }
    
      # Asterisk Certified 11.6-certx < 11.6-cert3
      if (version =~ "^11\.6([^0-9])" && "cert" >< tolower(version))
      {
        fixed = "11.6-cert3";
        vulnerable = ver_compare(ver:version, fix:fixed, app:"asterisk");
      }
    
    
      if (vulnerable < 0)
      {
        is_vuln = TRUE;
        if (report_verbosity > 0)
        {
          report =
            '\n  Version source    : ' + banner +
            '\n  Installed version : ' + version +
            '\n  Fixed version     : ' + fixed + '\n';
          security_warning(port:port, proto:proto, extra:report);
        }
        else security_warning(port:port, proto:proto);
      }
      else not_vuln_installs = make_list(not_vuln_installs, version + " on port " + proto + "/" + port);
    }
    
    if (max_index(errors))
    {
      if (max_index(errors) == 1) errmsg = errors[0];
      else errmsg = 'Errors were encountered verifying installs : \n  ' + join(errors, sep:'\n  ');
    
      exit(1, errmsg);
    }
    else
    {
      installs = max_index(not_vuln_installs);
      if (installs == 0)
      {
        if (is_vuln)
          exit(0);
        else
          audit(AUDIT_NOT_INST, "Asterisk");
      }
      else if (installs == 1) audit(AUDIT_INST_VER_NOT_VULN, "Asterisk " + not_vuln_installs[0]);
      else exit(0, "The Asterisk installs (" + join(not_vuln_installs, sep:", ") + ") are not affected.");
    }
    
  • NASL familyFreeBSD Local Security Checks
    NASL idFREEBSD_PKG_F109B02FF5A411E382E900A098B18457.NASL
    descriptionThe Asterisk project reports : Asterisk Manager User Unauthorized Shell Access. Manager users can execute arbitrary shell commands with the MixMonitor manager action. Asterisk does not require system class authorization for a manager user to use the MixMonitor action, so any manager user who is permitted to use manager commands can potentially execute shell commands as the user executing the Asterisk process. Exhaustion of Allowed Concurrent HTTP Connections. Establishing a TCP or TLS connection to the configured HTTP or HTTPS port respectively in http.conf and then not sending or completing a HTTP request will tie up a HTTP session. By doing this repeatedly until the maximum number of open HTTP sessions is reached, legitimate requests are blocked.
    last seen2020-06-01
    modified2020-06-02
    plugin id76103
    published2014-06-18
    reporterThis script is Copyright (C) 2014-2018 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/76103
    titleFreeBSD : asterisk -- multiple vulnerabilities (f109b02f-f5a4-11e3-82e9-00a098b18457)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from the FreeBSD VuXML database :
    #
    # Copyright 2003-2018 Jacques Vidrine and contributors
    #
    # Redistribution and use in source (VuXML) and 'compiled' forms (SGML,
    # HTML, PDF, PostScript, RTF and so forth) with or without modification,
    # are permitted provided that the following conditions are met:
    # 1. Redistributions of source code (VuXML) must retain the above
    #    copyright notice, this list of conditions and the following
    #    disclaimer as the first lines of this file unmodified.
    # 2. Redistributions in compiled form (transformed to other DTDs,
    #    published online in any format, converted to PDF, PostScript,
    #    RTF and other formats) must reproduce the above copyright
    #    notice, this list of conditions and the following disclaimer
    #    in the documentation and/or other materials provided with the
    #    distribution.
    # 
    # THIS DOCUMENTATION IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS"
    # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
    # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
    # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS
    # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
    # OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
    # OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
    # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
    # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
    # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS DOCUMENTATION,
    # EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(76103);
      script_version("1.6");
      script_cvs_date("Date: 2018/12/19 13:21:18");
    
      script_cve_id("CVE-2014-4046", "CVE-2014-4047");
    
      script_name(english:"FreeBSD : asterisk -- multiple vulnerabilities (f109b02f-f5a4-11e3-82e9-00a098b18457)");
      script_summary(english:"Checks for updated packages in pkg_info output");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:
    "The remote FreeBSD host is missing one or more security-related
    updates."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "The Asterisk project reports :
    
    Asterisk Manager User Unauthorized Shell Access. Manager users can
    execute arbitrary shell commands with the MixMonitor manager action.
    Asterisk does not require system class authorization for a manager
    user to use the MixMonitor action, so any manager user who is
    permitted to use manager commands can potentially execute shell
    commands as the user executing the Asterisk process.
    
    Exhaustion of Allowed Concurrent HTTP Connections. Establishing a TCP
    or TLS connection to the configured HTTP or HTTPS port respectively in
    http.conf and then not sending or completing a HTTP request will tie
    up a HTTP session. By doing this repeatedly until the maximum number
    of open HTTP sessions is reached, legitimate requests are blocked."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://downloads.asterisk.org/pub/security/AST-2014-006.pdf"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://downloads.asterisk.org/pub/security/AST-2014-007.pdf"
      );
      # https://www.asterisk.org/security
      script_set_attribute(
        attribute:"see_also",
        value:"https://www.asterisk.org/downloads/security-advisories"
      );
      # https://vuxml.freebsd.org/freebsd/f109b02f-f5a4-11e3-82e9-00a098b18457.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?cf07264a"
      );
      script_set_attribute(attribute:"solution", value:"Update the affected packages.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:S/C:P/I:P/A:P");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:freebsd:freebsd:asterisk11");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:freebsd:freebsd:asterisk18");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:freebsd:freebsd");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2014/06/12");
      script_set_attribute(attribute:"patch_publication_date", value:"2014/06/17");
      script_set_attribute(attribute:"plugin_publication_date", value:"2014/06/18");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2014-2018 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"FreeBSD Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/FreeBSD/release", "Host/FreeBSD/pkg_info");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("freebsd_package.inc");
    
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    if (!get_kb_item("Host/FreeBSD/release")) audit(AUDIT_OS_NOT, "FreeBSD");
    if (!get_kb_item("Host/FreeBSD/pkg_info")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    
    flag = 0;
    
    if (pkg_test(save_report:TRUE, pkg:"asterisk11<11.10.1")) flag++;
    if (pkg_test(save_report:TRUE, pkg:"asterisk18<1.8.28.1")) flag++;
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:pkg_report_get());
      else security_warning(0);
      exit(0);
    }
    else audit(AUDIT_HOST_NOT, "affected");
    
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2014-7551.NASL
    descriptionThe Asterisk Development Team has announced security releases for Certified Asterisk 1.8.15, 11.6, and Asterisk 1.8, 11, and 12. The available security releases are released as versions 1.8.15-cert7, 11.6-cert4, 1.8.28.2, 11.10.2, and 12.3.2. These releases are available for immediate download at http://downloads.asterisk.org/pub/telephony/asterisk/releases These releases resolve security vulnerabilities that were previously fixed in 1.8.15-cert6, 11.6-cert3, 1.8.28.1, 11.10.1, and 12.3.1. Unfortunately, the fix for AST-2014-007 inadvertently introduced a regression in Asterisk
    last seen2020-03-17
    modified2014-09-22
    plugin id77768
    published2014-09-22
    reporterThis script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/77768
    titleFedora 20 : asterisk-11.10.2-2.fc20 (2014-7551)
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from Fedora Security Advisory 2014-7551.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(77768);
      script_version("1.7");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/03/12");
    
      script_cve_id("CVE-2014-4047");
      script_bugtraq_id(68036);
      script_xref(name:"FEDORA", value:"2014-7551");
    
      script_name(english:"Fedora 20 : asterisk-11.10.2-2.fc20 (2014-7551)");
      script_summary(english:"Checks rpm output for the updated package.");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote Fedora host is missing a security update."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "The Asterisk Development Team has announced security releases for
    Certified Asterisk 1.8.15, 11.6, and Asterisk 1.8, 11, and 12. The
    available security releases are released as versions 1.8.15-cert7,
    11.6-cert4, 1.8.28.2, 11.10.2, and 12.3.2.
    
    These releases are available for immediate download at
    http://downloads.asterisk.org/pub/telephony/asterisk/releases
    
    These releases resolve security vulnerabilities that were previously
    fixed in 1.8.15-cert6, 11.6-cert3, 1.8.28.1, 11.10.1, and 12.3.1.
    Unfortunately, the fix for AST-2014-007 inadvertently introduced a
    regression in Asterisk's TCP and TLS handling that prevented Asterisk
    from sending data over these transports. This regression and the
    security vulnerabilities have been fixed in the versions specified in
    this release announcement.
    
    The security patches for AST-2014-007 have been updated with the fix
    for the regression, and are available at
    http://downloads.asterisk.org/pub/security
    
    Please note that the release of these versions resolves the following
    security vulnerabilities :
    
      - AST-2014-005: Remote Crash in PJSIP Channel Driver's
        Publish/Subscribe Framework
    
      - AST-2014-006: Permission Escalation via Asterisk Manager
        User Unauthorized Shell Access
    
      - AST-2014-007: Denial of Service via Exhaustion of
        Allowed Concurrent HTTP Connections
    
      - AST-2014-008: Denial of Service in PJSIP Channel Driver
        Subscriptions
    
    For more information about the details of these vulnerabilities,
    please read security advisories AST-2014-005, AST-2014-006,
    AST-2014-007, and AST-2014-008, which were released with the previous
    versions that addressed these vulnerabilities.
    
    For a full list of changes in the current releases, please see the
    ChangeLogs :
    
    http://downloads.asterisk.org/pub/telephony/certified-asterisk/release
    s/ChangeLog-1.8.15-cert7
    http://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLo
    g-1.8.28.2
    http://downloads.asterisk.org/pub/telephony/certified-asterisk/release
    s/ChangeLog-11.6-cert4
    http://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLo
    g-11.10.2
    http://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLo
    g-12.3.2
    
    The security advisories are available at :
    
      -
        http://downloads.asterisk.org/pub/security/AST-2014-005.
        pdf
    
        -
          http://downloads.asterisk.org/pub/security/AST-2014-00
          6.pdf
    
        -
          http://downloads.asterisk.org/pub/security/AST-2014-00
          7.pdf
    
        -
          http://downloads.asterisk.org/pub/security/AST-2014-00
          8.pdf
    
    The Asterisk Development Team has announced security releases for
    Certified Asterisk 1.8.15, 11.6, and Asterisk 1.8, 11, and 12. The
    available security releases are released as versions 1.8.15-cert6,
    11.6-cert3, 1.8.28.1, 11.10.1, and 12.3.1.
    
    These releases are available for immediate download at
    http://downloads.asterisk.org/pub/telephony/asterisk/releases
    
    The release of these versions resolves the following issue :
    
      - AST-2014-007: Denial of Service via Exhaustion of
        Allowed Concurrent HTTP Connections
    
        Establishing a TCP or TLS connection to the configured
        HTTP or HTTPS port respectively in http.conf and then
        not sending or completing a HTTP request will tie up a
        HTTP session. By doing this repeatedly until the maximum
        number of open HTTP sessions is reached, legitimate
        requests are blocked.
    
    Additionally, the release of 11.6-cert3, 11.10.1, and 12.3.1 resolves
    the following issue :
    
      - AST-2014-006: Permission Escalation via Asterisk Manager
        User Unauthorized Shell Access
    
        Manager users can execute arbitrary shell commands with
        the MixMonitor manager action. Asterisk does not require
        system class authorization for a manager user to use the
        MixMonitor action, so any manager user who is permitted
        to use manager commands can potentially execute shell
        commands as the user executing the Asterisk process.
    
    Additionally, the release of 12.3.1 resolves the following issues :
    
      - AST-2014-005: Remote Crash in PJSIP Channel Driver's
        Publish/Subscribe Framework
    
        A remotely exploitable crash vulnerability exists in the
        PJSIP channel driver's pub/sub framework. If an attempt
        is made to unsubscribe when not currently subscribed and
        the endpoint's 'sub_min_expiry' is set to zero,
        Asterisk tries to create an expiration timer with zero
        seconds, which is not allowed, so an assertion raised.
    
      - AST-2014-008: Denial of Service in PJSIP Channel Driver
        Subscriptions
    
        When a SIP transaction timeout caused a subscription to
        be terminated, the action taken by Asterisk was
        guaranteed to deadlock the thread on which SIP requests
        are serviced. Note that this behavior could only happen
        on established subscriptions, meaning that this could
        only be exploited if an attacker bypassed authentication
        and successfully subscribed to a real resource on the
        Asterisk server.
    
    These issues and their resolutions are described in the security
    advisories.
    
    For more information about the details of these vulnerabilities,
    please read security advisories AST-2014-005, AST-2014-006,
    AST-2014-007, and AST-2014-008, which were released at the same time
    as this announcement.
    
    For a full list of changes in the current releases, please see the
    ChangeLogs :
    
    http://downloads.asterisk.org/pub/telephony/certified-asterisk/release
    s/ChangeLog-1.8.15-cert6
    http://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLo
    g-1.8.28.1
    http://downloads.asterisk.org/pub/telephony/certified-asterisk/release
    s/ChangeLog-11.6-cert3
    http://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLo
    g-11.10.1
    http://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLo
    g-12.3.1
    
    The Asterisk Development Team has announced the release of Asterisk
    11.10.0. This release is available for immediate download at
    http://downloads.asterisk.org/pub/telephony/asterisk
    
    The release of Asterisk 11.10.0 resolves several issues reported by
    the community and would have not been possible without your
    participation. Thank you!
    
    The following are the issues resolved in this release :
    
    Bugs fixed in this release :
    
    Note that Tenable Network Security has extracted the preceding
    description block directly from the Fedora security advisory. Tenable
    has attempted to automatically clean and format it as much as possible
    without introducing additional issues."
      );
      # http://downloads.asterisk.org/pub/security
      script_set_attribute(
        attribute:"see_also",
        value:"http://downloads.asterisk.org/pub/security/"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://downloads.asterisk.org/pub/security/AST-2014-005.pdf"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://downloads.asterisk.org/pub/security/AST-2014-006.pdf"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://downloads.asterisk.org/pub/security/AST-2014-007.pdf"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://downloads.asterisk.org/pub/security/AST-2014-008.pdf"
      );
      # http://downloads.asterisk.org/pub/telephony/asterisk
      script_set_attribute(
        attribute:"see_also",
        value:"http://downloads.asterisk.org/pub/telephony/asterisk/"
      );
      # http://downloads.asterisk.org/pub/telephony/asterisk/releases
      script_set_attribute(
        attribute:"see_also",
        value:"http://downloads.asterisk.org/pub/telephony/asterisk/releases/"
      );
      # http://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLog-1.8.28.1
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?95c079df"
      );
      # http://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLog-1.8.28.2
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?2dca7a1f"
      );
      # http://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLog-11.10.1
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?dd99d03c"
      );
      # http://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLog-11.10.2
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?050e7912"
      );
      # http://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLog-12.3.1
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?12bda26e"
      );
      # http://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLog-12.3.2
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?7c6cd6b3"
      );
      # http://downloads.asterisk.org/pub/telephony/certified-asterisk/releases/ChangeLog-1.8.15-cert6
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?98e4995b"
      );
      # http://downloads.asterisk.org/pub/telephony/certified-asterisk/releases/ChangeLog-1.8.15-cert7
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?b3e371d8"
      );
      # http://downloads.asterisk.org/pub/telephony/certified-asterisk/releases/ChangeLog-11.6-cert3
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?7d60d352"
      );
      # http://downloads.asterisk.org/pub/telephony/certified-asterisk/releases/ChangeLog-11.6-cert4
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?919a96f7"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.redhat.com/show_bug.cgi?id=1109284"
      );
      # https://lists.fedoraproject.org/pipermail/package-announce/2014-September/137731.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?d529ac00"
      );
      script_set_attribute(
        attribute:"solution", 
        value:"Update the affected asterisk package."
      );
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:P");
      script_set_cvss_temporal_vector("CVSS2#E:ND/RL:OF/RC:C");
      script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"false");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fedoraproject:fedora:asterisk");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:fedoraproject:fedora:20");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2014/06/17");
      script_set_attribute(attribute:"patch_publication_date", value:"2014/06/21");
      script_set_attribute(attribute:"plugin_publication_date", value:"2014/09/22");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"Fedora Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/RedHat/release", "Host/RedHat/rpm-list");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("global_settings.inc");
    include("rpm.inc");
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    release = get_kb_item("Host/RedHat/release");
    if (isnull(release) || "Fedora" >!< release) audit(AUDIT_OS_NOT, "Fedora");
    os_ver = eregmatch(pattern: "Fedora.*release ([0-9]+)", string:release);
    if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Fedora");
    os_ver = os_ver[1];
    if (! ereg(pattern:"^20([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Fedora 20.x", "Fedora " + os_ver);
    
    if (!get_kb_item("Host/RedHat/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Fedora", cpu);
    
    flag = 0;
    if (rpm_check(release:"FC20", reference:"asterisk-11.10.2-2.fc20")) flag++;
    
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:rpm_report_get());
      else security_warning(0);
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "asterisk");
    }
    
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2014-7570.NASL
    descriptionThe Asterisk Development Team has announced security releases for Certified Asterisk 1.8.15, 11.6, and Asterisk 1.8, 11, and 12. The available security releases are released as versions 1.8.15-cert7, 11.6-cert4, 1.8.28.2, 11.10.2, and 12.3.2. These releases are available for immediate download at http://downloads.asterisk.org/pub/telephony/asterisk/releases These releases resolve security vulnerabilities that were previously fixed in 1.8.15-cert6, 11.6-cert3, 1.8.28.1, 11.10.1, and 12.3.1. Unfortunately, the fix for AST-2014-007 inadvertently introduced a regression in Asterisk
    last seen2020-03-17
    modified2014-09-22
    plugin id77769
    published2014-09-22
    reporterThis script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/77769
    titleFedora 19 : asterisk-11.10.2-2.fc19 (2014-7570)
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from Fedora Security Advisory 2014-7570.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(77769);
      script_version("1.7");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/03/12");
    
      script_cve_id("CVE-2014-4047");
      script_bugtraq_id(68036);
      script_xref(name:"FEDORA", value:"2014-7570");
    
      script_name(english:"Fedora 19 : asterisk-11.10.2-2.fc19 (2014-7570)");
      script_summary(english:"Checks rpm output for the updated package.");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote Fedora host is missing a security update."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "The Asterisk Development Team has announced security releases for
    Certified Asterisk 1.8.15, 11.6, and Asterisk 1.8, 11, and 12. The
    available security releases are released as versions 1.8.15-cert7,
    11.6-cert4, 1.8.28.2, 11.10.2, and 12.3.2.
    
    These releases are available for immediate download at
    http://downloads.asterisk.org/pub/telephony/asterisk/releases
    
    These releases resolve security vulnerabilities that were previously
    fixed in 1.8.15-cert6, 11.6-cert3, 1.8.28.1, 11.10.1, and 12.3.1.
    Unfortunately, the fix for AST-2014-007 inadvertently introduced a
    regression in Asterisk's TCP and TLS handling that prevented Asterisk
    from sending data over these transports. This regression and the
    security vulnerabilities have been fixed in the versions specified in
    this release announcement.
    
    The security patches for AST-2014-007 have been updated with the fix
    for the regression, and are available at
    http://downloads.asterisk.org/pub/security
    
    Please note that the release of these versions resolves the following
    security vulnerabilities :
    
      - AST-2014-005: Remote Crash in PJSIP Channel Driver's
        Publish/Subscribe Framework
    
      - AST-2014-006: Permission Escalation via Asterisk Manager
        User Unauthorized Shell Access
    
      - AST-2014-007: Denial of Service via Exhaustion of
        Allowed Concurrent HTTP Connections
    
      - AST-2014-008: Denial of Service in PJSIP Channel Driver
        Subscriptions
    
    For more information about the details of these vulnerabilities,
    please read security advisories AST-2014-005, AST-2014-006,
    AST-2014-007, and AST-2014-008, which were released with the previous
    versions that addressed these vulnerabilities.
    
    For a full list of changes in the current releases, please see the
    ChangeLogs :
    
    http://downloads.asterisk.org/pub/telephony/certified-asterisk/release
    s/ChangeLog-1.8.15-cert7
    http://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLo
    g-1.8.28.2
    http://downloads.asterisk.org/pub/telephony/certified-asterisk/release
    s/ChangeLog-11.6-cert4
    http://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLo
    g-11.10.2
    http://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLo
    g-12.3.2
    
    The security advisories are available at :
    
      -
        http://downloads.asterisk.org/pub/security/AST-2014-005.
        pdf
    
        -
          http://downloads.asterisk.org/pub/security/AST-2014-00
          6.pdf
    
        -
          http://downloads.asterisk.org/pub/security/AST-2014-00
          7.pdf
    
        -
          http://downloads.asterisk.org/pub/security/AST-2014-00
          8.pdf
    
    The Asterisk Development Team has announced security releases for
    Certified Asterisk 1.8.15, 11.6, and Asterisk 1.8, 11, and 12. The
    available security releases are released as versions 1.8.15-cert6,
    11.6-cert3, 1.8.28.1, 11.10.1, and 12.3.1.
    
    These releases are available for immediate download at
    http://downloads.asterisk.org/pub/telephony/asterisk/releases
    
    The release of these versions resolves the following issue :
    
      - AST-2014-007: Denial of Service via Exhaustion of
        Allowed Concurrent HTTP Connections
    
        Establishing a TCP or TLS connection to the configured
        HTTP or HTTPS port respectively in http.conf and then
        not sending or completing a HTTP request will tie up a
        HTTP session. By doing this repeatedly until the maximum
        number of open HTTP sessions is reached, legitimate
        requests are blocked.
    
    Additionally, the release of 11.6-cert3, 11.10.1, and 12.3.1 resolves
    the following issue :
    
      - AST-2014-006: Permission Escalation via Asterisk Manager
        User Unauthorized Shell Access
    
        Manager users can execute arbitrary shell commands with
        the MixMonitor manager action. Asterisk does not require
        system class authorization for a manager user to use the
        MixMonitor action, so any manager user who is permitted
        to use manager commands can potentially execute shell
        commands as the user executing the Asterisk process.
    
    Additionally, the release of 12.3.1 resolves the following issues :
    
      - AST-2014-005: Remote Crash in PJSIP Channel Driver's
        Publish/Subscribe Framework
    
        A remotely exploitable crash vulnerability exists in the
        PJSIP channel driver's pub/sub framework. If an attempt
        is made to unsubscribe when not currently subscribed and
        the endpoint's 'sub_min_expiry' is set to zero,
        Asterisk tries to create an expiration timer with zero
        seconds, which is not allowed, so an assertion raised.
    
      - AST-2014-008: Denial of Service in PJSIP Channel Driver
        Subscriptions
    
        When a SIP transaction timeout caused a subscription to
        be terminated, the action taken by Asterisk was
        guaranteed to deadlock the thread on which SIP requests
        are serviced. Note that this behavior could only happen
        on established subscriptions, meaning that this could
        only be exploited if an attacker bypassed authentication
        and successfully subscribed to a real resource on the
        Asterisk server.
    
    These issues and their resolutions are described in the security
    advisories.
    
    For more information about the details of these vulnerabilities,
    please read security advisories AST-2014-005, AST-2014-006,
    AST-2014-007, and AST-2014-008, which were released at the same time
    as this announcement.
    
    For a full list of changes in the current releases, please see the
    ChangeLogs :
    
    http://downloads.asterisk.org/pub/telephony/certified-asterisk/release
    s/ChangeLog-1.8.15-cert6
    http://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLo
    g-1.8.28.1
    http://downloads.asterisk.org/pub/telephony/certified-asterisk/release
    s/ChangeLog-11.6-cert3
    http://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLo
    g-11.10.1
    http://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLo
    g-12.3.1
    
    The Asterisk Development Team has announced the release of Asterisk
    11.10.0. This release is available for immediate download at
    http://downloads.asterisk.org/pub/telephony/asterisk
    
    The release of Asterisk 11.10.0 resolves several issues reported by
    the community and would have not been possible without your
    participation. Thank you!
    
    The following are the issues resolved in this release :
    
    Bugs fixed in this release :
    
    Note that Tenable Network Security has extracted the preceding
    description block directly from the Fedora security advisory. Tenable
    has attempted to automatically clean and format it as much as possible
    without introducing additional issues."
      );
      # http://downloads.asterisk.org/pub/security
      script_set_attribute(
        attribute:"see_also",
        value:"http://downloads.asterisk.org/pub/security/"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://downloads.asterisk.org/pub/security/AST-2014-005.pdf"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://downloads.asterisk.org/pub/security/AST-2014-006.pdf"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://downloads.asterisk.org/pub/security/AST-2014-007.pdf"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://downloads.asterisk.org/pub/security/AST-2014-008.pdf"
      );
      # http://downloads.asterisk.org/pub/telephony/asterisk
      script_set_attribute(
        attribute:"see_also",
        value:"http://downloads.asterisk.org/pub/telephony/asterisk/"
      );
      # http://downloads.asterisk.org/pub/telephony/asterisk/releases
      script_set_attribute(
        attribute:"see_also",
        value:"http://downloads.asterisk.org/pub/telephony/asterisk/releases/"
      );
      # http://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLog-1.8.28.1
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?95c079df"
      );
      # http://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLog-1.8.28.2
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?2dca7a1f"
      );
      # http://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLog-11.10.1
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?dd99d03c"
      );
      # http://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLog-11.10.2
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?050e7912"
      );
      # http://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLog-12.3.1
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?12bda26e"
      );
      # http://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLog-12.3.2
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?7c6cd6b3"
      );
      # http://downloads.asterisk.org/pub/telephony/certified-asterisk/releases/ChangeLog-1.8.15-cert6
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?98e4995b"
      );
      # http://downloads.asterisk.org/pub/telephony/certified-asterisk/releases/ChangeLog-1.8.15-cert7
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?b3e371d8"
      );
      # http://downloads.asterisk.org/pub/telephony/certified-asterisk/releases/ChangeLog-11.6-cert3
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?7d60d352"
      );
      # http://downloads.asterisk.org/pub/telephony/certified-asterisk/releases/ChangeLog-11.6-cert4
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?919a96f7"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.redhat.com/show_bug.cgi?id=1109284"
      );
      # https://lists.fedoraproject.org/pipermail/package-announce/2014-September/137779.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?38538cb1"
      );
      script_set_attribute(
        attribute:"solution", 
        value:"Update the affected asterisk package."
      );
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:P");
      script_set_cvss_temporal_vector("CVSS2#E:ND/RL:OF/RC:C");
      script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"false");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fedoraproject:fedora:asterisk");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:fedoraproject:fedora:19");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2014/06/17");
      script_set_attribute(attribute:"patch_publication_date", value:"2014/06/21");
      script_set_attribute(attribute:"plugin_publication_date", value:"2014/09/22");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"Fedora Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/RedHat/release", "Host/RedHat/rpm-list");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("global_settings.inc");
    include("rpm.inc");
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    release = get_kb_item("Host/RedHat/release");
    if (isnull(release) || "Fedora" >!< release) audit(AUDIT_OS_NOT, "Fedora");
    os_ver = eregmatch(pattern: "Fedora.*release ([0-9]+)", string:release);
    if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Fedora");
    os_ver = os_ver[1];
    if (! ereg(pattern:"^19([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Fedora 19.x", "Fedora " + os_ver);
    
    if (!get_kb_item("Host/RedHat/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Fedora", cpu);
    
    flag = 0;
    if (rpm_check(release:"FC19", reference:"asterisk-11.10.2-2.fc19")) flag++;
    
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:rpm_report_get());
      else security_warning(0);
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "asterisk");
    }
    
  • NASL familyGentoo Local Security Checks
    NASL idGENTOO_GLSA-201406-25.NASL
    descriptionThe remote host is affected by the vulnerability described in GLSA-201406-25 (Asterisk: Multiple vulnerabilities) Multiple vulnerabilities have been discovered in Asterisk. Please review the CVE identifiers below for details. Impact : A remote attacker that gains access to a privileged Asterisk account can execute arbitrary system shell commands. Furthermore an unprivileged remote attacker could cause a Denial of Service condition. Workaround : There is no known workaround at this time.
    last seen2020-06-01
    modified2020-06-02
    plugin id76227
    published2014-06-26
    reporterThis script is Copyright (C) 2014-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/76227
    titleGLSA-201406-25 : Asterisk: Multiple vulnerabilities