Vulnerabilities > CVE-2018-1106 - Improper Authentication vulnerability in multiple products

047910
CVSS 2.1 - LOW
Attack vector
LOCAL
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
NONE
Integrity impact
PARTIAL
Availability impact
NONE

Summary

An authentication bypass flaw has been found in PackageKit before 1.1.10 that allows users without administrator privileges to install signed packages. A local attacker can use this vulnerability to install vulnerable packages to further compromise a system.

Vulnerable Configurations

Part Description Count
Application
Packagekit_Project
128
OS
Redhat
7
OS
Canonical
1
OS
Debian
1

Common Weakness Enumeration (CWE)

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Authentication Abuse
    An attacker obtains unauthorized access to an application, service or device either through knowledge of the inherent weaknesses of an authentication mechanism, or by exploiting a flaw in the authentication scheme's implementation. In such an attack an authentication mechanism is functioning but a carefully controlled sequence of events causes the mechanism to grant access to the attacker. This attack may exploit assumptions made by the target's authentication procedures, such as assumptions regarding trust relationships or assumptions regarding the generation of secret values. This attack differs from Authentication Bypass attacks in that Authentication Abuse allows the attacker to be certified as a valid user through illegitimate means, while Authentication Bypass allows the user to access protected material without ever being certified as an authenticated user. This attack does not rely on prior sessions established by successfully authenticating users, as relied upon for the "Exploitation of Session Variables, Resource IDs and other Trusted Credentials" attack patterns.
  • Exploiting Trust in Client (aka Make the Client Invisible)
    An attack of this type exploits a programs' vulnerabilities in client/server communication channel authentication and data integrity. It leverages the implicit trust a server places in the client, or more importantly, that which the server believes is the client. An attacker executes this type of attack by placing themselves in the communication channel between client and server such that communication directly to the server is possible where the server believes it is communicating only with a valid client. There are numerous variations of this type of attack.
  • Utilizing REST's Trust in the System Resource to Register Man in the Middle
    This attack utilizes a REST(REpresentational State Transfer)-style applications' trust in the system resources and environment to place man in the middle once SSL is terminated. Rest applications premise is that they leverage existing infrastructure to deliver web services functionality. An example of this is a Rest application that uses HTTP Get methods and receives a HTTP response with an XML document. These Rest style web services are deployed on existing infrastructure such as Apache and IIS web servers with no SOAP stack required. Unfortunately from a security standpoint, there frequently is no interoperable identity security mechanism deployed, so Rest developers often fall back to SSL to deliver security. In large data centers, SSL is typically terminated at the edge of the network - at the firewall, load balancer, or router. Once the SSL is terminated the HTTP request is in the clear (unless developers have hashed or encrypted the values, but this is rare). The attacker can utilize a sniffer such as Wireshark to snapshot the credentials, such as username and password that are passed in the clear once SSL is terminated. Once the attacker gathers these credentials, they can submit requests to the web service provider just as authorized user do. There is not typically an authentication on the client side, beyond what is passed in the request itself so once this is compromised, then this is generally sufficient to compromise the service's authentication scheme.
  • Man in the Middle Attack
    This type of attack targets the communication between two components (typically client and server). The attacker places himself in the communication channel between the two components. Whenever one component attempts to communicate with the other (data flow, authentication challenges, etc.), the data first goes to the attacker, who has the opportunity to observe or alter it, and it is then passed on to the other component as if it was never intercepted. This interposition is transparent leaving the two compromised components unaware of the potential corruption or leakage of their communications. The potential for Man-in-the-Middle attacks yields an implicit lack of trust in communication or identify between two components.

