Some common terms in web application security testing:
Password Cracking: In order to log in to the private areas of the application, one can either guess a username/ password or use some password cracker tool for the same. Lists of common usernames and passwords are available along with open source password crackers. Enforce a complex password (e.g. with alphabets, number and special characters, with at least a required number of characters)
URL manipulation: Check all ranges of input variables. Dont accept values which are not needed by the application. Avoid forming dynamic variables.
SQL Injection: This is the process of inserting SQL statements through the web application user interface into some query that is then executed by the server. Escape the quotes. Use mysql_escape_string or equivalent.
Cross Site Scripting: When a user inserts HTML/ client-side script in the user interface of a web application and this insertion is visible to other users, it is called XSS. All HTML tags should be scrubbed from the variables. Dont use eval directly on any user input.
Spoofing: The creation of hoax look-alike websites or emails is called spoofing. Use identity images like the ones Yahoo! and bank websites are using so that user is confident he is logging on to the correct system.
Crumbs: To ensure user has come from a previous page in the flow and not directly.
a) echo $_SERVER[‘HTTP_USER_AGENT’];
b) get_browser()— Tells what the user’s browser is capable of
Browser detection on server side is as such a tricky problem as per this article.
1) How can I create an array of numbers easily?
If you want to create an array of consecutive numbers in PHP, then you can do it the long hand way…
$myarray = array(1,2,3,4,5,6,7);
Or you can do it the easy way, using the range function, which you simply pass the first and last value in the consecutive range. So this is equivalent to the above code:
$myarray = range(1,7);
… and when you want an array containing the numbers 1 to a 1,000 – then you’ll be glad you learned about this function!
2) How do you remove duplicate values from an array?
Duplicate values are easily removed using the array_unique function:
$values = array("banana","apple","pear","banana");
$values = array_unique($values);
 => banana
 => apple
 => pear
This blog will contain the tech things of interest to me and Dimple.
The software industry is growing rapidly conceptwise, and its becoming an information overload. This is an attempt to organize some of that information for our own personal sake.
Some of the things noted here may seem downright simple and silly.Â But with the amount of things that change everyday, remembering even the simple things becomes a hard task.