Vulnerabilities > CVE-2013-5743 - SQL Injection vulnerability in Zabbix

047910
CVSS 9.8 - CRITICAL
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
HIGH
Integrity impact
HIGH
Availability impact
HIGH
network
low complexity
zabbix
CWE-89
critical
nessus
exploit available
metasploit

Summary

Multiple SQL injection vulnerabilities in Zabbix 1.8.x before 1.8.18rc1, 2.0.x before 2.0.9rc1, and 2.1.x before 2.1.7.

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Command Line Execution through SQL Injection
    An attacker uses standard SQL injection methods to inject data into the command line for execution. This could be done directly through misuse of directives such as MSSQL_xp_cmdshell or indirectly through injection of data into the database that would be interpreted as shell commands. Sometime later, an unscrupulous backend application (or could be part of the functionality of the same application) fetches the injected data stored in the database and uses this data as command line arguments without performing proper validation. The malicious data escapes that data plane by spawning new commands to be executed on the host.
  • Object Relational Mapping Injection
    An attacker leverages a weakness present in the database access layer code generated with an Object Relational Mapping (ORM) tool or a weakness in the way that a developer used a persistence framework to inject his or her own SQL commands to be executed against the underlying database. The attack here is similar to plain SQL injection, except that the application does not use JDBC to directly talk to the database, but instead it uses a data access layer generated by an ORM tool or framework (e.g. Hibernate). While most of the time code generated by an ORM tool contains safe access methods that are immune to SQL injection, sometimes either due to some weakness in the generated code or due to the fact that the developer failed to use the generated access methods properly, SQL injection is still possible.
  • SQL Injection through SOAP Parameter Tampering
    An attacker modifies the parameters of the SOAP message that is sent from the service consumer to the service provider to initiate a SQL injection attack. On the service provider side, the SOAP message is parsed and parameters are not properly validated before being used to access a database in a way that does not use parameter binding, thus enabling the attacker to control the structure of the executed SQL query. This pattern describes a SQL injection attack with the delivery mechanism being a SOAP message.
  • Expanding Control over the Operating System from the Database
    An attacker is able to leverage access gained to the database to read / write data to the file system, compromise the operating system, create a tunnel for accessing the host machine, and use this access to potentially attack other machines on the same network as the database machine. Traditionally SQL injections attacks are viewed as a way to gain unauthorized read access to the data stored in the database, modify the data in the database, delete the data, etc. However, almost every data base management system (DBMS) system includes facilities that if compromised allow an attacker complete access to the file system, operating system, and full access to the host running the database. The attacker can then use this privileged access to launch subsequent attacks. These facilities include dropping into a command shell, creating user defined functions that can call system level libraries present on the host machine, stored procedures, etc.
  • SQL Injection
    This attack exploits target software that constructs SQL statements based on user input. An attacker crafts input strings so that when the target software constructs SQL statements based on the input, the resulting SQL statement performs actions other than those the application intended. SQL Injection results from failure of the application to appropriately validate input. When specially crafted user-controlled input consisting of SQL syntax is used without proper validation as part of SQL queries, it is possible to glean information from the database in ways not envisaged during application design. Depending upon the database and the design of the application, it may also be possible to leverage injection to have the database execute system-related commands of the attackers' choice. SQL Injection enables an attacker to talk directly to the database, thus bypassing the application completely. Successful injection can cause information disclosure as well as ability to add or modify data in the database. In order to successfully inject SQL and retrieve information from a database, an attacker:

D2sec

nameZabbix httpmon.php SQL Injection
urlhttp://www.d2sec.com/exploits/zabbix_httpmon.php_sql_injection.html

Exploit-Db

descriptionZabbix 2.0.8 - SQL Injection and Remote Code Execution. CVE-2013-5743. Webapps exploit for unix platform
idEDB-ID:28972
last seen2016-02-03
modified2013-10-15
published2013-10-15
reporterJason Kratzer
sourcehttps://www.exploit-db.com/download/28972/
titleZabbix 2.0.8 - SQL Injection and Remote Code Execution

Metasploit

