Interlacing Attacks and Countermeasures
Web Attacks and Defense
1. Introduction
What is a mesh application? Why lattice applications are the inaugural entity for hackers? What are the attacks Net applications normally face, how to prevent from these attacks. Lets commence from the distinct lacework employ attacks. This article is divided into three areas including types of attacks, countermeasures and risk factor.
2. ATTACKS
Following are the most customary netting handle attacks.
a. Remote principle execution
b. SQL injection
c. Format path vulnerabilities
d. Cross Speck Scripting (XSS)
e. Username enumeration
Remote Decree Execution
As the flag suggests, this vulnerability allows an attacker to dash arbitrary, operation flush rule on the ready web exercise server and retrieve any desired dirt contained therein. Improper coding errors vanguard to this vulnerability. At times, it is hard to devise this vulnerability during penetration testing assignments on the contrary such problems are regularly revealed while doing a source law review. However, when testing Web applications is far-reaching to conjure up that exploitation of this vulnerability can direction to complete step compromise with the corresponding rights as the Web server itself is running with.
SQL Injection
SQL injection is a correct aged passage however it's yet universal among attackers. This procedure allows an attacker to retrieve crucial dope from a Web server's database. Depending on the application's security measures, the clash of this barrage can vary from basic break disclosure to remote regulation execution and total method compromise.
Format Border Vulnerabilities
This vulnerability results from the avail of unfiltered user input as the format contour parameter in positive Perl or C functions that perform formatting, such as C's printf().
A wick user may appliance the %s and %x format tokens, among others, to print news from the stack or maybe other locations in memory. One may again record arbitrary info to arbitrary locations using the %n format token, which commands printf() and homogenous functions to inscribe back the unit of bytes formatted. This is assuming that the comparable conversation exists and is of type int *.
Format case vulnerability attacks fall into three universal categories: denial of service, reading and writing.
Cross Aim Scripting
The attainment of this initiative requires the butt to execute a deficient URL which may be crafted in such a transaction to come forth to be valid at aboriginal look. When visiting such a crafted URL, an attacker can effectively execute something damaging in the victim's browser. Some defective JavaScript, for example, testament be jog in the instance of the web location which possesses the XSS bug.
Username enumeration
Username enumeration is a type of foray where the backend validation script tells the attacker whether the supplied username is genuine or not. Exploiting this vulnerability helps the attacker to experiment with discrepant usernames and clinch absolute ones with the advice of these changed misconception messages.
3. Countermeasures
Username enumerations:
Display consistent wrongdoing messages to prevent disclosure of certain usernames. Assemble persuaded provided trivial accounts annex been created for testing purposes that their passwords are either not trivial or these accounts are certainly removed after testing is over - and before the manipulate is situate online.
Cross point scripting:
Input validation, secure programming and usage of acceptable vocabulary for driving web applications.
SQL Injection:
Avoid connecting to the database as a super user or as the database owner. Always operate customized database users with the naked minimum required privileges required to perform the assigned task. Perform input validation and act not convey inaccuracy response on client side.
Format String:
Edit the source edict so that the input is properly verified.
Remote statute execution:
It is an certain must to sanitize all user input before processing it. As far as possible, avoid using shell commands. However, if they are required, arrange that isolated filtered information is used to construct the information to be executed and accomplish trustworthy to escape the output
4. Risk Factors
SQL Injection:
Rating: Exchange to Highly Critical
Remote Code Execution:
Rating: Highly Critical
Cross Purpose Scripting:
Rating: Less Critical
User Cognomen Enumeration
Rating: Less
5. Summary
This is the short article to prosper awareness on web attacks and countermeasures, these are familiar web apply attacks.
Published: June 19, 2008