This site is the archived OWASP Foundation Wiki and is no longer accepting Account Requests.
To view the new OWASP Foundation website, please visit https://owasp.org

Difference between revisions of "Testing: Information Gathering"

From OWASP
Jump to: navigation, search
m
Line 1: Line 1:
[[http://www.owasp.org/index.php/OWASP_Testing_Guide_v2_Table_of_Contents#Web_Application_Penetration_Testing Up]]<br>
+
{{Template:OWASP Testing Guide v3}}
{{Template:OWASP Testing Guide v2}}
 
  
 
=== Information Gathering ===
 
=== Information Gathering ===
Line 13: Line 12:
 
Often it is possible to gather information by receiving a response from the application that could reveal vulnerabilities in the bad configuration or bad server management.
 
Often it is possible to gather information by receiving a response from the application that could reveal vulnerabilities in the bad configuration or bad server management.
  
[[Testing for Web Application Fingerprint|4.2.1 Testing Web Application Fingerprint]]
 
  
Application fingerprint is the first step of the Information Gathering process; knowing the version and type of a running web server allows testers to determine known vulnerabilities and the appropriate exploits to use during testing.
+
[[Testing: Spiders Robots and Crawlers|4.2.1 Spiders, Robots and Crawlers]]
 
 
[[Testing for Application Discovery|4.2.2 Application Discovery]]
 
 
 
Application discovery is an activity oriented to the identification of the web applications hosted on a web server/application server.<br>
 
This analysis is important because many times there is not a direct link connecting the main application backend. Discovery analysis can be useful to reveal details such as web-apps used for administrative purposes. In addition, it can reveal old versions of files or artifacts such as undeleted, obsolete scripts crafted during the test/development phase or as the result of maintenance.
 
 
 
[[Testing: Spidering and googling|4.2.3 Spidering and Googling]]
 
  
 
This phase of the Information Gathering process consists of browsing and capturing resources related to the application being tested. Search engines, such as Google, can be used to discover issues related to the web application structure or error pages produced by the application that have been exposed to the public domain.
 
This phase of the Information Gathering process consists of browsing and capturing resources related to the application being tested. Search engines, such as Google, can be used to discover issues related to the web application structure or error pages produced by the application that have been exposed to the public domain.
  
[[Testing for Error Code|4.2.4 Analysis of Error Code]]
+
[[Testing: Search engine discovery|4.2.2 Search Engine Discovery/Reconnaissance]]
  
Web applications may divulge information during a penetration test which is not intended to be seen by an end user. Information such as error codes can inform the tester about technologies and products being used by the application.<br>
+
[[Testing: Identify application entry points|4.2.3 Identify application entry points]]
In many cases, error codes can be easily invoked without the need for specialist skills or tools due to bad exception handling design and coding.  
 
  
[[Testing for infrastructure configuration management|4.2.5 Infrastructure Configuration Management Testing]]
 
  
Often analysis of the infrastructure and topology architecture can reveal a great deal about a web application. Information such as source code, HTTP methods permitted, administrative functionality, authentication methods and infrastructural configurations can be obtained.<br>
 
Clearly, focusing only on the web application will not be an exhaustive test. It cannot be as comprehensive as the information possibly gathered by performing a broader infrastructure analysis. 
 
  
[[Testing for SSL-TLS|4.2.5.1 SSL/TLS Testing]]
+
[[Testing for Web Application Fingerprint|4.2.4 Testing Web Application Fingerprint]]
  
SSL and TLS are two protocols that provide, with the support of cryptography, secure channels for the protection, confidentiality, and authentication of the information being transmitted.<br>
+
Application fingerprint is the first step of the Information Gathering process; knowing the version and type of a running web server allows testers to determine known vulnerabilities and the appropriate exploits to use during testing.  
Considering the criticality of these security implementations, it is important to verify the usage of a strong cipher algorithm and its proper implementation.
 
  
[[Testing for DB Listener|4.2.5.2 DB Listener Testing]]
+
[[Testing for Application Discovery|4.2.5 Application Discovery]]
  
During the configuration of a database server, many DB administrators do not adequately consider the security of the DB listener component. The listener could reveal sensitive data as well as configuration settings or running database instances if insecurely configured and probed with manual or automated techniques. Information revealed will often be useful to a tester serving as input to more impacting follow-on tests.
+
Application discovery is an activity oriented to the identification of the web applications hosted on a web server/application server.<br>
 +
This analysis is important because many times there is not a direct link connecting the main application backend. Discovery analysis can be useful to reveal details such as web-apps used for administrative purposes. In addition, it can reveal old versions of files or artifacts such as undeleted, obsolete scripts crafted during the test/development phase or as the result of maintenance.
  
[[Testing for application configuration management|4.2.6 Application Configuration Management Testing]]
+
[[Testing for Error Code|4.2.6 Analysis of Error Code]]
  
Web applications hide some information that is usually not considered during the development or configuration of the application itself.<br>
+
Web applications may divulge information during a penetration test which is not intended to be seen by an end user. Information such as error codes can inform the tester about technologies and products being used by the application.<br>
This data can be discovered in the source code, in the log files or in the default error codes of the web servers. A correct approach to this topic is fundamental during a security assessment.
+
In many cases, error codes can be easily invoked without the need for specialist skills or tools due to bad exception handling design and coding.  
 
 
[[Testing for file extensions handling|4.2.6.1 Testing for File Extensions Handling]]
 
 
 
The file extensions present in a web server or a web application make it possible to identify the technologies which compose the target application, e.g. jsp and asp extensions. File extensions can also expose additional systems connected to the application.
 
 
 
[[Testing for old_file|4.2.6.2 Old, Backup and Unreferenced Files]]
 
 
 
Redundant, readable and downloadable files on a web server, such as old, backup and renamed files, are a big source of information leakage. It is necessary to verify the presence of these files because they may contain parts of source code, installation paths as well as passwords for applications and/or databases.
 
  
 +
[[Testing for infrastructure configuration management|4.2.5 Infrastructure Configuration Management Testing]]
  
  
{{Category:OWASP Testing Project AoC}}
+
Clearly, focusing only on the web application will not be an exhaustive test. It cannot be as comprehensive as the information possibly gathered by performing a broader infrastructure analysis.

Revision as of 15:18, 13 August 2008

OWASP Testing Guide v3 Table of Contents

This article is part of the OWASP Testing Guide v3. The entire OWASP Testing Guide v3 can be downloaded here.

OWASP at the moment is working at the OWASP Testing Guide v4: you can browse the Guide here

Information Gathering


The first phase in security assessment is focused on collecting as much information as possible about a target application. Information Gathering is a necessary step of a penetration test.

This task can be carried out in many different ways.

Using public tools (search engines), scanners, sending simple HTTP requests, or specially crafted requests, it is possible to force the application to leak information by sending back error messages or revealing the versions and technologies used by the application.

Often it is possible to gather information by receiving a response from the application that could reveal vulnerabilities in the bad configuration or bad server management.


4.2.1 Spiders, Robots and Crawlers

This phase of the Information Gathering process consists of browsing and capturing resources related to the application being tested. Search engines, such as Google, can be used to discover issues related to the web application structure or error pages produced by the application that have been exposed to the public domain.

4.2.2 Search Engine Discovery/Reconnaissance

4.2.3 Identify application entry points


4.2.4 Testing Web Application Fingerprint

Application fingerprint is the first step of the Information Gathering process; knowing the version and type of a running web server allows testers to determine known vulnerabilities and the appropriate exploits to use during testing.

4.2.5 Application Discovery

Application discovery is an activity oriented to the identification of the web applications hosted on a web server/application server.
This analysis is important because many times there is not a direct link connecting the main application backend. Discovery analysis can be useful to reveal details such as web-apps used for administrative purposes. In addition, it can reveal old versions of files or artifacts such as undeleted, obsolete scripts crafted during the test/development phase or as the result of maintenance.

4.2.6 Analysis of Error Code

Web applications may divulge information during a penetration test which is not intended to be seen by an end user. Information such as error codes can inform the tester about technologies and products being used by the application.
In many cases, error codes can be easily invoked without the need for specialist skills or tools due to bad exception handling design and coding.

4.2.5 Infrastructure Configuration Management Testing


Clearly, focusing only on the web application will not be an exhaustive test. It cannot be as comprehensive as the information possibly gathered by performing a broader infrastructure analysis.