Samsung Printer SNMP Hardcoded Community String Authentication Bypass Vulnerability
🗓️ 28 Nov 2012 00:00:00Reported by Copyright (C) 2012 Greenbone AGType
openvas🔗 plugins.openvas.org👁 108 Views
| Reporter | Title | Published | Views | Family All 12 |
|---|---|---|---|---|
| Samsung / Dell Printer SNMP Backdoor | 4 Dec 201200:00 | – | nessus | |
| Samsung / Dell Printer SNMP Backdoor | 3 Dec 201200:00 | – | nessus | |
| CVE-2012-4964 | 28 Nov 201201:00 | – | cve | |
| CVE-2012-4964 | 28 Nov 201201:00 | – | cvelist | |
| EUVD-2012-4889 | 7 Oct 202500:30 | – | euvd | |
| CVE-2012-4964 | 28 Nov 201201:55 | – | nvd | |
| Report default community names of the SNMP Agent | 12 Mar 201400:00 | – | openvas | |
| Check default community names of the SNMP Agent | 3 Nov 200500:00 | – | openvas | |
| Hardcoded credentials | 28 Nov 201201:55 | – | prion | |
| CVE-2012-4964 | 22 May 202505:33 | – | redhatcve |
10
| Source | Link |
|---|---|
| packetstormsecurity | www.packetstormsecurity.org/files/118413/samsung-backdoor.txt |
| seclists | www.seclists.org/fulldisclosure/2012/Nov/196 |
| kb | www.kb.cert.org/vuls/id/281284 |
| securityfocus | www.securityfocus.com/bid/56692 |
# SPDX-FileCopyrightText: 2012 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.902935");
script_version("2025-03-14T15:40:32+0000");
script_cve_id("CVE-1999-0517", "CVE-2012-4964");
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:"2025-03-14 15:40:32 +0000 (Fri, 14 Mar 2025)");
script_tag(name:"creation_date", value:"2012-11-28 13:37:22 +0530 (Wed, 28 Nov 2012)");
script_name("Samsung Printer SNMP Hardcoded Community String Authentication Bypass Vulnerability");
script_category(ACT_ATTACK);
script_copyright("Copyright (C) 2012 Greenbone AG");
script_family("SNMP");
script_dependencies("snmp_detect.nasl");
script_require_udp_ports("Services/udp/snmp", 161, 1118);
script_mandatory_keys("SNMP/detected");
script_xref(name:"URL", value:"http://www.kb.cert.org/vuls/id/281284");
script_xref(name:"URL", value:"http://www.securityfocus.com/bid/56692");
script_xref(name:"URL", value:"http://seclists.org/fulldisclosure/2012/Nov/196");
script_xref(name:"URL", value:"http://packetstormsecurity.org/files/118413/samsung-backdoor.txt");
script_tag(name:"impact", value:"Successful exploitation will allow attackers to access an
affected device with administrative privileges, make changes to the device configuration and
access to sensitive information.");
script_tag(name:"insight", value:"Samsung printers (as well as some Dell printers manufactured by
Samsung) contain a hardcoded SNMP full read-write community string that remains active even when
SNMP is disabled in the printer management utility.");
script_tag(name:"solution", value:"Update to firmware version 20121031 or later.");
script_tag(name:"summary", value:"Samsung Printers are prone to an authentication bypass
vulnerability.");
script_tag(name:"affected", value:"Samsung Printers with firmware version prior to 20121031.
NOTE: Samsung has stated that models released after October 31, 2012 are not affected by this
vulnerability. Samsung has also indicated that they will be releasing a patch tool later this
year to address vulnerable devices.");
script_tag(name:"solution_type", value:"VendorFix");
script_tag(name:"qod_type", value:"remote_vul");
exit(0);
}
include("dump.inc");
include("list_array_func.inc");
include("port_service_func.inc");
list = make_list_unique(161, 1118);
ports = service_get_ports(default_port_list:list, ipproto:"udp", proto:"snmp");
function parse_result(data) {
if(strlen(data) < 8) return FALSE;
for(v=0; v < strlen(data); v++) {
if(ord(data[v]) == 43 && ord(data[v-1]) == 8) {
ok = TRUE;
break;
}
oid_len = ord(data[v]);
}
if(!ok || oid_len < 8)return FALSE;
tmp = substr(data,(v+oid_len+2));
if (!isprint (c:tmp[0])) {
tmp = substr(tmp,1,strlen(tmp)-1);
}
return tmp;
}
function test(community, port) {
local_var port, community;
soc = open_sock_udp(port);
if(!soc)return FALSE;
SNMP_BASE = 31;
COMMUNITY_SIZE = strlen(community);
sz = COMMUNITY_SIZE % 256;
len = SNMP_BASE + COMMUNITY_SIZE;
len_hi = len / 256;
len_lo = len % 256;
for (i=0; i<3; i++) {
sendata = raw_string(
0x30, 0x82, len_hi, len_lo,
0x02, 0x01, i, 0x04,
sz);
sendata = sendata + community +
raw_string(0xA1,0x18, 0x02,
0x01, 0x01, 0x02, 0x01,
0x00, 0x02, 0x01, 0x00,
0x30, 0x0D, 0x30, 0x82,
0x00, 0x09, 0x06, 0x05,
0x2B, 0x06, 0x01, 0x02,
0x01, 0x05, 0x00);
send(socket:soc, data:sendata);
result = recv(socket:soc, length:65535, timeout:1);
close(soc);
if(!result || ord(result[0]) != 48)return FALSE;
if(res = parse_result(data:result)) {
return res;
}
}
return FALSE;
}
foreach port (ports) {
if(!get_udp_port_state(port))continue;
if(get_kb_item("SNMP/" + port + "/v12c/all_communities"))continue; # For devices which are accepting every random community
res = test(community:'s!a@m#n$p%c', port:port);
if(!res)continue;
res = tolower(res);
if("samsung" >< res || "dell" >< res) {
security_message(port:port, proto:"udp");
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
14 Mar 2025 00:00Current
8.4High risk
Vulners AI Score8.4
CVSS 27.5
EPSS0.08015