跳到主要内容

5.0 安全注意事项

虽然已经描述了协议本身, 但还有一些其他注意事项值得提及.

首先, 该协议在单个 UDP 报文或 TCP 流中以明文携带用户名和密码.因此, 如果攻击者能够监视这些数据, 该攻击者就能捕获用户名/口令对.实现可以采取若干步骤来降低这种危险:

  • 尽可能使用点对点链路.

  • 对传输介质进行物理保护.

  • 如果报文必须穿越多个网段, 请使用安全的路由子系统.这意味着:

           - Tight control over router configurations.
- Tight control over routing protocols.
- Avoid use of bridges, as they can be silently fooled into
duplicating packets.

其次, 该协议潜在地开辟了一种探测用户名和密码的新途径.因此, 实现可能希望服务器:

           - limit responses to a controlled list of clients,
- throttle the rate of responding to requests,
- log all failures (and possibly successes, too).

第三, 该协议实质上允许客户端将接受/拒绝的决定交给服务器.虽然显而易见的实现会直接使用服务器的本机登录机制来作出判定, 但没有理由将实现局限于该机制.服务器可以:

           - use alternate lists of accounts (e.g., password files),
- use alternate mechanisms for accessing the accounts (e.g.,
a database, NIS),
- use alternate algorithms (e.g., SecureID cards),
- translate the request to another protocol and use that
protocol to make the determination (e.g., Kerberos).

第四, 使用 "扇出 (fanout)" 服务器 (在下一节中描述) 可以实现:

           - centralized logging of usage for attack analysis
- centralized policy:
                   - ability to block selected specific users
- ability to block selected user names (e.g., don't
allow "root" or "guest")
- ability to block poor passwords (e.g., none or weak)