Secure Your Web Application – ELENA Project http://www.elena-project.org Experiential Learning of Technology Tue, 29 Jan 2019 13:44:40 +0000 en-US hourly 1 https://wordpress.org/?v=4.8.9 http://www.elena-project.org/wp-content/uploads/2017/06/unlock.png Secure Your Web Application – ELENA Project http://www.elena-project.org 32 32 Secure Your Web Application Like Your Own House http://www.elena-project.org/secure-your-web-application-like-your-own-house/ http://www.elena-project.org/secure-your-web-application-like-your-own-house/#respond Sat, 18 Mar 2017 07:42:01 +0000 http://elena-project.org/?p=27

A simple way to look at web application security is by picturing your residence. It’s a front door, a rear door, windows, quite a few rooms, a roof, boundary fences and distinct access routes. Only the terminology differs.

The Front Door.
The front door of any web application is the login page and, unsurprisingly, it’s the principal point of attack. A login page will consist of edit boxes to form a user name and password along with a button to ship these to your server to authenticate your access to the remainder of the web application. Some login pages may offer a captcha to be certain you’re a human being and not a mock-up of the exact same form on another server. The mock-up form will cycle via variants of consumer names and passwords until it increases access to the program. This is referred to as cross-site forgery and is comparable to your burglar forging the secrets into your residence.

Captchas are jumbled pictures of scrambled letters and figures that make it impossible for an automatic script to read. Regrettably, as the scripts become adept in reading these pictures, the captcha images will need to become more complicated and more difficult for people to read. This causes frustration for the end-user as they’ve repeated failed attempts at gaining access to their accounts since the captcha was unreadable. The answer for this is to replace the captcha using a secure token. The secure token is generated my joining the user name, password and any other user info available with a distinctively generated key. This concatenation is then encrypted and stored as a hidden field in the form, thus rendering it impossible for any mock-up form to generate a successful login effort.

The Windows and Back Door.
What are the windows of a web program? I don’t mean that the operating system on the server. I’m speaking about possible areas of each page that may be broken to make a forced entry. These regions are edit boxes and text areas which allow a user to type information. An attacker will use edit boxes and text areas to input commands that the database understands. If the software isn’t written securely then it’s extremely simple to disrupt the database when it’s saving the information, so it will execute the commands provided by the attacker. Normal attacks could lead to the database being destroyed, data being stolen or consumer information being compromised. This sort of attack is called SQL injection.

Boundary Fences.
The border fences of a web page are any links, editable locations and the most important URL address. The URL of this page itself and hyperlinks embedded in the page can be copied and modified from the other website so that controls can be executed from the server. Javascript code can be inserted to editable regions to drive data to be submitted to a rogue website or to acquire control of the user’s browser. Database commands may also be inserted into the primary URL address. These attacks are referred to as cross-site scripting (XSS) strikes since they are scripts that direct the consumer to an attacker’s own internet website. XSS attacks can be used to steal a user’s botanical session identifier and use it in order to boost the degree of access of some other account they’ve already created.

To stop cross-site scripting, the computer software must scan all of editable places for code and also incorporate a secure token in each and every URL and link. Just as gaps and holes in fences should be shut. All secure pages should check for the occurrence of an authenticated user.

]]>
http://www.elena-project.org/secure-your-web-application-like-your-own-house/feed/ 0