Bitzu

CPSA ยท VPN, VoIP, wireless and device configuration

VoIP enumeration and the SIP protocol

SIP methods and responses, extension enumeration and typical VoIP exposures.

Key points

  • SIP: text VoIP signalling, UDP/TCP 5060 (5061 TLS); voice: RTP on separate ports.
  • Methods: REGISTER (bind user), INVITE (start call), ACK, CANCEL, BYE, OPTIONS (capabilities).
  • Responses: 1xx provisional, 2xx success, 3xx redirect, 4xx client error, 5xx server error, 6xx global failure.
  • Enumeration: 401/407 versus 404, User-Agent/Server banners.
  • Risks: unauthenticated registration, weak passwords, cleartext signalling or media.

Source: https://www.rfc-editor.org/rfc/rfc3261

Practice questions

Single choice

Which SIP method asks a server or phone what it supports without setting up a call?

  1. INVITE
  2. REGISTER
  3. OPTIONS
  4. BYE
Show answer

Answer: C. OPTIONS

OPTIONS queries capabilities. INVITE starts a session, REGISTER binds a contact to a user, BYE ends a call.

Select all that apply

Which are typical VoIP exposures worth reporting?

  1. Signalling and RTP sent unencrypted across untrusted networks
  2. Extensions whose password equals the extension number
  3. Handsets that obtain addresses by DHCP
  4. Different error codes revealing which extensions exist
  5. Phones displaying the current time
Show answer

Answer: A. Signalling and RTP sent unencrypted across untrusted networks, B. Extensions whose password equals the extension number, D. Different error codes revealing which extensions exist

Cleartext signalling/media, guessable extension passwords and differing error replies are classic findings. A phone showing the time or using DHCP is normal.

True or false

True or false: the voice audio of a SIP call travels inside the SIP messages on port 5060.

Show answer

Answer: False

False. SIP only signals the call; audio is carried separately as RTP on negotiated ports.

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