Wednesday, March 18, 2009

Clever Wording Response Wedding

[STANDARD] OWASP - Episode 8



We continue our momentum to address the eighth episode of the methodology OWASP. This is to handle DoS attacks. Seldom asked in a pentest, yet pests effects on success ...




1 - Foreword



This section corresponds to section 4.9 of the standard, named
Denial of Service Testing - DS
. Speaking of denial of service attacks and the corresponding should only be undertaken if they are explicitly requested. Indeed, the company claims is rarely prepared to take the risk of its falling prod '. However, testing can be conducted on a test environment or the client may very well be interested in extensive testing or denial of services largely for them.
active testing phase 7 -
tests dDoS


2.1 - DS-001: DoS attack based on "wildcard characters"

The wildcard characters "are characters special replace multiple characters or strings. For example, the character "*" can replace all the strings. The goal is to use them to force the target database to search as long as possible to respond to our request. Here are some rules to follow:

The application must request an absent or very rare in a very wide field of research;
Use long and complex queries with wildcard characters ";
Begin and end the application by a "%" (for
LIKE
).

The purpose of this attack and make the DB unusable or at least very slow.
2.2 - DS-002: Block user accounts Generally, a threshold is imposed on the number of attempts allowed to connect with an account. This prevents such attacks by brute force. " However, once all the tests exhausted, the account is blocked for a period indétermminée. We have two cases:
We know the login accounts to be blocked. In this case, try at least 15 trials to block the account;
We know of no login. So we must find grace:
messages and pages error provided from the login page (point already treated);
page creation account in trying to create a user already exists;
page to recover your password (point already Treaty).
  • 2.3 - DS-003: DoS attacks based on type "Buffer Overflow"
  • We have already discussed the issue of buffer overflow in the previous episode. The difference is that here the goal is simply inaccessible to a service. For example, we can check if a page or feature is no longer available due to our attack.
  • 2.4 - DS-004: DoS on object allocation

Among the actions allowed for the user, it can sometimes - directly or otherwise - create instances of any object (property, characteristic , entered into a database, etc.).. For illustration, in code, creating an object will be a new

.

2.5 - DS-005: Using a loop
  • coders often use loops in their programs. If a loop is located or suspected, the user may attempt to exceed the limits of a loop (eg in the case of a loop for
  • ) or start an infinite loop (eg a while loop
    • ).
    • 2.6 - DS-006: Saturation of a disk
    If the log management is not secure, it may happen that many logs are recorded. Also, it is possible that the disk hosting the logs did not have enough space. So, the goal of the attacker will generate a maximum set of logs to use the system log. This attack will usually using automated scripts or queries consuming disk space.

2.7 - DS-007: Saturation resources

resources created on ask the server for other resources (disk, CPU, RAM, and / or network). If they are not closed properly or reallocated, they accumulate and can cause an overload of some kind. For example, we have:

files that are not properly secured locks;
accumulated resources which require RAM too large for the server's capabilities; connections still active until it reaches a BDD threshold allowed (ex: 15 simultaneous connections).


2.8 - DS-008: Saturation of a session
Here, we try to store much data in one session. Also, it can be to create a maximum session to overload the server. Ideally, we will combine the two. Requirements in terms of memory is now increasingly strong for the server that will almost certainly end up not having the capacity to provide such a request.

0 comments:

Post a Comment