J-Security Center

Title: Cisco PIX Firewall SMTP Content Filtering Evasion Vulnerability

Severity: MODERATE

Description:

Like other firewalls, the Cisco PIX Firewall implements technology that reads the contents of packets passing through it for application-level filtering. In the case of SMTP, it can be configured so only certain smtp commands can be allowed through (for example, dropping extra functionality, such as HELP or commands that could be a security concern, like EXPN or VRFY). When recieving messages, it allows all text through between "data" and "<CR><LF><CR><LF>.<CR><LF>", as this is where the body of the message would normally go and there could be words in it that are smtp commands which shouldn't be filtered. Due to the nature of SMTP and flaws in exceptional condition handling of PIX, it is reportedly possible to evade the smtp command restrictions by tricking the firewall into thinking the body of the message is being sent when it isn't.

During communication with an smtp server, if the "data" command is sent before the more important information is sent, such as "rcpt to", the smtp server will return error 503, saying that rcpt was required. The firewall, however, thinks everything is alright and will let everything through until recieving "<CR><LF><CR><LF>.<CR><LF>". It is then possible for the attacker to do whatever he wishes on the email server.

Affected Products:

  • Cisco PIX Firewall 4.2.0(5)
  • Cisco PIX Firewall 4.2.1
  • Cisco PIX Firewall 4.2.2
  • Cisco PIX Firewall 4.3.0
  • Cisco PIX Firewall 4.4.0(4)
  • Cisco PIX Firewall 5.0.0
  • Cisco PIX Firewall 5.1.0
  • Cisco PIX Firewall 5.2.0
  • Cisco PIX Firewall 515
  • Cisco PIX Firewall 520

References:

Juniper Networks provides this content via a wide variety of sources and production methods. If notified of errors or omissions in the content of this page, Juniper Networks, at its discretion, will modify or remove the page or leave the content as is, depending on various factors including but not limited to the reputation and authority of the party providing the notification. Please use the contact information displayed elsewhere on this page to report any errors or omissions regarding the content on this page.