 Cookie is small information stored in text file on user’s hard drive by web server.  This information is later used by web browser to retrieve information.

Slides:



Advertisements
Similar presentations
CookiesPHPMay-2007 : [‹#›] Maintaining State in PHP Part I - Cookies.
Advertisements

Cookies, Sessions. Server Side Includes You can insert the content of one file into another file before the server executes it, with the require() function.
JavaScript FaaDoOEngineers.com FaaDoOEngineers.com.
Copyright © The OWASP Foundation Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation.
1 Configuring Internet- related services (April 22, 2015) © Abdou Illia, Spring 2015.
By Brian Vees.  SQL Injection  Username Enumeration  Cross Site Scripting (XSS)  Remote Code Execution  String Formatting Vulnerabilities.
Chapter 10 Managing State Information Using Sessions.
Multiple Tiers in Action
ASP.NET 2.0 Chapter 6 Securing the ASP.NET Application.
Module 6 Windows 2000 Professional 6.1 Installation 6.2 Administration/User Interface 6.3 User Accounts 6.4 Managing the File System 6.5 Services.
1 The World Wide Web. 2  Web Fundamentals  Pages are defined by the Hypertext Markup Language (HTML) and contain text, graphics, audio, video and software.
Lecture 16 Page 1 CS 236 Online Cross-Site Scripting XSS Many sites allow users to upload information –Blogs, photo sharing, Facebook, etc. –Which gets.
Designing Security In Web Applications Andrew Tomkowiak 10/8/2013 UW-Platteville Software Engineering Department
 A cookie is a piece of text that a Web server can store on a user's hard disk.  Cookie data is simply name-value pairs stored on your hard disk by.
Leading at Every Turn. 1)Make sure you have your Trusted Sites configured properly in Internet Explorer 2)Store your credentials on your PC so you.
Preparation and processing of in-session documents.
WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012.
INTRODUCTION TO WEB DATABASE PROGRAMMING
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
Data Security.
Session 11: Security with ASP.NET
Open Source Server Side Scripting ECA 236 Open Source Server Side Scripting Cookies & Sessions.
CHAPTER 12 COOKIES AND SESSIONS. INTRO HTTP is a stateless technology Each page rendered by a browser is unrelated to other pages – even if they are from.
Prevent Cross-Site Scripting (XSS) attack
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Describe several.
WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012.
CIM6400 CTNW (04/05) 1 CIM6400 CTNW Lesson 6 – More on Windows 2000.
Copyright 2000 eMation SECURITY - Controlling Data Access with
WEB-BASE APPLICATION TESTING Group leader: D1:Phạm Bá Thuần D2:Liễu Quang Tín D3: D4:Hoàng Quốc Minh Trung D5:Phạm Danh
CSE 154 LECTURE 12: COOKIES. Including files: include include("filename"); PHP include("header.html"); include("shared-code.php"); PHP inserts the entire.
Troubleshooting Windows Vista Security Chapter 4.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
INTRODUCTION TO JAVASCRIPT AND DOM Internet Engineering Spring 2012.
Week seven CIT 354 Internet II. 2 Objectives Database_Driven User Authentication Using Cookies Session Basics Summary Homework and Project 2.
Lecture 8 – Cookies & Sessions SFDV3011 – Advanced Web Development 1.
Top Five Web Application Vulnerabilities Vebjørn Moen Selmersenteret/NoWires.org Norsk Kryptoseminar Trondheim
10/20/2015 ©2006 Scott Miller, University of Victoria 1 User Authentication Content Generation The Use of Cookies Content Pooling Rev 1.5.
Training Guide for Inzalo SOP Users. This guide has been prepared to demonstrate the use of the Inzalo Intranet based SOP applications. The scope of this.
Cookies Web Browser and Server use HTTP protocol to communicate and HTTP is a stateless protocol. But for a commercial website it is required to maintain.
COOKIES and SESSIONS. COOKIES A cookie is often used to identify a user. A cookie is a small file that the server embeds on the user's computer. Each.
Web Database Programming Week 7 Session Management & Authentication.
Cookies and Sessions IDIA 618 Fall 2014 Bridget M. Blodgett.
GOAL User Interactive Web Interface Update Pages by Club Officers Two Level of Authentication.
The Problem of State. We will look at… Sometimes web development is just plain weird! Internet / World Wide Web Aspects of their operation The role of.
CP476 Internet Computing CGI1 Cookie –Cookie is a mechanism for a web server recall info of accessing of a client browser –A cookie is an object sent by.
ECMM6018 Enterprise Networking for Electronic Commerce Tutorial 7
HTML 5 Tutorial Chapter 6 Web Storage. Storing Data on The Client HTML5 offers two new objects for storing data on the client: localStorage - stores data.
Web Security Lesson Summary ●Overview of Web and security vulnerabilities ●Cross Site Scripting ●Cross Site Request Forgery ●SQL Injection.
Web Server.
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
PHP Form Processing * referenced from
Unit-6 Handling Sessions and Cookies. Concept of Session Session values are store in server side not in user’s machine. A session is available as long.
Brief Look InTo JavaScript Dr. Thomas Hicks Computer Science Department Trinity University.
1 Chapter 1 INTRODUCTION TO WEB. 2 Objectives In this chapter, you will: Become familiar with the architecture of the World Wide Web Learn about communication.
Tonga Institute of Higher Education IT 141: Information Systems
World Wide Web policy.
Chapter 19 PHP Part III Credits: Parts of the slides are based on slides created by textbook authors, P.J. Deitel and H. M. Deitel by Prentice Hall ©
Networks Problem Set 1 Due Oct 3 Bonus Date Oct 2
Web Development & Design Foundations with HTML5 7th Edition
Database Driven Websites
What is Cookie? Cookie is small information stored in text file on user’s hard drive by web server. This information is later used by web browser to retrieve.
Tonga Institute of Higher Education IT 141: Information Systems
Dynamic Web Pages Jin Wu INF 385E Information Architecture
JavaScript.
HTML5 and Local Storage.
Tonga Institute of Higher Education IT 141: Information Systems
Tutorial 10: Programming with javascript
Hypertext Preprocessor
Introduction to JavaScript
Brief Look InTo JavaScript
Presentation transcript:

 Cookie is small information stored in text file on user’s hard drive by web server.  This information is later used by web browser to retrieve information from that machine.  Generally cookie contains personalized user data or information that is used to communicate between different web pages.

 To make sure that the cookies do not store confidential information.  To check the number of cookies used  Make sure that the application maintains its efficiency when switched off or Accept cookies

 To check application response to the damaged cookies  Make sure that cookies are stored and removed it to the pages on which it is expected and necessary  Testing that cookies are working correctly in all browsers that will be used by application

 To make sure that the application adequately responds to delete cookies manually  To verify that the access to different parts of the application can not be done to bypass the cookie used for authentication or authorization

