F5 Web Application Security: Radovan Gibala
F5 Web Application Security: Radovan Gibala
F5
Web
Application
Security
Radovan Gibala
Senior Solutions Architect
[email protected]
+420 731 137 223
2009
2
Agenda
Challenge Websecurity – What are the problems?
Building blocks of Web Applications
Vulnerabilities and protection strategies
Websecurity with a Web Application Firewall (WAF)
Security Policy Setups
Deployment Methods
Attacking the Application
How to mitigate the risk in Web Applications with ASM
3
Market Trends
Webalization of Critical Applications
Cookie Poisoning
Hidden-Field Manipulation
PORT 443 !
Forced
Parameter Tampering Access to
But Is Open
!
Infrastructural
to Web Traffic
Information
High
Intelligence Information
Density
=
High Value
Attack
6
Infrastructure Solutions
8
1+1=2
Application Performance
9
Network Security?
Engineering services?
DBA?
10
Best
Automated
Practice
& Targeted
Design
Testing
Methods
Only protects against Web Done periodically; only
known vulnerabilities Apps as good as the last test
Difficult to enforce; Only checks for known
especially with sub- vulnerabilities
contracted code Does it find everything?
Only periodic updated; Web
large exposure window Application
Firewall
Real-time 24 x 7 protection
Enforces Best Practice Methodology
Allows immediate protection against
new vulnerabilities
12
Simple Version:
– Does your WAF discover that the Price of an Item on an Online
Shop was changed ?
15
Simple Version:
– Does your WAF discover that the Price of an Item on an Online
Shop was changed ?
Technical Version:
– OWASP
(http://www.owasp.org/index.php/OWASP_Top_Ten_Project )
1. Unvalidated Input
2. Broken Access Control
3. Broken Authentication and Session Management
4. Cross Site Scripting
5. Buffer Overflow
6. Injection Flaws
7. Emproper Error Handling
8. Insecure Storage
9. Application Denial of Service
10. Insecure Configuration Management
17
A2 – Injection Flaws Injection flaws, particularly SQL injection, are common in web applications. Injection occurs
when user-supplied data is sent to an interpreter as part of a command or query. The
attacker’s hostile data tricks the interpreter into executing unintended commands or
changing data.
A3 – Insecure Remote File Include Code vulnerable to remote file inclusion allows attackers to include hostile code and data,
resulting in devastating attacks, such as total server compromise.
A4 – Insecure Direct Object Reference A direct object reference occurs when a developer exposes a reference to an internal
implementation object, such as a file, directory, database record, or key, as a URL or form
parameter. Attackers can manipulate those references to access other objects without
authorization.
A5 – Cross Site Request Forgery (CSRF) A CSRF attack forces a logged-on victim’s browser to send a pre-authenticated request to a
vulnerable web application, which then forces the victim’s browser to perform a hostile
action to the benefit of the attacker.
A6 – Information Leakage and Improper Applications can unintentionally leak information about their configuration, internal workings,
Error Handling or violate privacy through a variety of application problems. Attackers use this weakness
to violate privacy, or conduct further attacks.
A7 – Broken Authentication and Session Account credentials and session tokens are often not properly protected. Attackers
Management compromise passwords, keys, or authentication tokens to assume other users’ identities.
A8 – Insecure Cryptographic Storage Web applications rarely use cryptographic functions properly to protect data and credentials.
Attackers use weakly protected data to conduct identity theft and other crimes, such as
credit card fraud.
A9 – Insecure Communications Applications frequently fail to encrypt network traffic when it is necessary to protect sensitive
communications.
A10 – Failure to Restrict URL Access Frequently, the only protection for sensitive areas of an application is links or URLs are not
presented to unauthorized users. Attackers can use this weakness to access and perform
unauthorized operations.
18
!
Unauthorised
And Stops
Bad !Non-
Access Requests compliant
Information
WAF Allows
Browser
! Legitimate Requests
Unauthorised
!
Infrastructural
Access Intelligence
Bi-directional:
– Inbound: protection from generalised & targeted attacks
– Outbound: content scrubbing & application cloaking
Application content & context aware
High performance, low latency, high availability, high
security
Policy-based full proxy with deep inspection & Java support
Positive security augmenting negative security
Central point of application security enforcement
23
Definition of Good
Browser and Bad Behaviour
24
!
ALLOWED
Username
From Acc. $ Amount
Password To Acc. Transfer
? !
!
VIOLATION
VIOLATION
PARAMETER NAMES
Typical
‘standard’
starting point OBJECT NAMES
OBJECT TYPES
27
OBJECT TYPES
29
Learning mode
– Gradual deployment
– Transparent / semi-transparent / full blocking
30
Security Policy
Internet
website
33
WAF
Manual
Scan
Assurance
34
BIG-IP with
Firewall ASM
Internet
Management Access
(browser)
Summary
ASM introduce the DoS and Brute Force
prevention engines.
The DoS prevention is anomaly based
The brute force relies on the Dos engine to
mitigate attacks
Both features have reporting page to provide
information on false positives in transparent
mode and actual attack in blocking mode
37
DoS – configuration
The configuration screen is divide into 5 main
parts:
1. Operation mode
2. Detection Criteria
3. Suspicious Criteria
4. Prevention Policy
5. Prevention Duration
38
DoS - Reporting
Reporting page for DoS will show events that
reached the thresholds criteria's
Some of the records might not be an actual
connection drop when in transparent mode
44
Brute Force
Brute Force is a new feature in ASM park city
Part of the brute force feature relies on the DoS
engine
Brute force can be define per web application
The configuration page contain few sections:
– Brute Force Protection Configuration
– Session-based Brute Force Protection
– Dynamic Brute Force Protection
– Access Validation
47
XML Firewall
Well formatted validation
Schema/WSDL validation
Methods selection
Attack signatures for XML platforms
Backend Parser protection
XML islands application protection
Full request Logging
57
Secerno DataWall
Real-Time database activity monitoring
and blocking
Responds to each type of threat via either logging, monitoring,
alerting, blocking or substituting.
Enables rapid application development by reducing the need for
intensive security code development
Enforces a positive-security model: Only approved behavior is
allowed
Zero false positives
58
Mitigates Brute-
Length Checks Force Attacks Rate Limits
Anti-SPAM
Data Guard Length Checks Grey-Listing
“Stepping-Stone” Security
Application
BIG-IP ASM
App. Protocol
BIG-IP PSM
BIG-IP LTM
Transport
Network
Data Link
64
Rate limiting X X X
Reporting
67
Reporting
68
Overall www.f5.com
Technical ask.f5.com
devcentral.f5.com
F5 University www.f5university.com/
» Login: your email
» Password: adv5tech
Partner Informaiotn
www.f5.com/partners
www.f5.com/training_services/certification/certFAQ.html
Gartner Report http://mediaproducts.gartner.com/reprints/f5networks/article1/article1.html
Let us know if you need any clarification or you have any further questions.
72
Application
Delivery
At Home Network SAP
In the Office Microsoft
On the Road Oracle