IIG University of Freiburg
Web Security, Summer Term 2012
Information Leakage and Improper Error Handling
- Dr. E. Benoist
Sommer Semester
Web Security, Summer Term 2012 9.2 Information Leakage and Improper Error Handling 1
Web Security, Summer Term 2012 Information Leakage and Improper - - PowerPoint PPT Presentation
IIG University of Freiburg Web Security, Summer Term 2012 Information Leakage and Improper Error Handling Dr. E. Benoist Sommer Semester Web Security, Summer Term 2012 9.2 Information Leakage and Improper Error Handling 1 Table of Contents
Web Security, Summer Term 2012 9.2 Information Leakage and Improper Error Handling 1
Web Security, Summer Term 2012 9.2 Information Leakage and Improper Error Handling 2
◮ Application can unintentially leak information through
◮ Internal State can be spotted by measuring the duration
◮ Most of the information is leaked through error
Web Security, Summer Term 2012 9.2 Information Leakage and Improper Error Handling 3
◮ Some Application display error messages to users
◮ Too much detailed Error messages
◮ Functions produce different results based on different
Password”
Web Security, Summer Term 2012 9.2 Information Leakage and Improper Error Handling 4
Access Apache configuration
◮ Simple GET gives the list of all installed modules.
Web Security, Summer Term 2012 9.2 Information Leakage and Improper Error Handling 5
◮ Server banner is more restricted
◮ Server can be changed in the httpd.conf
Server: Apache
Server: Apache/2.2.8
Server: Apache/2.2.8 (Unix)
Server: Apache/2.2.8 (Unix) DAV/2 mod_ssl/2.2.8 OpenSSL/0.9.8e\ PHP/5.2.5 mod_apreq2-20051231/2.6.0 mod_perl/2.0.2 Perl/v5.10.0
Web Security, Summer Term 2012 9.2 Information Leakage and Improper Error Handling 6
◮ Apache and IIS leave traces
(Content-length vs. Content-Length)
Object Not Found
◮ It can let discover which version you have deployed
Web Security, Summer Term 2012 9.2 Information Leakage and Improper Error Handling 7
Very useful for SQL Injection
◮ Indicates if Magic cookie is installed ◮ Indicates if mysql query() is used or prepared
◮ MySQL Error gives a part of the Query
Unknown column ’test’ in ’where clause’
Web Security, Summer Term 2012 9.2 Information Leakage and Improper Error Handling 8
◮ Ensure that the entire team shares a common approach ◮ Disable or limit detailed error handling
◮ Ensure that secure paths that have multiple outcomes
Web Security, Summer Term 2012 9.2 Information Leakage and Improper Error Handling 9
◮ Database or Web Server may return exceptional results
◮ Need ONE default error message
◮ Makes sur HTTP code is always 200
serious error occurred (500 for instance)
Web Security, Summer Term 2012 9.2 Information Leakage and Improper Error Handling 10
◮ Prefer Logging than Displaying Error Messages
◮ Your application contains multiple layer
◮ Security by obscurity is not sufficient !
Web Security, Summer Term 2012 9.2 Information Leakage and Improper Error Handling 11
◮ OWASP Top 10 - 2007
◮ A Guide for Building Secure Web Applications and Web
Web Security, Summer Term 2012 9.2 Information Leakage and Improper Error Handling 12