A. Disabling Cookies  This is probably the easiest area of cookie testing  Disable all cookies and attempt to use the site’s major featuresand functions  With cookies disabled,our testing job is somewhat reduced

B. Selective Rejecting Cookie  Start by deleting all cookies from our PC  Analyze site cookie usage in advance and draw up a test plan  Detailing what cookies to reject/accept for each function

C.Corrupting Cookies  Altering the data in the persistent cookies  Allow the cookie to be modified  Selectively deleting cookies

D.Cookies Encryption  By using encryption of thecookiedata  Sensitive information like usernames and passwords should been crypted before it is sent to our computer  A case can certainly be made that certain types of sensitive data – credit card numbers

 Check if the application is writing cookies properly or not.  Test to make sure that no personal or sensitive data is stored in the cookie.If it is there in cookies,it should be in encrypted format.  If the application undertest is a public website,there should not be overuse of cookies

 Close all browsers,delete all previously written cookies and disable the cookies from our browser settings  Set browser options to prompt whenever cookie is being stored/saved in your system  Close all browsers windows and manually delete all cookies

 Cookies shouldn't be put in the same category as the viruses,spam,or spyware  They are the tools to help us and manage our time more efficiently on the web  Testing should be done properly to check that website is working with different cookie setting

 The time-out period assigned to the Session object for the application.  If the user does not refresh or request a page within the time-out period, the session ends.

 1 – Login into specific web application.  2 – Sleep that script for (some time) > timing of one User session.  3 – Then perform some action on the page.  4 – Observe the response of that action.  5 – Application should show alert. If it is not then probably session is not ending properly.

 JavaScript is an interpreted language.  A lightweight programming language.  Client side programming language.  Directly embedded into HTML page.

 Web page doesn’t operate or work abnormally.  Tested websites: ◦ Gmail ◦ Youtube ◦ Vnexpress ◦ Facebook ◦ Mediafire

 Turn off before loading:  Standard HTML:

 Turn off before loading:

 Before turning off javascript:

 After turning off javascript:

 Vnexpress: unable to load dynamic images.  Facebook: unable to use like and comment functions.  Mediafire: ◦ Loading before turning off : ◦ Turning off before loading : unable to load the web.