- Server problems: These are the most common security
problem. It happens many a times that the server is down for maintenance
or some other reason.
- Hardware problems
- Data base problems: Any problems in the data base of the
web site or web application gives rise to many of the security problems. Any
problem and uncertainty in the data base can prove to be a danger to the
overall security of the web site or web application.
- Navigation from one page to another: Too much of
navigation from one page to another endangers the security of the web site
or web application which in turn acts as a hindrance in the web testing of
that particular web site or web application.
- Server security: A server houses a web site or web
application data base; therefore it is obvious that the security of the
web site or the application relates a lot to the security of the server. Maintaining
the security of the web server is quite an important point which otherwise
could introduce many of the security problems during the web testing.
- Authentication issue
- Data encryption
- User privileges leaks
- SQL injection
- Cross side scripting
- Cookie testing
- The content on a web site that proves to be inaccessible
or incorrect can also pose security problems during web testing.
- Improper validation of the input can disturb the working
mechanism of the web site or web application.
- Link testing is an important aspect of web testing. Broken
links can hamper the security of the web site or application and thus
poses problems in web testing security.
- Incorrect copyright information.
- Incorrect EULA or end user license agreement.
- Un-optimized images that do not meet the specifications.
- Improper storage of the data obtained through the web
pages.
- Time taken by the pages to render.
- Lag in performance with many simultaneous users.
- Concurrency issues like when a user is working on
multiple windows of the same page or there are multiple users on the same
page.
- Improper and inefficient tracking of the transactions by
the server log.
- Improper usage of SSL by the web site or web
application.
- Inefficient working of the feeds.
- Inefficient working of the cookies.
Monday, July 16, 2012
What are the types of web testing security problems?
Posted by
Sunflower
at
7/16/2012 10:00:00 PM
0
comments
Labels: Applications, Authentication, Content, Crimes, Cyber, Data, Database, Leak, navigation, Performance, Problems, Scripting, Security, Server, SQL, Users, Web pages, Web testing, Web testing security, Websites
|
| Subscribe by Email |
|
Sunday, May 13, 2012
What are different aspects of Interactive SQL injection attack?
About Interactive SQL
Aspects of Interactive Session
Posted by
Sunflower
at
5/13/2012 12:39:00 PM
0
comments
Labels: Application, Aspects, Attackers, Commands, Database, Execute, Functions, Interactive SQL Injection Attack, Message, Parameters, Session, Software System, SQL, SQL injection attack, Statements, Tests, User, Values
|
| Subscribe by Email |
|
Saturday, May 12, 2012
What are different aspects of Inference SQL injection attack?
When does an injection attack occurs?
Approaches of Inference SQL Injection Attack
The SQL inference injection attacks are usually used for mining of data. There are 3 approaches that are used for data mining following inference SQL:About the Inference SQL Injection Attack
Posted by
Sunflower
at
5/12/2012 11:39:00 PM
0
comments
Labels: Application, Attackers, Commands, Data, Database, Inference SQL injection attack, Security, SQL, SQL injection, SQL injection attack, SQL statements, Statements, Techniques, Types, Web form, Web site, Websites
|
| Subscribe by Email |
|
Wednesday, March 14, 2012
What are major activities in database testing?
Before going to the main topic i.e., the major activities that are carried out in data base testing, we will first have an insight on what is data base testing actually.
WHAT IS DATABASE TESTING?
- Data base testing as it suggests itself, it is the testing of the data or values retrieved from the data base of that software system or application under testing.
- The retrieved data should match exactly with the data mentioned in the records of the data base.
- Data base testing is not an easy thing to carry out.
- It calls for a great need of expertise in reading the data base record tables, writing procedures and queries for the data base.
- Data base testing works well with all sorts of application softwares be it any application written either in SQL or Oracle languages.
- But normally, data base testing finds it way in the testing of applications that work with all sorts of sensitive data like finance, banking or health insurances etc.
- Such applications require extensive data base testing since any error in the retrieved data can cause the users lot to suffer.
MAJOR ACTIVITIES OF DATABASE TESTING
Now we are going to discuss about the working of the data base testing or what all are the major activities taking place in a data base testing.
- A lot of understanding and knowledge of the software system or application under the testing is required i.e., the tester needs to know all about the type of data base being used by the software system or application.
- All the existing data tables in the application data base are figured out.
- All the possible queries are written for the figured out tables to be executed.
- All the tables are tested individually for the verification and validation of the data contained in them.
- For complex data bases the queries are obtained from the developer and the functionalities are tested.
- The data base of a software system or application is indeed its back bone and needs to be tested thoroughly.
- In a data base testing not only the data base undergoes testing, but also the features and functionality of the software system or application.
- As if this is not enough, all the actions taking place like deletion or addition are also tested.
- The added values or data are checked against the records of the data base i.e., whether or not they are exactly same.
- The deleted is checked for whether or not it has been really deleted from the data base.
- Every action being performed is tested for its efficiency as it will affect the overall well being of the data base.
- These days with the introduction of the business logic, the data bases have become more complex.
- Though the business logic makes the whole data base complex in nature, it cannot be neglected since it plays a very crucial role in the implementation of the applications.
- After the implementation of the business rules or logic, the data base values are again checked for their correctness.
- The coupling of the data bases to the libraries also poses a problem for the data base testing besides the following:
1. Data base schemas
2. Data base tables
3. Verification of the data base after every execution of test cases.
4. Cleaning up of the data base for every new test case execution.
5. Carrying out the whole data base testing manually is absolutely impossible or perhaps a nightmare.
6. Writing short test codes that are easy to understand.
One needs to carry out data base testing very carefully and with understanding since any faltering can disrupt the whole testing process.
Posted by
Sunflower
at
3/14/2012 11:17:00 PM
0
comments
Labels: activities, Addition, Application, Complex, Data, Database, Database Testing, Defects, Delete, Deletion, Errors, Features, Functionality, Queries, Records, Software testing, SQL, Tables, Tester, Tests
|
| Subscribe by Email |
|
Tuesday, March 13, 2012
What are different aspects of Compounded SQL injection attack?
Till now so many types of SQL injection attacks have been identified. But, there is one type of SQL injection type which results in to different kinds of combinations of the other SQL injection attacks. This type of SQL injection attacks are commonly known as the compound SQL injection attacks.
This type of SQL injection attack has been derived from rigorous research and experimenting with the different SQL injection attack vectors putting them in different combinations with the various other web application attacks.
Some of the most commonly employed combinations are:
1. SQL injection + XSS cross site scripting
2. SQL injection + DDos attacks
3. SQL injection + insufficient authentication
4. SQL injection + DNS hijacking
Compounded SQL Injection Attack
- SQL is a language developed for interacting with the data base of the applications and web sites.
- The functions are mainly defined to retrieve the data from the data bases or to update the contents of the existing data bases.
- It uses compound conditions basically that make use of AND or OR.
- A compound statement is used to group all the other statements so as to constitute an executable block.
- SQL variables can be declared in an atomic compound statement that has been dynamically developed.
- A compound statement can be easily embedded in to SQL functions, SQL methods, trigger etc.
- To invoke a dynamic compound statement no privileges are required, although the authorization ID of the compound statement needs to include all the privileges required invoking the other SQL statements that form a part of that particular compound statement.
- Most of the compilers compile the compound statements as one single statement since this technique proves effective for the short scripts that do not require little control flow logic though a great data flow.
- For larger scripts or constructs, it’s better to use the SQL procedures.
- The “discretize” function is quite a simple one and is often used for the classification and modification of the data and gives back a NULL value for the malicious data.
- Later this malicious data is cleansed up by the compound statement.
- Most of the mechanisms can be elaborated using the technique of multi stage cleansing.
- The advantage of the compound statement is that here the FOR loop neither does open up a cursor nor the single row inserts are treated so.
- Here the underlying logic is of a multi table insert that has been selected previously.
- This advantage is reaped by compiling the dynamic statement as a single one.
- In contrast to this dynamic compound statement, there’s another type called Compounded SQL embedded statement.
- These statements can only be embedded in to the applications.
- In contrast to the dynamic statements, these cannot be prepared dynamically.
- These statements do not required any special privileges for invocation.
Posted by
Sunflower
at
3/13/2012 11:30:00 PM
0
comments
Labels: Applications, Attacker, Authentication, Compounded SQL injection attack, Data, Database, Dynamic, Functions, Logical, Methods, Modify, SQL, SQL injection attack, Statements, Web Applications, Websites
|
| Subscribe by Email |
|
Wednesday, February 15, 2012
What are the tips needed by web application against SQL attacks?
SQL injection attacks are one of the top 10 security vulnerabilities for web sites and applications as it has been declared by the open source web security. Being such a great threat, few measures have been designed to curb this SQL injection attack thing.
FACTORS CONTRIBUTING TO SQL INJECTION ATTACKS
SQL injection attacks are so very common these days. It is probably due to two main factors:
- The prevalence of the vulnerabilities related to SQL injection attacks are significant.
- The target of the SQL injection attacks i.e., web site’s or web application’s data base appears very attractive and useful to the attackers since it contains all the critical as well as sensitive data of the site or the application.
SQL INJECTION MEASURES
Here we are going to discuss those SQL injection measures.
- First thing to avoid the SQL injection attacks is to understand how exactly these attacks occur.
- An SQL injection attack occurs whenever a query is created by the dynamic data base of the web site.
- These queries contain nothing but the input entered by the user.
- When you know what actually is making it easy for the attackers to carry out an SQL injection attack on a web site or web application, it seems very easy to avoid the SQL injection attacks.
HOW TO AVOID SQL INJECTION ATTACK
There are 2 ways for avoiding the attacks which have been discussed below:
1. Dynamic queries should not be written. Some alternative for dynamic queries can be used.
2. The input supplied by the end user for malicious SQL statements. Queries containing such statements should be prevented from entering in to the data base as it will affect the code logic used in the query.
The above two ways can be used with any of the available programming languages and also with data bases of any type.
DEFENSE TECHNIQUES TO AVOID SQL ATTACKS
There are some primary defense techniques which you can follow to avoid SQL injection attacks. They have been stated below:
Defense 1:
- Escaping the input supplied by the user.
- Here the query statements are already prepared by the web site or web application developer.
- These queries are very easy to understand and also do not require much efforts like the dynamic queries.
- This method is implemented as follows.
- The developer is first asked to define the code for all the SQL statements.
- The defined code is then passed in to the respective parameter later when required.
- This technique grants the data base the ability to distinguish between the data and the code irrespective of what data the user has entered.
Defense 2:
- The web sites and web applications can make use of pre- designed queries or parametric queries.
- This approach is used when the other two fail.
- But, this is not much strong as the other two approaches.
Defense 3:
- The web sites and web applications can make use of pre- designed procedures.
- They are implemented in a way similar to that of the prepared statements.
In addition to these primary defense techniques, there are some additional defense measures which can be followed as well if you are not satisfied with the security offered by the primary defense techniques:
ADDITIONAL DEFENSE MEASURES
- Provide the least valued privileges.
- The web site or application developer can carry out a white list check for validation of the input queries. This proves to be effective since the non validated parameter which when appended to a query generated by the user, allows the attacker to inject the malicious SQL statements in to the data base of that particular web site or application. This method of injecting SQL statements in to the data base is used quite often by the attackers.
Posted by
Sunflower
at
2/15/2012 03:09:00 PM
0
comments
Labels: Application, Attackers, Commands, Database, Methods, Security, SQL, SQL injection, SQL injection attack, SQL statements, Statements, Techniques, Types, Web Applications, Web site, Websites
|
| Subscribe by Email |
|
Tuesday, February 14, 2012
What are different aspects of SQL injection attacks?
SQL is the most rated vulnerability of today’s software world. SQL injection is emerging as a popular means for harming the security of the websites.
How exactly an SQL injection attack takes affect?
- In an SQL injection attack, some statements written in SQL language are inputted in a web form.
- This is done to obtain a web site that will carry out operations on the data base.
- Such obtained web sites through SQL injections are often badly designed.
- The attacker uses this badly designed web site to get the access of the data base contents.
- The web site can be used to carry out other operations also as desired by the attacker.
- It is a kind of code injection technique and is often employed for exploiting the security vulnerability in the software of the web site.
An injection attack occurs through two common mistakes which are:
1. Incorrect filtering of the user input for escape characters in string literals which are embedded in the SQL statements. Here becomes a scope for the potential manipulation of SQL statements. The manipulation is done by the end user who is using the data base.
2. The unexpected execution of the input entered by the user that has not been strongly typed. This is referred to as incorrect type handling. The constraints are left unchecked.
What can a SQL injection attack do?
- The SQL commands designed by the attacker are injected in to the data base of the web site or application via a web form through any of the two methods.
- These commands are capable of changing the content of the data base or they can even dump to the attacker’s wish.
- SQL injections attacks can even attack SQL databases rather than only attacking the web sites or web applications.
- SQL injection attacks can be prevented by the use of structured query language which is well designed and defined.
- Such attacks are usually aggressive. SQL injection attack is abbreviated to SQLIA.
According to a research, under normal usage an application experiences 71 attempts per hour in contrast to the 800- 1000 attempts per hour under a direct attack.
SQL injection attack has been declared by open web application security project as one of the top 10 vulnerabilities. It can be divided into 5 sub categories as listed below:
- Classic SQL injection attack
- Interactive SQL injection attack
- Inference SQL injection attack
- Compounded SQL injection attack and
- DBMS specific SQL injection attack
Types of SQL Injection Attack
- Classic SQL injection attack is not feared today since it has become out- dated.
- But, still many web sites and web applications are precautious against it.
- Inference SQL injection attack continues to be a great threat.
- Attackers mostly prefer this method since it is very flexible in deployment and dynamic in nature.
- Compounded SQL injection attack is a new kind of SQLIA.
- It is resultant of combination of SQL injection and web applications such as:
a) DOS attacks + SQL injection
b) DNS hijacking + SQL injection
c) Improper authentication + SQL injection
d) XSS + SQL injection
- A representation of compounded SQL injection attack is provided by the storm worm.
- The DBMS specific SQL injection attack is often considered as supportive.
- There is another kind of SQL injection called blind SQL injection attack which is used to defend a web site or application on verge of being attacked.
- The results of the SQL injection attack are made invisible to the attacker.
- This injection attack is time intensive.
Today several automated tools have also been developed for automation of these attacks. But, that also requires the location of the target information.
Posted by
Sunflower
at
2/14/2012 10:23:00 PM
0
comments
Labels: Application, Attackers, Commands, Data, Database, Security, SQL, SQL injection, SQL injection attack, SQL statements, Statements, Techniques, Types, Web form, Web site, Websites
|
| Subscribe by Email |
|
Monday, September 14, 2009
Object Query Language (OQL)
Object Query Language (OQL) is a query language standard for object-oriented databases modelled after SQL. OQL was developed by the Object Data Management Group (ODMG). Because of its overall complexity no vendor has ever fully implemented the complete OQL. OQL has influenced the design of some of the newer query languages like JDOQL and EJB QL, but they can't be considered as different flavours of OQL, and should be treated separately.
The key Differences Between OQL and SQL :
- OQL supports object referencing within tables. Objects can be nested within objects.
- Not all SQL keywords are supported within OQL. Keywords that are not relevant to Netcool/Precision IP have been removed from the syntax.
- OQL can perform mathematical computations within OQL statements.
General Rules of OQL :
- All complete statements must be terminated by a semi-colon.
- A list of entries in OQL is usually separated by commas but not terminated by a comma.
- Strings of text are enclosed by matching quotation marks.
OQL was designed to be object-oriented. Queries are specified using objects and their attributes (data-members). Similarly, queries return sets of objects. The complex relationships in an object model can be easily navigated, using the same class-member paradigm, used by object-oriented programming languages. This can often lead to increased performance over SQL, where resource-consuming join processes are necessary to capture relationships. Another big advantage is, that table names and column names are not necessary in the query strings, because queries are formulated using class names and attribute names and no mapping knowledge is necessary in the application.
OQL may be used as an embedded language or as a standalone query language. Both of these are supported by OpenAccess. As an embedded language, OQL queries can be used directly in your application programs. Programs can embed OQL queries, and receive results in the native data types of the programming language being used. OQL statements are simply text strings, which means that the standard string representation of your programming language is used to express the query.
Simple query :
The following example illustrates how one might retrieve the CPU-speed of all PCs with more than 64MB of RAM from a fictional PC database:
SELECT pc.cpuspeed
FROM PCs pc
WHERE pc.ram > 64
Query with grouping and aggregation :
The following example illustrates how one might retrieve the average amount of RAM on a PC, grouped by manufacturer:
SELECT manufacturer, AVG(SELECT part.pc.ram FROM partition part)
FROM PCs pc
GROUP BY manufacturer: pc.manufacturer
Note the use of the keyword partition, as opposed to aggregation in traditional SQL.
Posted by
Sunflower
at
9/14/2009 12:05:00 AM
0
comments
Labels: Databases, Object Oriented Databases, Object Query Language, OQL, SQL
|
| Subscribe by Email |
|
Thursday, September 10, 2009
Overview of Database Security
Database security is the set of systems, processes, and procedures that protect a database from unintended activity. Unintended activity can be categorized as authenticated misuse, malicious attacks or inadvertent mistakes made by authorized individuals or processes. Database security is also a specialty within the broader discipline of computer security. The database is the entity where all the data is stored, so protecting it from unauthorized access and change is extremely critical.
Traditionally databases have been protected from external connections by firewalls or routers on the network perimeter with the database environment existing on the internal network opposed to being located within a demilitarized zone.
Database security can begin with the process of creation and publishing of appropriate security standards for the database environment. The standards may include specific controls for the various relevant database platforms; a set of best practices that cross over the platforms; and linkages of the standards to higher level polices and governmental regulations.
One of the easiest steps to take is regarding passwords. Default or weak passwords are still often used by enterprises to protect an online asset as important as a database, but it's a problem that's easy to fix. The remedy is enforcing a strong password policy; that is, passwords must be changed regularly and be at least 10 digits long and contain both alphanumeric characters and symbols.
SQL Injection attacks pose tremendous risks to web applications that depend upon a database back-end to generate dynamic content. In this type of attack, hackers manipulate a web application in an attempt to inject their own SQL commands into those issued by the database. To prevent this type of attack, it is essential to ensure that all user-supplied data is validated before letting it anywhere near your scripts, data access routines and SQL queries, and preferably use parametrized queries. Another reason to validate and clean data received from users is to prevent cross-site scripting (XSS) attacks, which can be used to compromise a database connected to a Web server.
A database security program should include the regular review of permissions granted to individually owned accounts and accounts used by automated processes. The accounts used by automated processes should have appropriate controls around password storage such as sufficient encryption and access controls to reduce the risk of compromise.
The software used for the database, for the middle layers and for all other layers should be updated regularly with patches, updates and fixes. Falling behind in this task is pretty painful if you end up exposing holes in the software to attackers (and attackers know that a number of companies do not upgrade their systems on an immediate basis).
Posted by
Sunflower
at
9/10/2009 07:52:00 PM
0
comments
Labels: Data, Database security, Databases, SQL, Structured Query language
|
| Subscribe by Email |
|
Tuesday, September 8, 2009
Structured Query Language (SQL)
The structured query language (SQL) is the language used to query and manipulate information within a SQL Server database. SQL is actually an ISO and ANSI standardised language. However, a lot of RDBMS software use their own proprietary extensions within their own Transact-SQL (T-SQL) variant of SQL.
The basic building block of the structured query language is the SQL statement. Using statements, information in a database can be manipulated and queried.
* CREATE - a data structure.
* SELECT - read one or more rows from a table.
* INSERT - one or more rows into a table.
* DELETE - one or more rows from a table.
* UPDATE - change the column values in a row.
* DROP - a data structure.
Language Structure :
SQL is a keyword based language. Each statement begins with a unique keyword. SQL statements consist of clauses which begin with a keyword. SQL syntax is not case sensitive.
The other lexical elements of SQL statements are:
* names -- names of database elements: tables, columns, views, users, schemas; names must begin with a letter (a - z) and may contain digits (0 - 9) and underscore (_)
* literals -- quoted strings, numeric values, date time values.
* delimiters -- + - , ( ) = < > <= >= <> . * / || ? ;
Basic database objects (tables, views) can optionally be qualified by schema name. A dot -- ".", separates qualifiers: schema-name . table-name
Column names can be qualified by table name with optional schema qualification.
Syntax of Simple SELECT : SELECT column FROM tablename
- Using "Where"
SELECT EMPLOYEEIDNO
FROM EMPLOYEESTATISTICSTABLE
WHERE SALARY >= 50000;
- Compound Conditions
SELECT EMPLOYEEIDNO
FROM EMPLOYEESTATISTICSTABLE
WHERE SALARY < 40000 OR BENEFITS < 10000;
- Using "IN"
SELECT EMPLOYEEIDNO
FROM EMPLOYEESTATISTICSTABLE
WHERE POSITION IN ('Manager', 'Staff');
- Using "Between"
SELECT EMPLOYEEIDNO
FROM EMPLOYEESTATISTICSTABLE
WHERE SALARY BETWEEN 30000 AND 50000;
- Using "LIKE"
SELECT EMPLOYEEIDNO
FROM EMPLOYEEADDRESSTABLE
WHERE LASTNAME LIKE 'L%';
Posted by
Sunflower
at
9/08/2009 08:43:00 PM
0
comments
Labels: Databases, SQL, SQL statements, Structured Query language
|
| Subscribe by Email |
|