descriptionThis module exploits an unauthenticated SQL injection vulnerability affecting Zabbix versions 2.0.8 and lower. The SQL injection issue can be abused in order to retrieve an active session ID. If an administrator level user is identified, remote code execution can be gained by uploading and executing remote scripts via the 'scripts_exec.php' file.
idMSF:EXPLOIT/LINUX/HTTP/ZABBIX_SQLI
last seen2020-06-07
modified2017-07-24
published2013-10-07
references
reporterRapid7
sourcehttps://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/linux/http/zabbix_sqli.rb
titleZabbix 2.0.8 SQL Injection and Remote Code Execution

Nessus

  • NASL familyCGI abuses
    NASL idZABBIX_FRONTEND_1_8_18RC1.NASL
    descriptionAccording to its self-reported version number, the instance of Zabbix listening on the remote host is a version prior to 1.8.18rc1 / 2.0.9rc1 / 2.1.7. It is, therefore, potentially affected by multiple SQL injection vulnerabilities. The following API methods and parameters are reportedly affected : - alert.get parameters : time_from, time_till - event.get parameters : object, source, eventid_from, eventid_till - graphitem.get parameter : type - graph.get parameters : type - graphprototype.get parameter : type - history.get parameters : time_from, time_till - trigger.get parameters : lastChangeSince, lastChangeTill, min_severity - triggerprototype.get parameter : min_severity - usergroup.get parameter : status Additionally, code used to add objects such as graphs or maps to favorites is reportedly also affected by SQL injection attacks. The
    last seen2020-06-01
    modified2020-06-02
    plugin id70497
    published2013-10-18
    reporterThis script is Copyright (C) 2013-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/70497
    titleZabbix < 1.8.18rc1 / 2.0.9rc1 / 2.1.7 Multiple SQL Injections
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(70497);
      script_version("1.10");
      script_cvs_date("Date: 2019/11/27");
    
      script_cve_id("CVE-2013-5743");
      script_bugtraq_id(62794);
    
      script_name(english:"Zabbix < 1.8.18rc1 / 2.0.9rc1 / 2.1.7 Multiple SQL Injections");
      script_summary(english:"Checks Zabbix Version");
    
      script_set_attribute(attribute:"synopsis", value:
    "The remote web application may be affected by multiple SQL injection
    vulnerabilities.");
      script_set_attribute(attribute:"description", value:
    "According to its self-reported version number, the instance of Zabbix
    listening on the remote host is a version prior to 1.8.18rc1 / 2.0.9rc1
    / 2.1.7.  It is, therefore, potentially affected by multiple SQL
    injection vulnerabilities.  The following API methods and parameters are
    reportedly affected :
    
      - alert.get            parameters : time_from, time_till
      - event.get            parameters : object, source, eventid_from, eventid_till
      - graphitem.get        parameter  : type
      - graph.get            parameters : type
      - graphprototype.get   parameter  : type
      - history.get          parameters : time_from, time_till
      - trigger.get          parameters : lastChangeSince, lastChangeTill, min_severity
      - triggerprototype.get parameter  : min_severity
      - usergroup.get        parameter  : status
    
    Additionally, code used to add objects such as graphs or maps to
    favorites is reportedly also affected by SQL injection attacks.  The
    'Dashboard', 'Graphs', 'Maps', 'Latest data', and 'Screens' pages in the
    'Monitoring' section are reported to be affected. 
    
    Note that Nessus has not tested for these issues but has instead
    relied on the version in the Zabbix login page.");
      # https://www.sec-consult.com/fxdata/seccons/prod/temedia/advisories_txt/20131004-0_Zabbix_SQL_injection_v10.txt
      script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?1161f5f6");
      script_set_attribute(attribute:"see_also", value:"https://www.securityfocus.com/archive/1/528982/30/0/threaded");
      script_set_attribute(attribute:"see_also", value:"https://support.zabbix.com/browse/ZBX-7091");
      script_set_attribute(attribute:"solution", value:
    "Update Zabbix to version 1.8.18rc1 / 2.0.9rc1 / 2.1.7 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:H/RL:OF/RC:C");
    
      script_set_attribute(attribute:"exploitability_ease", value:"No exploit is required");
      script_set_attribute(attribute:"exploit_available", value:"true");
      script_set_attribute(attribute:"d2_elliot_name", value:"Zabbix httpmon.php SQL Injection");
      script_set_attribute(attribute:"exploit_framework_d2_elliot", value:"true");
      script_set_attribute(attribute:"metasploit_name", value:'Zabbix 2.0.8 SQL Injection and Remote Code Execution');
      script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2013/10/02");
      script_set_attribute(attribute:"patch_publication_date", value:"2013/10/02");
      script_set_attribute(attribute:"plugin_publication_date", value:"2013/10/18");
    
      script_set_attribute(attribute:"potential_vulnerability", value:"true");
      script_set_attribute(attribute:"plugin_type", value:"remote");
      script_set_attribute(attribute:"cpe", value:"cpe:/a:zabbix:zabbix");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_family(english:"CGI abuses");
    
      script_copyright(english:"This script is Copyright (C) 2013-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
    
      script_dependencies("zabbix_frontend_detect.nasl");
      script_require_keys("www/zabbix", "Settings/ParanoidReport");
      script_require_ports("Services/www", 80);
    
      exit(0);
    }
    
    include("audit.inc");
    include("global_settings.inc");
    include("misc_func.inc");
    include("http.inc");
    include("webapp_func.inc");
    
    appname = "Zabbix";
    port = get_http_port(default:80, php:TRUE);
    
    install = get_install_from_kb(appname:"zabbix", port:port, exit_on_fail:TRUE);
    
    ver = install['ver'];
    dir = install['dir'];
    install_url = build_url(port:port, qs:dir);
    
    if (ver == UNKNOWN_VER) audit(AUDIT_UNKNOWN_WEB_SERVER_VER, appname, port);
    
    if (report_paranoia < 2) audit(AUDIT_PARANOID);
    
    ver_split = split(ver, sep:'.', keep:FALSE);
    if (max_index(ver_split) < 3) audit(AUDIT_VER_NOT_GRANULAR, appname, port, ver);
    
    # nb : The advisory notes that all versions prior to the patched
    # 1.8.18rc1 / 2.0.9rc1 / 2.1.7 are affected
    if (
      ver_split[0] < 1 || 
      (ver_split[0] == 1 && ver_split[1] < 8) ||
      ver =~ "^1\.8\.(([0-9]|1[0-7])(rc[0-9]+)?($|[^0-9]))" ||
      ver =~ "^2\.0\.[0-8](rc[0-9]+)?($|[^0-9])" ||
      ver =~ "^2\.1\.[0-6](rc[0-9]+)?($|[^0-9])"
    )
    {
      set_kb_item(name:'www/'+port+'/SQLInjection', value:TRUE);
      if (report_verbosity > 0)
      {
        report =
          '\n  URL               : ' + install_url +
          '\n  Installed version : ' + ver +
          '\n  Fixed version     : 1.8.18rc1 / 2.0.9rc1 / 2.1.7\n';
        security_warning(port:port, extra:report);
      }
      else security_warning(port);
      exit(0);
    }
    else audit(AUDIT_WEB_APP_NOT_AFFECTED, appname, install_url, ver);
    
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2013-18351.NASL
    description - New upstream version 2.0.8 - Patch for CVE-2013-5743 (SQL injection vulnerability, ZBX-7091) - Patch for ZBX-6922 (Failing host XML import) - SQL speed-up patch for graphs (ZBX-6804) - Require php-ldap and ZBX-6992 (Service SQL) - Create and configure a spooling directory for fping files outside of /tmp - Update README to reflect that and add a SELinux section - Drop PrivateTmp from systemd unit files This update solves a security issue involving the use of libcurl in the code used to access the eztexting service. It potentially allows for man-in-the-middle attacks. The issue was described as CVE-2012-6086. Please refer to https://support.zabbix.com/browse/ZBX-5924 for details! 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.
    last seen2020-03-17
    modified2013-10-15
    plugin id70426
    published2013-10-15
    reporterThis script is Copyright (C) 2013-2020 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/70426
    titleFedora 19 : zabbix-2.0.8-3.fc19 (2013-18351)
    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 2013-18351.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(70426);
      script_version("1.7");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/03/12");
    
      script_cve_id("CVE-2012-6086");
      script_xref(name:"FEDORA", value:"2013-18351");
    
      script_name(english:"Fedora 19 : zabbix-2.0.8-3.fc19 (2013-18351)");
      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:
    "  - New upstream version 2.0.8
    
        - Patch for CVE-2013-5743 (SQL injection vulnerability,
          ZBX-7091)
    
        - Patch for ZBX-6922 (Failing host XML import)
    
        - SQL speed-up patch for graphs (ZBX-6804)
    
        - Require php-ldap and ZBX-6992 (Service SQL)
    
        - Create and configure a spooling directory for fping
          files outside of /tmp
    
        - Update README to reflect that and add a SELinux
          section
    
        - Drop PrivateTmp from systemd unit files This update
          solves a security issue involving the use of libcurl
          in the code used to access the eztexting service. It
          potentially allows for man-in-the-middle attacks. The
          issue was described as CVE-2012-6086.
    
    Please refer to https://support.zabbix.com/browse/ZBX-5924 for
    details!
    
    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."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.redhat.com/show_bug.cgi?id=892687"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.redhat.com/show_bug.cgi?id=983096"
      );
      # https://lists.fedoraproject.org/pipermail/package-announce/2013-October/119035.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?31229bc1"
      );
      # https://lists.fedoraproject.org/pipermail/package-announce/2013-October/119146.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?4f46f154"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://support.zabbix.com/browse/ZBX-5924"
      );
      script_set_attribute(
        attribute:"solution", 
        value:"Update the affected zabbix package."
      );
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:N/I:P/A:N");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fedoraproject:fedora:zabbix");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:fedoraproject:fedora:19");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2013/10/06");
      script_set_attribute(attribute:"plugin_publication_date", value:"2013/10/15");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2013-2020 Tenable Network Security, Inc.");
      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:"zabbix-2.0.8-3.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, "zabbix");
    }
    
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2013-18348.NASL
    description - New upstream version 2.0.8 - Patch for CVE-2013-5743 (SQL injection vulnerability, ZBX-7091) - Patch for ZBX-6922 (Failing host XML import) - SQL speed-up patch for graphs (ZBX-6804) - Require php-ldap and ZBX-6992 (Service SQL) - Create and configure a spooling directory for fping files outside of /tmp - Update README to reflect that and add a SELinux section - Drop PrivateTmp from systemd unit files This update solves a security issue involving the use of libcurl in the code used to access the eztexting service. It potentially allows for man-in-the-middle attacks. The issue was described as CVE-2012-6086. Please refer to https://support.zabbix.com/browse/ZBX-5924 for details! 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.
    last seen2020-03-17
    modified2013-10-15
    plugin id70425
    published2013-10-15
    reporterThis script is Copyright (C) 2013-2020 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/70425
    titleFedora 18 : zabbix-2.0.8-3.fc18 (2013-18348)
    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 2013-18348.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(70425);
      script_version("1.7");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/03/12");
    
      script_cve_id("CVE-2012-6086");
      script_xref(name:"FEDORA", value:"2013-18348");
    
      script_name(english:"Fedora 18 : zabbix-2.0.8-3.fc18 (2013-18348)");
      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:
    "  - New upstream version 2.0.8
    
        - Patch for CVE-2013-5743 (SQL injection vulnerability,
          ZBX-7091)
    
        - Patch for ZBX-6922 (Failing host XML import)
    
        - SQL speed-up patch for graphs (ZBX-6804)
    
        - Require php-ldap and ZBX-6992 (Service SQL)
    
        - Create and configure a spooling directory for fping
          files outside of /tmp
    
        - Update README to reflect that and add a SELinux
          section
    
        - Drop PrivateTmp from systemd unit files This update
          solves a security issue involving the use of libcurl
          in the code used to access the eztexting service. It
          potentially allows for man-in-the-middle attacks. The
          issue was described as CVE-2012-6086.
    
    Please refer to https://support.zabbix.com/browse/ZBX-5924 for
    details!
    
    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."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.redhat.com/show_bug.cgi?id=892687"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.redhat.com/show_bug.cgi?id=983096"
      );
      # https://lists.fedoraproject.org/pipermail/package-announce/2013-October/119024.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?46e158ff"
      );
      # https://lists.fedoraproject.org/pipermail/package-announce/2013-October/119106.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?659e5c82"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://support.zabbix.com/browse/ZBX-5924"
      );
      script_set_attribute(
        attribute:"solution", 
        value:"Update the affected zabbix package."
      );
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:N/I:P/A:N");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fedoraproject:fedora:zabbix");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:fedoraproject:fedora:18");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2013/10/06");
      script_set_attribute(attribute:"plugin_publication_date", value:"2013/10/15");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2013-2020 Tenable Network Security, Inc.");
      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:"^18([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Fedora 18.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:"FC18", reference:"zabbix-2.0.8-3.fc18")) 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, "zabbix");
    }
    
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2013-18314.NASL
    description - New upstream version 2.0.8 - Patch for CVE-2013-5743 (SQL injection vulnerability, ZBX-7091) - Patch for ZBX-6922 (Failing host XML import) - SQL speed-up patch for graphs (ZBX-6804) - Require php-ldap and ZBX-6992 (Service SQL) - Create and configure a spooling directory for fping files outside of /tmp - Update README to reflect that and add a SELinux section - Drop PrivateTmp from systemd unit files This update solves a security issue involving the use of libcurl in the code used to access the eztexting service. It potentially allows for man-in-the-middle attacks. The issue was described as CVE-2012-6086. Please refer to https://support.zabbix.com/browse/ZBX-5924 for details! 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.
    last seen2020-03-17
    modified2013-10-15
    plugin id70422
    published2013-10-15
    reporterThis script is Copyright (C) 2013-2020 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/70422
    titleFedora 20 : zabbix-2.0.8-3.fc20 (2013-18314)
    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 2013-18314.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(70422);
      script_version("1.6");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/03/12");
    
      script_cve_id("CVE-2012-6086");
      script_xref(name:"FEDORA", value:"2013-18314");
    
      script_name(english:"Fedora 20 : zabbix-2.0.8-3.fc20 (2013-18314)");
      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:
    "  - New upstream version 2.0.8
    
        - Patch for CVE-2013-5743 (SQL injection vulnerability,
          ZBX-7091)
    
        - Patch for ZBX-6922 (Failing host XML import)
    
        - SQL speed-up patch for graphs (ZBX-6804)
    
        - Require php-ldap and ZBX-6992 (Service SQL)
    
        - Create and configure a spooling directory for fping
          files outside of /tmp
    
        - Update README to reflect that and add a SELinux
          section
    
        - Drop PrivateTmp from systemd unit files This update
          solves a security issue involving the use of libcurl
          in the code used to access the eztexting service. It
          potentially allows for man-in-the-middle attacks. The
          issue was described as CVE-2012-6086.
    
    Please refer to https://support.zabbix.com/browse/ZBX-5924 for
    details!
    
    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."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.redhat.com/show_bug.cgi?id=892687"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.redhat.com/show_bug.cgi?id=983096"
      );
      # https://lists.fedoraproject.org/pipermail/package-announce/2013-October/118988.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?55db3ccf"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://support.zabbix.com/browse/ZBX-5924"
      );
      script_set_attribute(
        attribute:"solution", 
        value:"Update the affected zabbix package."
      );
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:N/I:P/A:N");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fedoraproject:fedora:zabbix");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:fedoraproject:fedora:20");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2013/10/05");
      script_set_attribute(attribute:"plugin_publication_date", value:"2013/10/15");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2013-2020 Tenable Network Security, Inc.");
      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:"zabbix-2.0.8-3.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, "zabbix");
    }
    

Packetstorm

data sourcehttps://packetstormsecurity.com/files/download/123605/zabbix_sqli.rb.txt
idPACKETSTORM:123605
last seen2016-12-05
published2013-10-14
reporterJason Kratzer
sourcehttps://packetstormsecurity.com/files/123605/Zabbix-2.0.8-SQL-Injection-Remote-Code-Execution.html
titleZabbix 2.0.8 SQL Injection / Remote Code Execution

Seebug

  • bulletinFamilyexploit
    descriptionNo description provided by source.
    idSSV:61059
    last seen2017-11-19
    modified2013-10-09
    published2013-10-09
    reporterRoot
    titleZabbix 2.0.8 SQL Injection(CVE-2013-5743)
  • bulletinFamilyexploit
    descriptionNo description provided by source.
    idSSV:61062
    last seen2017-11-19
    modified2013-10-24
    published2013-10-24
    reporterRoot
    sourcehttps://www.seebug.org/vuldb/ssvid-61062
    titleZABBIX API及Frontend多个SQL注入漏洞(CVE-2013-5743)