Bitzu

CPSA ยท Network device management and Layer 2/3 protocols

SNMP weaknesses

Community strings, v1/v2c vs v3, information enumeration and common attacks on Cisco configurations.

Key points

  • SNMP (UDP 161 queries, 162 traps): reads and sets values in a device MIB.
  • v1 and 2c: clear-text community string only, often defaults public (read-only) and private (read-write).
  • Read community: interfaces, routes, ARP entries, software, sometimes config; write community changes settings.
  • SNMPv3: users, authentication, encryption (authNoPriv integrity only, authPriv also encrypts).
  • Use ACLs, prefer v3, avoid read-write.

Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/snmp/configuration/xe-16/snmp-xe-16-book/nm-snmp-cfg-snmp-support.html

Practice questions

Single choice

How do SNMPv1 and v2c authenticate a request?

  1. A per-user certificate
  2. A community string sent in clear text
  3. A Kerberos ticket
  4. An encrypted pre-shared key
Show answer

Answer: B. A community string sent in clear text

They rely on a community string carried in clear text. Per-user keys and encryption arrive only with SNMPv3.

Select all that apply

Which weaknesses affect SNMPv1 and v2c deployments?

  1. Community strings can be sniffed
  2. Default strings such as public and private are widely tried
  3. Messages are encrypted per user
  4. Agents can be queried only from the local console
  5. Commands are authenticated with a digital certificate
Show answer

Answer: A. Community strings can be sniffed, B. Default strings such as public and private are widely tried

Clear-text community strings and guessable defaults are the issues. Per-user encryption belongs to v3, and UDP transport is not itself a vulnerability here.

True or false

A read-only community string cannot expose anything useful to an attacker.

Show answer

Answer: False

False. Read access can reveal interfaces, IP addresses, routes, ARP tables and software versions, which is valuable reconnaissance.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More CPSA topics in this module