Cookie Based Web Application


What is a cookie...










 This web application based on cookies. It contain session maintain and security cookie. Cookies are based on two cookie flags

1. Http flags 
2. Security flage 

These two flags are doing different manner. Both both flags are used to security manner. 


Http flags

If the HttpOnly flag (optional) is included in the HTTP response header, the cookie cannot be accessed through client side script (again if the browser supports this flag). As a result, even if a cross-site scripting (XSS) flaw exists, and a user accidentally accesses a link that exploits this flaw, the browser (primarily Internet Explorer) will not reveal the cookie to a third party. 


Secure flags

The secure flag is an option that can be set by the application server when sending a new cookie to the user within an HTTP Response. The purpose of the secure flag is to prevent cookies from being observed by unauthorized parties due to the transmission of a the cookie in clear text.
To accomplish this goal, browsers which support the secure flag will only send cookies with the secure flag when the request is going to a HTTPS page. Said in another way, the browser will not send a cookie with the secure flag set over an unencrypted HTTP request.
By setting the secure flag, the browser will prevent the transmission of a cookie over an unencrypted channel.



This use 4 login methods 

1. No - This does not have secure and httponly flags so this cookie haven't any security things.

 












2. Httponly - This has only HttpOnly option so this can't run  Java script.








3.Secure -  This contain secure flags this not show anything.










4. Both -  this option have secure flag and and httponly flags so this connection should be secure also we can not run java script on this cookies.








Click here to Source code

Comments

Popular posts from this blog

OpenID Connect Introduction

How to hack windows 2000 using nessus.....

Crypt-analysis