11.07.2015 Views

Improving Web Application Security: Threats and - CGISecurity

Improving Web Application Security: Threats and - CGISecurity

Improving Web Application Security: Threats and - CGISecurity

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

414 Part IV: Securing Your Network, Host, <strong>and</strong> <strong>Application</strong>FiltersFiltering published ports on a firewall can be an effective <strong>and</strong> efficient method ofblocking malicious packets <strong>and</strong> payloads. Filters range from simple packet filters thatrestrict traffic at the network layer based on source <strong>and</strong> destination IP addresses <strong>and</strong>port numbers, to complex application filters that inspect application-specificpayloads. A defense in depth approach that uses layered filters is a very effective wayto block attacks. There are six common types of firewall filters:● Packet filtersThese can filter packets based on protocol, source or destination port number <strong>and</strong>source or destination address, or computer name. IP packet filters are static, <strong>and</strong>communication through a specific port is either allowed or blocked. Blockedpackets are usually logged, <strong>and</strong> a secure packet filter denies by default.At the network layer, the payload is unknown <strong>and</strong> might be dangerous. Moreintelligent types of filtering must be configured to inspect the payload <strong>and</strong> makedecisions based on access control rules.● Circuit-level filtersThese inspect sessions rather than payload data. An inbound or outbound clientmakes a request directly against the firewall/gateway, <strong>and</strong> in turn the gatewayinitiates a connection to the server <strong>and</strong> acts as a broker between the twoconnections. With knowledge of application connection rules, circuit level filtersensure valid interactions. They do not inspect the actual payload, but they docount frames to ensure packet integrity <strong>and</strong> prevent session hijacking <strong>and</strong>replaying.● <strong>Application</strong> filtersSmart application filters can analyze a data stream for an application <strong>and</strong> provideapplication-specific processing, including inspecting, screening or blocking,redirecting, <strong>and</strong> even modifying the data as it passes through the firewall.<strong>Application</strong> filters protect against attacks such as the following:● Unsafe SMTP comm<strong>and</strong>s● Attacks against internal DNS servers.● HTTP-based attacks (for example, Code Red <strong>and</strong> Nimda, which useapplication-specific knowledge)For example, an application filter can block an HTTP DELETE, but allow an HTTPGET. The capabilities of content screening, including virus detection, lexicalanalysis, <strong>and</strong> site categorization, make application filters very effective in <strong>Web</strong>scenarios both as security measures <strong>and</strong> in enforcement of business rules.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!