Samsung Printer — 1 vulnerability check
noctis ships 1 vulnerability check for Samsung Printer, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Samsung / Dell printer hardcoded SNMP read-write community
| CVE | CVE-2012-4964 |
|---|---|
| Severity | high |
| Category | default-credentials — Default credentials |
| Services | snmp |
| Detection | snmp_get, match · highest QoD 97 |
| Feed | tests/vulnerabilities/samsung-printer/CVE-2012-4964.yaml |
Tests SNMP agents of Samsung printers (and Dell printers built by Samsung) for the hardcoded read-write community string present in firmware older than 20121031, which stays active even when SNMP is disabled in the printer management utility. The feed sends an SNMP v2c GET of sysDescr.0 with that community and reports a finding when the device answers with a description naming Samsung or Dell. A control GET with a random community must stay unanswered, so an agent that accepts any community is not reported. Only a read request is sent; no value is ever written.
How noctis detects it
- SNMP v2c GET trying several community strings
- SNMP v2c GET trying several community strings
- Checks
snmp.varbindsfor(samsung|dell)→ finding QoD 97: Samsung/Dell printer accepts the hardcoded SNMP community
References:
Feed source — tests/vulnerabilities/samsung-printer/CVE-2012-4964.yaml
# Samsung / Dell (Samsung-built) printers — hardcoded read-write SNMP community — CVE-2012-4964
#
# Samsung printer firmware older than 20121031 (some Dell printers are Samsung OEM units)
# accepts a hardcoded full read-write SNMP community string, s!a@m#n$p%c, even when SNMP
# is disabled in the management utility. Anyone who knows it can read and change the
# device configuration (CVE-2012-4964; the generic CVE-1999-0517 "default/guessable
# community" also applies).
#
# Detection (benign, read-only): an SNMP GET of sysDescr.0 with the hardcoded community; a
# reply naming Samsung or Dell proves the credential is live. Nothing is SET.
#
# Improvements over the source NASL:
# - A control GET with a random community must NOT be answered: an agent that answers
# every community (honeypot, "accept all" device) is not reported. The NASL relies on
# a prior knowledge-base entry for this; the feed checks it in the same run and fails
# closed (no control result -> no finding).
# - The reply is parsed by the engine's SNMP stack instead of byte-scanning the raw
# datagram, so a malformed reply cannot masquerade as a sysDescr.
#
# CVSS: NVD publishes only a v2 score (7.5) for CVE-2012-4964, no v3.x, so `cvss:` is omitted.
#
# Ported from OpenVAS/Greenbone NVT 2012/gb_samsung_printer_snmp_auth_bypass_vuln.nasl
# (OID 1.3.6.1.4.1.25623.1.0.902935, GPL-2.0-only).
uid: 5369810f-4a5f-4e38-ae3c-f1581b1a51e0
name: "Samsung / Dell printer hardcoded SNMP read-write community (CVE-2012-4964)"
description: |
Tests SNMP agents of Samsung printers (and Dell printers built by Samsung) for the
hardcoded read-write community string present in firmware older than 20121031, which
stays active even when SNMP is disabled in the printer management utility. The feed
sends an SNMP v2c GET of sysDescr.0 with that community and reports a finding when the
device answers with a description naming Samsung or Dell. A control GET with a random
community must stay unanswered, so an agent that accepts any community is not reported.
Only a read request is sent; no value is ever written.
cves: [CVE-2012-4964]
severity: high
category: default-credentials
confidence_base: 0.30
tags: [samsung, dell, printer, snmp, hardcoded-credentials, default-credentials]
services: [snmp]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2012-4964"
- "https://nvd.nist.gov/vuln/detail/CVE-1999-0517"
steps:
- id: control
action: snmp_get
port: "{{port}}"
communities: ["noctis-{{oob_token}}"]
oids: ["1.3.6.1.2.1.1.1.0"]
timeout_secs: 3
store_as: ctrl
- id: hardcoded
action: snmp_get
port: "{{port}}"
communities: ["s!a@m#n$p%c"]
oids: ["1.3.6.1.2.1.1.1.0"]
timeout_secs: 5
condition: "ctrl.responded == false"
store_as: snmp
- id: check-sysdescr
action: match
source: snmp.varbinds
pattern: "(samsung|dell)"
case_insensitive: true
condition: "ctrl.responded == false && snmp.responded == true"
on_match:
finding:
title: "Samsung/Dell printer accepts the hardcoded SNMP community"
description: "The SNMP agent answered a GET using the community string hardcoded in Samsung printer firmware, which grants read-write access to the device."
remediation: "Update the printer firmware to 20121031 or later (or apply the vendor patch tool), and restrict SNMP access to management hosts."
confidence_delta: 0.65
qod: 97
evidence: "hardcoded community answered; sysDescr={{snmp.varbinds}}"