Code Monkey home page Code Monkey logo

csrf_synchronizertokenpattern's Introduction

CSRF_SynchronizerTokenPattern

Cross-site Request Forgery protection in web application( Used SynchronizerTokenPattern )

In this project used Synchronizer Token Pattern to avoid Cross-site Request Forgery protection in a web application. The application consists of a simple login page with hard-coded credentials. Upon login generates CSRF token and store in server side. The Website has an endpoint which accepts HTTPS post requests. The endpoint receives the session cookie and based on the session identifier, return the CSRF token value. The HTML is submitted to the action, on the server side, extract the received CSRF token value and check if it is the correct token issued for the particular session. If the received CSRF token is valid, show a success message. If not show an error message.

Download and Installation

Clone the project to the local Machine
git clone https://github.com/AnuradhaSD/CSRF_SynchronizerTokenPattern.git

Run application

  • Application Implemented Using Eclipse IDE
  • Appache TomCat Should be Configured(Used Tomcat V7.0)
Login Form URL
localhost:8080/CSRF/login.jsp

Credentials
UserName :asd
Password :123

Upon Sceessful login directs to Form

Form URL
localhost:8080/CSRF/form.jsp

csrf_synchronizertokenpattern's People

Contributors

anuradhasd avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.