Lucene search
K

Kubernetes info API access

🗓️ 28 Jun 2018 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 49 Views

Kubernetes unauthenticated API access allows for sensitive data disclosur

Refs
Code
SourceLink
nessuswww.nessus.org/u
#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#

include('deprecated_nasl_level.inc');
include('compat.inc');

if (description)
{
  script_id(110767);
  script_version("1.5");
  script_set_attribute(attribute:"plugin_modification_date", value:"2022/04/07");

  script_name(english:"Kubernetes info API access");

  script_set_attribute(attribute:"synopsis", value:
"Kubernetes allows unauthenticated information disclosure via API access on port 10255 if not configured properly.");
  script_set_attribute(attribute:"description", value:
"A remote, unauthenticated attacker is able to access read only API on port 10255 (http)
This API gives access to data of varying sensitivity");
  # https://kubernetes.io/docs/reference/command-line-tools-reference/kubelet-authentication-authorization/
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?8483f69d");
  script_set_attribute(attribute:"solution", value:
"Only allow localhost connections, set up firewall and authentication.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N");
  script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N");
  script_set_attribute(attribute:"cvss_score_source", value:"manual");
  script_set_attribute(attribute:"cvss_score_rationale", value:"NVD has no score for this CVE. Tenable research analyzed the issue and assigned one.");

  script_set_attribute(attribute:"vuln_publication_date", value:"2018/06/14");
  script_set_attribute(attribute:"plugin_publication_date", value:"2018/06/28");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"thorough_tests", value:"true");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"CGI abuses");

  script_copyright(english:"This script is Copyright (C) 2018-2022 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_require_ports(10255);

  exit(0);
}

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

if (report_paranoia < 2) audit(AUDIT_PARANOID);
if (!thorough_tests) audit(AUDIT_THOROUGH);
if (islocalhost()) exit(0, "This plugin does not run against the localhost.");

port = get_http_port(default:10255);
page = '/pods/';
res = http_send_recv3(method:'GET', item:page, port:port, exit_on_fail:TRUE);

if ('200' >!< res[0] || 'PodList' >!< res[2]) audit(AUDIT_WEB_SERVER_NOT_AFFECTED, port);

request = build_url(port:port, qs:page);
security_report_v4(severity:SECURITY_WARNING, port:port, generic:TRUE, request:make_list(request), output:res[2]);

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

07 Apr 2022 00:00Current
5.5Medium risk
Vulners AI Score5.5
49