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

Difference between revisions of "Testing: Information Gathering"

Jump to: navigation, search
(Information Gathering)
Line 1: Line 1:
[[ Up]]<br>
[[ Up]]<br>
{{Template:OWASP Testing Guide v2}}
{{Template:OWASP Testing Guide v2}}

Revision as of 16:26, 11 December 2006

OWASP Testing Guide v2 Table of Contents

Information Gathering

The first phase in security assessment is focused on collecting all the information about a target application. Information Gathering is a necessary step of a penetration test.
This task can be carried out by using many different ways.
Using public tools (search engines), scanners, sending simple HTTP requests, or specially crafted requests, it is possible to force the application leak information by sending back error messages revealing the versions and technologies used by the application.

Often it is possible to gather information by receiving a response from the application which, as a consequence of default bad configuration in the application server or web server, could reveal vulnerabilities in configuration or bad server management.

4.2.1 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 so, a discovery analysis would be useful to reveal details such as, web-apps used for administrative purposes, old versions of files or artifacts (such as scripts not properly deleted after their usage while crafted during the test/development phase or as the result of maintenance).

4.2.2 Spidering and googling

This phase of the Information Gathering process consists in 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 usually found because exposed to the public domain.

4.2.3 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.
Such error codes, can be easy to exploit without using any particular skill due to bad error handling strategy.

4.2.4 Infrastructure configuration management testing

Often analysis of the infrastructure and topology architecture can reveal a lot of information about a web application such as source code, HTTP methods permitted, administrative functionalities, authentication methods and infrastructural configurations.
For those reasons focusing only on the web application could not be an exhaustive test, considering the fact that those information collected during the security assessment, could not be as exhaustive as those possibly gathered performing a wider test comprehensive of an infrastructure analysis. SSL/TLS Testing

SSL and TLS are two protocols which provide, with the support of the cryptography, a secure channel for the communications to protect the confidentiality & authentication of the information and a secure channel.
Considering the importance of those security implementations it is important to verify the presence of a strong cipher algorithm used and proper implementation has been performed. DB Listener Testing

During the configuration of a database server many DB administrators do not consider the importance of the lack of security of the DB Listener component. It could reveal sensible data as well as configuration settings or database instances running.
The collection of those information could provide some useful hints needed to compromise the reservedness, integrity and availability of the data stored.
An accurate security analysis over DB listener configuration matters permits to acquire those information.

4.2.5 Application configuration management testing

The web applications hide some information which usually are not considered during the development or the configuration of the application itself.
Those data can be discovered in the source code, in the log files or in the default error codes of the web servers so a correct approach on this topic is fundamental during a security assessment. File extensions handling

Observing the file extensions present in a web server or a web-app, it is possible to identify the technologies which compose the target application (for example jsp and asp extensions in a server-side architecture) and sometimes additional systems connected to the application. Old, backup and unreferenced files

Redundant files which could be present on a web server (such as old, backup and renamed files), which are freely readable and downloadable 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.

OWASP Testing Guide v2

Here is the OWASP Testing Guide v2 Table of Contents