Nessus

  • NASL familySuSE Local Security Checks
    NASL idOPENSUSE-2018-386.NASL
    descriptionThis update for PackageKit fixes the following security issue : - CVE-2018-1106: Drop the polkit rule which could allow users in wheel group to install packages without root password (bsc#1086936). This update was imported from the SUSE:SLE-12-SP2:Update update project.
    last seen2020-06-05
    modified2018-04-24
    plugin id109291
    published2018-04-24
    reporterThis script is Copyright (C) 2018-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/109291
    titleopenSUSE Security Update : PackageKit (openSUSE-2018-386)
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were
    # extracted from openSUSE Security Update openSUSE-2018-386.
    #
    # The text description of this plugin is (C) SUSE LLC.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(109291);
      script_version("1.4");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/06/04");
    
      script_cve_id("CVE-2018-1106");
    
      script_name(english:"openSUSE Security Update : PackageKit (openSUSE-2018-386)");
      script_summary(english:"Check for the openSUSE-2018-386 patch");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote openSUSE host is missing a security update."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "This update for PackageKit fixes the following security issue :
    
      - CVE-2018-1106: Drop the polkit rule which could allow
        users in wheel group to install packages without root
        password (bsc#1086936). This update was imported from
        the SUSE:SLE-12-SP2:Update update project."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.opensuse.org/show_bug.cgi?id=1086936"
      );
      script_set_attribute(
        attribute:"solution", 
        value:"Update the affected PackageKit packages."
      );
      script_set_cvss_base_vector("CVSS2#AV:L/AC:L/Au:N/C:N/I:P/A:N");
      script_set_cvss3_base_vector("CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:PackageKit");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:PackageKit-backend-zypp");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:PackageKit-backend-zypp-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:PackageKit-branding-upstream");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:PackageKit-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:PackageKit-debugsource");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:PackageKit-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:PackageKit-devel-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:PackageKit-gstreamer-plugin");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:PackageKit-gstreamer-plugin-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:PackageKit-gtk3-module");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:PackageKit-gtk3-module-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:PackageKit-lang");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libpackagekit-glib2-18");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libpackagekit-glib2-18-32bit");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libpackagekit-glib2-18-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libpackagekit-glib2-18-debuginfo-32bit");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libpackagekit-glib2-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libpackagekit-glib2-devel-32bit");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:typelib-1_0-PackageKitGlib-1_0");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:novell:opensuse:42.3");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2018/04/23");
      script_set_attribute(attribute:"plugin_publication_date", value:"2018/04/24");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2018-2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"SuSE Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/SuSE/release", "Host/SuSE/rpm-list", "Host/cpu");
    
      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/SuSE/release");
    if (isnull(release) || release =~ "^(SLED|SLES)") audit(AUDIT_OS_NOT, "openSUSE");
    if (release !~ "^(SUSE42\.3)$") audit(AUDIT_OS_RELEASE_NOT, "openSUSE", "42.3", release);
    if (!get_kb_item("Host/SuSE/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    ourarch = get_kb_item("Host/cpu");
    if (!ourarch) audit(AUDIT_UNKNOWN_ARCH);
    if (ourarch !~ "^(i586|i686|x86_64)$") audit(AUDIT_ARCH_NOT, "i586 / i686 / x86_64", ourarch);
    
    flag = 0;
    
    if ( rpm_check(release:"SUSE42.3", reference:"PackageKit-1.1.3-5.3.1") ) flag++;
    if ( rpm_check(release:"SUSE42.3", reference:"PackageKit-backend-zypp-1.1.3-5.3.1") ) flag++;
    if ( rpm_check(release:"SUSE42.3", reference:"PackageKit-backend-zypp-debuginfo-1.1.3-5.3.1") ) flag++;
    if ( rpm_check(release:"SUSE42.3", reference:"PackageKit-branding-upstream-1.1.3-5.3.1") ) flag++;
    if ( rpm_check(release:"SUSE42.3", reference:"PackageKit-debuginfo-1.1.3-5.3.1") ) flag++;
    if ( rpm_check(release:"SUSE42.3", reference:"PackageKit-debugsource-1.1.3-5.3.1") ) flag++;
    if ( rpm_check(release:"SUSE42.3", reference:"PackageKit-devel-1.1.3-5.3.1") ) flag++;
    if ( rpm_check(release:"SUSE42.3", reference:"PackageKit-devel-debuginfo-1.1.3-5.3.1") ) flag++;
    if ( rpm_check(release:"SUSE42.3", reference:"PackageKit-gstreamer-plugin-1.1.3-5.3.1") ) flag++;
    if ( rpm_check(release:"SUSE42.3", reference:"PackageKit-gstreamer-plugin-debuginfo-1.1.3-5.3.1") ) flag++;
    if ( rpm_check(release:"SUSE42.3", reference:"PackageKit-gtk3-module-1.1.3-5.3.1") ) flag++;
    if ( rpm_check(release:"SUSE42.3", reference:"PackageKit-gtk3-module-debuginfo-1.1.3-5.3.1") ) flag++;
    if ( rpm_check(release:"SUSE42.3", reference:"PackageKit-lang-1.1.3-5.3.1") ) flag++;
    if ( rpm_check(release:"SUSE42.3", reference:"libpackagekit-glib2-18-1.1.3-5.3.1") ) flag++;
    if ( rpm_check(release:"SUSE42.3", reference:"libpackagekit-glib2-18-debuginfo-1.1.3-5.3.1") ) flag++;
    if ( rpm_check(release:"SUSE42.3", reference:"libpackagekit-glib2-devel-1.1.3-5.3.1") ) flag++;
    if ( rpm_check(release:"SUSE42.3", reference:"typelib-1_0-PackageKitGlib-1_0-1.1.3-5.3.1") ) flag++;
    if ( rpm_check(release:"SUSE42.3", cpu:"x86_64", reference:"libpackagekit-glib2-18-32bit-1.1.3-5.3.1") ) flag++;
    if ( rpm_check(release:"SUSE42.3", cpu:"x86_64", reference:"libpackagekit-glib2-18-debuginfo-32bit-1.1.3-5.3.1") ) flag++;
    if ( rpm_check(release:"SUSE42.3", cpu:"x86_64", reference:"libpackagekit-glib2-devel-32bit-1.1.3-5.3.1") ) flag++;
    
    if (flag)
    {
      if (report_verbosity > 0) security_note(port:0, extra:rpm_report_get());
      else security_note(0);
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "PackageKit / PackageKit-backend-zypp / etc");
    }
    
  • NASL familyNewStart CGSL Local Security Checks
    NASL idNEWSTART_CGSL_NS-SA-2019-0028_PACKAGEKIT.NASL
    descriptionThe remote NewStart CGSL host, running version CORE 5.04 / MAIN 5.04, has PackageKit packages installed that are affected by a vulnerability: - An authentication bypass flaw has been found in PackageKit that allows users without administrator privileges to install signed packages. A local attacker can use this vulnerability to install vulnerable packages to further compromise a system. (CVE-2018-1106) Note that Nessus has not tested for this issue but has instead relied only on the application
    last seen2020-06-01
    modified2020-06-02
    plugin id127191
    published2019-08-12
    reporterThis script is Copyright (C) 2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/127191
    titleNewStart CGSL CORE 5.04 / MAIN 5.04 : PackageKit Vulnerability (NS-SA-2019-0028)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    
    # The descriptive text and package checks in this plugin were
    # extracted from ZTE advisory NS-SA-2019-0028. The text
    # itself is copyright (C) ZTE, Inc.
    
    include("compat.inc");
    
    if (description)
    {
      script_id(127191);
      script_version("1.2");
      script_cvs_date("Date: 2019/10/17 14:31:04");
    
      script_cve_id("CVE-2018-1106");
    
      script_name(english:"NewStart CGSL CORE 5.04 / MAIN 5.04 : PackageKit Vulnerability (NS-SA-2019-0028)");
    
      script_set_attribute(attribute:"synopsis", value:
    "The remote machine is affected by a vulnerability.");
      script_set_attribute(attribute:"description", value:
    "The remote NewStart CGSL host, running version CORE 5.04 / MAIN 5.04, has PackageKit packages installed that are
    affected by a vulnerability:
    
      - An authentication bypass flaw has been found in
        PackageKit that allows users without administrator
        privileges to install signed packages. A local attacker
        can use this vulnerability to install vulnerable
        packages to further compromise a system. (CVE-2018-1106)
    
    Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version
    number.");
      script_set_attribute(attribute:"see_also", value:"http://security.gd-linux.com/notice/NS-SA-2019-0028");
      script_set_attribute(attribute:"solution", value:
    "Upgrade the vulnerable CGSL PackageKit packages. Note that updated packages may not be available yet. Please contact ZTE
    for more information.");
      script_set_cvss_base_vector("CVSS2#AV:L/AC:L/Au:N/C:N/I:P/A:N");
      script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
      script_set_cvss3_base_vector("CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N");
      script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C");
      script_set_attribute(attribute:"cvss_score_source", value:"CVE-2018-1106");
    
      script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2018/04/23");
      script_set_attribute(attribute:"patch_publication_date", value:"2019/07/17");
      script_set_attribute(attribute:"plugin_publication_date", value:"2019/08/12");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_family(english:"NewStart CGSL Local Security Checks");
    
      script_copyright(english:"This script is Copyright (C) 2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/ZTE-CGSL/release", "Host/ZTE-CGSL/rpm-list", "Host/cpu");
    
      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/ZTE-CGSL/release");
    if (isnull(release) || release !~ "^CGSL (MAIN|CORE)") audit(AUDIT_OS_NOT, "NewStart Carrier Grade Server Linux");
    
    if (release !~ "CGSL CORE 5.04" &&
        release !~ "CGSL MAIN 5.04")
      audit(AUDIT_OS_NOT, 'NewStart CGSL CORE 5.04 / NewStart CGSL MAIN 5.04');
    
    if (!get_kb_item("Host/ZTE-CGSL/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, "NewStart Carrier Grade Server Linux", cpu);
    
    flag = 0;
    
    pkgs = {
      "CGSL CORE 5.04": [
        "PackageKit-1.1.5-2.el7.centos",
        "PackageKit-command-not-found-1.1.5-2.el7.centos",
        "PackageKit-cron-1.1.5-2.el7.centos",
        "PackageKit-debuginfo-1.1.5-2.el7.centos",
        "PackageKit-glib-1.1.5-2.el7.centos",
        "PackageKit-glib-devel-1.1.5-2.el7.centos",
        "PackageKit-gstreamer-plugin-1.1.5-2.el7.centos",
        "PackageKit-gtk3-module-1.1.5-2.el7.centos",
        "PackageKit-yum-1.1.5-2.el7.centos",
        "PackageKit-yum-plugin-1.1.5-2.el7.centos"
      ],
      "CGSL MAIN 5.04": [
        "PackageKit-1.1.5-2.el7.centos",
        "PackageKit-command-not-found-1.1.5-2.el7.centos",
        "PackageKit-cron-1.1.5-2.el7.centos",
        "PackageKit-debuginfo-1.1.5-2.el7.centos",
        "PackageKit-glib-1.1.5-2.el7.centos",
        "PackageKit-glib-devel-1.1.5-2.el7.centos",
        "PackageKit-gstreamer-plugin-1.1.5-2.el7.centos",
        "PackageKit-gtk3-module-1.1.5-2.el7.centos",
        "PackageKit-yum-1.1.5-2.el7.centos",
        "PackageKit-yum-plugin-1.1.5-2.el7.centos"
      ]
    };
    pkg_list = pkgs[release];
    
    foreach (pkg in pkg_list)
      if (rpm_check(release:"ZTE " + release, reference:pkg)) flag++;
    
    if (flag)
    {
      security_report_v4(
        port       : 0,
        severity   : SECURITY_NOTE,
        extra      : rpm_report_get()
      );
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "PackageKit");
    }
    
  • NASL familyHuawei Local Security Checks
    NASL idEULEROS_SA-2019-2700.NASL
    descriptionAccording to the version of the PackageKit packages installed, the EulerOS installation on the remote host is affected by the following vulnerability : - An authentication bypass flaw has been found in PackageKit before 1.1.10 that allows users without administrator privileges to install signed packages. A local attacker can use this vulnerability to install vulnerable packages to further compromise a system.(CVE-2018-1106) Note that Tenable Network Security has extracted the preceding description block directly from the EulerOS security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-05-08
    modified2019-12-23
    plugin id132367
    published2019-12-23
    reporterThis script is Copyright (C) 2019-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/132367
    titleEulerOS 2.0 SP5 : PackageKit (EulerOS-SA-2019-2700)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(132367);
      script_version("1.3");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/05/07");
    
      script_cve_id(
        "CVE-2018-1106"
      );
    
      script_name(english:"EulerOS 2.0 SP5 : PackageKit (EulerOS-SA-2019-2700)");
      script_summary(english:"Checks the rpm output for the updated package.");
    
      script_set_attribute(attribute:"synopsis", value:
    "The remote EulerOS host is missing a security update.");
      script_set_attribute(attribute:"description", value:
    "According to the version of the PackageKit packages installed, the
    EulerOS installation on the remote host is affected by the following
    vulnerability :
    
      - An authentication bypass flaw has been found in
        PackageKit before 1.1.10 that allows users without
        administrator privileges to install signed packages. A
        local attacker can use this vulnerability to install
        vulnerable packages to further compromise a
        system.(CVE-2018-1106)
    
    Note that Tenable Network Security has extracted the preceding
    description block directly from the EulerOS security advisory. Tenable
    has attempted to automatically clean and format it as much as possible
    without introducing additional issues.");
      # https://developer.huaweicloud.com/ict/en/site-euleros/euleros/security-advisories/EulerOS-SA-2019-2700
      script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?c44dd530");
      script_set_attribute(attribute:"solution", value:
    "Update the affected PackageKit package.");
      script_set_cvss_base_vector("CVSS2#AV:L/AC:L/Au:N/C:N/I:P/A:N");
      script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
      script_set_cvss3_base_vector("CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N");
      script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C");
      script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2019/12/23");
      script_set_attribute(attribute:"plugin_publication_date", value:"2019/12/23");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:huawei:euleros:PackageKit");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:huawei:euleros:PackageKit-command-not-found");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:huawei:euleros:PackageKit-glib");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:huawei:euleros:PackageKit-gstreamer-plugin");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:huawei:euleros:PackageKit-gtk3-module");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:huawei:euleros:PackageKit-yum");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:huawei:euleros:2.0");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_family(english:"Huawei Local Security Checks");
    
      script_copyright(english:"This script is Copyright (C) 2019-2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/EulerOS/release", "Host/EulerOS/rpm-list", "Host/EulerOS/sp");
      script_exclude_keys("Host/EulerOS/uvp_version");
    
      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/EulerOS/release");
    if (isnull(release) || release !~ "^EulerOS") audit(AUDIT_OS_NOT, "EulerOS");
    if (release !~ "^EulerOS release 2\.0(\D|$)") audit(AUDIT_OS_NOT, "EulerOS 2.0");
    
    sp = get_kb_item("Host/EulerOS/sp");
    if (isnull(sp) || sp !~ "^(5)$") audit(AUDIT_OS_NOT, "EulerOS 2.0 SP5");
    
    uvp = get_kb_item("Host/EulerOS/uvp_version");
    if (!empty_or_null(uvp)) audit(AUDIT_OS_NOT, "EulerOS 2.0 SP5", "EulerOS UVP " + uvp);
    
    if (!get_kb_item("Host/EulerOS/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$" && "aarch64" >!< cpu) audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "EulerOS", cpu);
    if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_ARCH_NOT, "i686 / x86_64", cpu);
    
    flag = 0;
    
    pkgs = ["PackageKit-1.1.5-1.h1.eulerosv2r7",
            "PackageKit-command-not-found-1.1.5-1.h1.eulerosv2r7",
            "PackageKit-glib-1.1.5-1.h1.eulerosv2r7",
            "PackageKit-gstreamer-plugin-1.1.5-1.h1.eulerosv2r7",
            "PackageKit-gtk3-module-1.1.5-1.h1.eulerosv2r7",
            "PackageKit-yum-1.1.5-1.h1.eulerosv2r7"];
    
    foreach (pkg in pkgs)
      if (rpm_check(release:"EulerOS-2.0", sp:"5", reference:pkg)) flag++;
    
    if (flag)
    {
      security_report_v4(
        port       : 0,
        severity   : SECURITY_NOTE,
        extra      : rpm_report_get()
      );
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "PackageKit");
    }
    
  • NASL familyHuawei Local Security Checks
    NASL idEULEROS_SA-2018-1148.NASL
    descriptionAccording to the version of the PackageKit packages installed, the EulerOS installation on the remote host is affected by the following vulnerability : - An authentication bypass flaw has been found in PackageKit before 1.1.10 that allows users without administrator privileges to install signed packages. A local attacker can use this vulnerability to install vulnerable packages to further compromise a system.(CVE-2018-1106) Note that Tenable Network Security has extracted the preceding description block directly from the EulerOS security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-05-06
    modified2018-05-29
    plugin id110152
    published2018-05-29
    reporterThis script is Copyright (C) 2018-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/110152
    titleEulerOS 2.0 SP2 : PackageKit (EulerOS-SA-2018-1148)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(110152);
      script_version("1.7");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/05/04");
    
      script_cve_id(
        "CVE-2018-1106"
      );
    
      script_name(english:"EulerOS 2.0 SP2 : PackageKit (EulerOS-SA-2018-1148)");
      script_summary(english:"Checks the rpm output for the updated package.");
    
      script_set_attribute(attribute:"synopsis", value:
    "The remote EulerOS host is missing a security update.");
      script_set_attribute(attribute:"description", value:
    "According to the version of the PackageKit packages installed, the
    EulerOS installation on the remote host is affected by the following
    vulnerability :
    
      - An authentication bypass flaw has been found in
        PackageKit before 1.1.10 that allows users without
        administrator privileges to install signed packages. A
        local attacker can use this vulnerability to install
        vulnerable packages to further compromise a
        system.(CVE-2018-1106)
    
    Note that Tenable Network Security has extracted the preceding
    description block directly from the EulerOS security advisory. Tenable
    has attempted to automatically clean and format it as much as possible
    without introducing additional issues.");
      # https://developer.huaweicloud.com/ict/en/site-euleros/euleros/security-advisories/EulerOS-SA-2018-1148
      script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?63add969");
      script_set_attribute(attribute:"solution", value:
    "Update the affected PackageKit package.");
      script_set_cvss_base_vector("CVSS2#AV:L/AC:L/Au:N/C:N/I:P/A:N");
      script_set_cvss3_base_vector("CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2018/05/17");
      script_set_attribute(attribute:"plugin_publication_date", value:"2018/05/29");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:huawei:euleros:PackageKit");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:huawei:euleros:PackageKit-command-not-found");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:huawei:euleros:PackageKit-glib");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:huawei:euleros:PackageKit-gstreamer-plugin");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:huawei:euleros:PackageKit-gtk3-module");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:huawei:euleros:PackageKit-hif");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:huawei:euleros:PackageKit-yum");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:huawei:euleros:2.0");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_family(english:"Huawei Local Security Checks");
    
      script_copyright(english:"This script is Copyright (C) 2018-2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/EulerOS/release", "Host/EulerOS/rpm-list", "Host/EulerOS/sp");
      script_exclude_keys("Host/EulerOS/uvp_version");
    
      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/EulerOS/release");
    if (isnull(release) || release !~ "^EulerOS") audit(AUDIT_OS_NOT, "EulerOS");
    if (release !~ "^EulerOS release 2\.0(\D|$)") audit(AUDIT_OS_NOT, "EulerOS 2.0");
    
    sp = get_kb_item("Host/EulerOS/sp");
    if (isnull(sp) || sp !~ "^(2)$") audit(AUDIT_OS_NOT, "EulerOS 2.0 SP2");
    
    uvp = get_kb_item("Host/EulerOS/uvp_version");
    if (!empty_or_null(uvp)) audit(AUDIT_OS_NOT, "EulerOS 2.0 SP2", "EulerOS UVP " + uvp);
    
    if (!get_kb_item("Host/EulerOS/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$" && "aarch64" >!< cpu) audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "EulerOS", cpu);
    if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_ARCH_NOT, "i686 / x86_64", cpu);
    
    flag = 0;
    
    pkgs = ["PackageKit-1.0.7-5.h2",
            "PackageKit-command-not-found-1.0.7-5.h2",
            "PackageKit-glib-1.0.7-5.h2",
            "PackageKit-gstreamer-plugin-1.0.7-5.h2",
            "PackageKit-gtk3-module-1.0.7-5.h2",
            "PackageKit-hif-1.0.7-5.h2",
            "PackageKit-yum-1.0.7-5.h2"];
    
    foreach (pkg in pkgs)
      if (rpm_check(release:"EulerOS-2.0", sp:"2", reference:pkg)) flag++;
    
    if (flag)
    {
      security_report_v4(
        port       : 0,
        severity   : SECURITY_NOTE,
        extra      : rpm_report_get()
      );
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "PackageKit");
    }
    
  • NASL familySuSE Local Security Checks
    NASL idSUSE_SU-2018-1047-1.NASL
    description - CVE-2018-1106: Drop the polkit rule which could allow users in wheel group to install packages without root password (bsc#1086936). Note that Tenable Network Security has extracted the preceding description block directly from the SUSE security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-06-01
    modified2020-06-02
    plugin id109309
    published2018-04-24
    reporterThis script is Copyright (C) 2018-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/109309
    titleSUSE SLED12 / SLES12 Security Update : PackageKit (SUSE-SU-2018:1047-1)
  • NASL familyHuawei Local Security Checks
    NASL idEULEROS_SA-2018-1183.NASL
    descriptionAccording to the version of the PackageKit packages installed, the EulerOS installation on the remote host is affected by the following vulnerability : - An authentication bypass flaw has been found in PackageKit before 1.1.10 that allows users without administrator privileges to install signed packages. A local attacker can use this vulnerability to install vulnerable packages to further compromise a system.(CVE-2018-1106) Note that Tenable Network Security has extracted the preceding description block directly from the EulerOS security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-05-06
    modified2018-07-03
    plugin id110847
    published2018-07-03
    reporterThis script is Copyright (C) 2018-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/110847
    titleEulerOS 2.0 SP3 : PackageKit (EulerOS-SA-2018-1183)
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DSA-4207.NASL
    descriptionMatthias Gerstner discovered that PackageKit, a DBus abstraction layer for simple software management tasks, contains an authentication bypass flaw allowing users without privileges to install local packages.
    last seen2020-06-01
    modified2020-06-02
    plugin id109968
    published2018-05-23
    reporterThis script is Copyright (C) 2018 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/109968
    titleDebian DSA-4207-1 : packagekit - security update
  • NASL familyAmazon Linux Local Security Checks
    NASL idAL2_ALAS-2018-1006.NASL
    descriptionAuthentication bypass allows to install signed packages without administrator privileges An authentication bypass flaw has been found in PackageKit that allows users without administrator privileges to install signed packages. A local attacker can use this vulnerability to install vulnerable packages to further compromise a system. (CVE-2018-1106)
    last seen2020-06-01
    modified2020-06-02
    plugin id109366
    published2018-04-27
    reporterThis script is Copyright (C) 2018 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/109366
    titleAmazon Linux 2 : PackageKit (ALAS-2018-1006)
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2018-A3B7C7EB79.NASL
    descriptionNew upstream release - This release fixes CVE-2018-1106 which is a moderate security issue. Note that Tenable Network Security has extracted the preceding description block directly from the Fedora update system website. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-06-05
    modified2018-05-01
    plugin id109435
    published2018-05-01
    reporterThis script is Copyright (C) 2018-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/109435
    titleFedora 27 : PackageKit (2018-a3b7c7eb79)
  • NASL familyOracle Linux Local Security Checks
    NASL idORACLELINUX_ELSA-2018-1224.NASL
    descriptionFrom Red Hat Security Advisory 2018:1224 : An update for PackageKit is now available for Red Hat Enterprise Linux 7. Red Hat Product Security has rated this update as having a security impact of Moderate. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available for each vulnerability from the CVE link(s) in the References section. PackageKit is a D-Bus abstraction layer that allows the session user to manage packages in a secure way using a cross-distribution, cross-architecture API. Security Fix(es) : * PackageKit: authentication bypass allows to install signed packages without administrator privileges (CVE-2018-1106) For more details about the security issue(s), including the impact, a CVSS score, and other related information, refer to the CVE page(s) listed in the References section. Red Hat would like to thank Matthias Gerstner (SUSE) for reporting this issue.
    last seen2020-06-01
    modified2020-06-02
    plugin id109332
    published2018-04-25
    reporterThis script is Copyright (C) 2018-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/109332
    titleOracle Linux 7 : PackageKit (ELSA-2018-1224)
  • NASL familyScientific Linux Local Security Checks
    NASL idSL_20180424_PACKAGEKIT_ON_SL7_X.NASL
    descriptionSecurity Fix(es) : - PackageKit: authentication bypass allows to install signed packages without administrator privileges (CVE-2018-1106)
    last seen2020-03-18
    modified2018-05-01
    plugin id109463
    published2018-05-01
    reporterThis script is Copyright (C) 2018-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/109463
    titleScientific Linux Security Update : PackageKit on SL7.x x86_64 (20180424)
  • NASL familyRed Hat Local Security Checks
    NASL idREDHAT-RHSA-2018-1224.NASL
    descriptionAn update for PackageKit is now available for Red Hat Enterprise Linux 7. Red Hat Product Security has rated this update as having a security impact of Moderate. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available for each vulnerability from the CVE link(s) in the References section. PackageKit is a D-Bus abstraction layer that allows the session user to manage packages in a secure way using a cross-distribution, cross-architecture API. Security Fix(es) : * PackageKit: authentication bypass allows to install signed packages without administrator privileges (CVE-2018-1106) For more details about the security issue(s), including the impact, a CVSS score, and other related information, refer to the CVE page(s) listed in the References section. Red Hat would like to thank Matthias Gerstner (SUSE) for reporting this issue.
    last seen2020-06-01
    modified2020-06-02
    plugin id109338
    published2018-04-25
    reporterThis script is Copyright (C) 2018-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/109338
    titleRHEL 7 : PackageKit (RHSA-2018:1224)
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2018-A86100A264.NASL
    descriptionNew upstream release - This release fixes CVE-2018-1106 which is a moderate security issue. Note that Tenable Network Security has extracted the preceding description block directly from the Fedora update system website. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-06-05
    modified2019-01-03
    plugin id120690
    published2019-01-03
    reporterThis script is Copyright (C) 2019-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/120690
    titleFedora 28 : PackageKit (2018-a86100a264)
  • NASL familyCentOS Local Security Checks
    NASL idCENTOS_RHSA-2018-1224.NASL
    descriptionAn update for PackageKit is now available for Red Hat Enterprise Linux 7. Red Hat Product Security has rated this update as having a security impact of Moderate. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available for each vulnerability from the CVE link(s) in the References section. PackageKit is a D-Bus abstraction layer that allows the session user to manage packages in a secure way using a cross-distribution, cross-architecture API. Security Fix(es) : * PackageKit: authentication bypass allows to install signed packages without administrator privileges (CVE-2018-1106) For more details about the security issue(s), including the impact, a CVSS score, and other related information, refer to the CVE page(s) listed in the References section. Red Hat would like to thank Matthias Gerstner (SUSE) for reporting this issue.
    last seen2020-06-01
    modified2020-06-02
    plugin id110243
    published2018-05-31
    reporterThis script is Copyright (C) 2018-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/110243
    titleCentOS 7 : PackageKit (CESA-2018:1224)
  • NASL familyUbuntu Local Security Checks
    NASL idUBUNTU_USN-3634-1.NASL
    descriptionMatthias Gerstner discovered that PackageKit incorrectly handled authentication. A local attacker could possibly use this issue to install arbitrary packages and escalate privileges. Note that Tenable Network Security has extracted the preceding description block directly from the Ubuntu security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-06-01
    modified2020-06-02
    plugin id109343
    published2018-04-25
    reporterUbuntu Security Notice (C) 2018-2019 Canonical, Inc. / NASL script (C) 2018-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/109343
    titleUbuntu 17.10 : packagekit vulnerability (USN-3634-1)

Redhat

advisories
bugzilla
id1565992
titleCVE-2018-1106 PackageKit: authentication bypass allows to install signed packages without administrator privileges
oval
OR
  • commentRed Hat Enterprise Linux must be installed
    ovaloval:com.redhat.rhba:tst:20070304026
  • AND
    • commentRed Hat Enterprise Linux 7 is installed
      ovaloval:com.redhat.rhba:tst:20150364027
    • OR
      • AND
        • commentPackageKit is earlier than 0:1.1.5-2.el7_5
          ovaloval:com.redhat.rhsa:tst:20181224001
        • commentPackageKit is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhsa:tst:20181224002
      • AND
        • commentPackageKit-cron is earlier than 0:1.1.5-2.el7_5
          ovaloval:com.redhat.rhsa:tst:20181224003
        • commentPackageKit-cron is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhsa:tst:20181224004
      • AND
        • commentPackageKit-yum-plugin is earlier than 0:1.1.5-2.el7_5
          ovaloval:com.redhat.rhsa:tst:20181224005
        • commentPackageKit-yum-plugin is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhsa:tst:20181224006
      • AND
        • commentPackageKit-glib-devel is earlier than 0:1.1.5-2.el7_5
          ovaloval:com.redhat.rhsa:tst:20181224007
        • commentPackageKit-glib-devel is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhsa:tst:20181224008
      • AND
        • commentPackageKit-yum is earlier than 0:1.1.5-2.el7_5
          ovaloval:com.redhat.rhsa:tst:20181224009
        • commentPackageKit-yum is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhsa:tst:20181224010
      • AND
        • commentPackageKit-gstreamer-plugin is earlier than 0:1.1.5-2.el7_5
          ovaloval:com.redhat.rhsa:tst:20181224011
        • commentPackageKit-gstreamer-plugin is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhsa:tst:20181224012
      • AND
        • commentPackageKit-command-not-found is earlier than 0:1.1.5-2.el7_5
          ovaloval:com.redhat.rhsa:tst:20181224013
        • commentPackageKit-command-not-found is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhsa:tst:20181224014
      • AND
        • commentPackageKit-gtk3-module is earlier than 0:1.1.5-2.el7_5
          ovaloval:com.redhat.rhsa:tst:20181224015
        • commentPackageKit-gtk3-module is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhsa:tst:20181224016
      • AND
        • commentPackageKit-glib is earlier than 0:1.1.5-2.el7_5
          ovaloval:com.redhat.rhsa:tst:20181224017
        • commentPackageKit-glib is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhsa:tst:20181224018
rhsa
idRHSA-2018:1224
released2018-04-24
severityModerate
titleRHSA-2018:1224: PackageKit security update (Moderate)
rpms
  • PackageKit-0:1.1.5-2.el7_5
  • PackageKit-command-not-found-0:1.1.5-2.el7_5
  • PackageKit-cron-0:1.1.5-2.el7_5
  • PackageKit-debuginfo-0:1.1.5-2.el7_5
  • PackageKit-glib-0:1.1.5-2.el7_5
  • PackageKit-glib-devel-0:1.1.5-2.el7_5
  • PackageKit-gstreamer-plugin-0:1.1.5-2.el7_5
  • PackageKit-gtk3-module-0:1.1.5-2.el7_5
  • PackageKit-yum-0:1.1.5-2.el7_5
  • PackageKit-yum-plugin-0:1.1.5-2.el7_5