CNSP practice question 12 of 15

You are performing a security audit on a company's network infrastructure and have discovered the SNMP community string set to the default value of "public" on several devices. What security risks could this pose, and how might you exploit it?

Full set: 60 questions

Domain Network Security Assessment and Monitoring

Answer options
A: The potential risk is that an attacker could use the SNMP protocol to gather sensitive information about the devices. You might use a tool like Snmpwalk to query the devices for information. Correct answer
B: The potential risk is that an attacker could use the SNMP protocol to modify the devices' configuration settings. You might use a tool like Snmpset to change the settings.
C: Both A and B.
D: None of the above.
Correct Answer:
A. The potential risk is that an attacker could use the SNMP protocol to gather sensitive information about the devices. You might use a tool like Snmpwalk to query the devices for information.
Explanation

In SNMP v1/v2c the default community string “public” is mapped by virtually all network-equipment vendors to the read-only access class. If left unchanged, any unauthenticated host that can reach UDP/161 on the device may issue SNMP-GET or bulk-walk requests and obtain interface tables, routing information, software versions, etc. A penetration tester (or attacker) would typically exploit this with utilities such as snmpwalk or snmp-bulkwalk to enumerate the device’s MIB. Because “public” is read-only, it cannot be used for SNMP-SET operations that alter configuration; that requires the separate read-write community string (commonly “private”).

Why Incorrect

B. “public” is read-only; SNMP-SET commands need the read-write community (e.g., “private”), so configuration changes are not possible.
C. Includes option B, which is incorrect for the reason above.
D. Risks do exist; leaving “public” enabled exposes significant information disclosure.

References

1. Cisco Systems, “Simple Network Management Protocol Security Features,” Cisco IOS Security Configuration Guide, Release 15, Sec. “Configuring Community Strings” – para. 2: “public (read-only)… private (read-write).”

2. Cisco Systems, “Hardening Cisco IOS Devices,” v3.0, p. 29: “If the default ‘public’ string is not removed, attackers can perform SNMP walks and obtain topology and configuration data.”

3. NIST SP 800-115, “Technical Guide to Information Security Testing and Assessment,” Sept 2008, Sec. 4.3.4 (SNMP Enumeration), p. 4-12: “Devices that retain default community strings such as ‘public’ allow unauthorized information retrieval.”

4. MIT OpenCourseWare, 6.858 “Computer Systems Security,” Lecture 23 slides, slide 18: “SNMP defaults: ‘public’ → read-only, ‘private’ → read-write; change them or disable SNMP.”

Scroll to Top