Giter VIP home page Giter VIP logo

csrf-token-php-manual's Introduction

Manual-csrf_token-php-

In this project I have shown how the SIMPLE idea behind the protection of CROSS-SITE-REQUEST-FORGERY ๐Ÿ’€ attacks is implement using CSRF-TOKEN

How to start โ“

Simple ๐Ÿค˜ Download the zip or clone this repository then run the index.php using your localhost server. The Database creation with the Schema of the table is in the dbconfig.php Do read the comment in this files

What I did ๐Ÿ˜Ž

Algorithm Used For encryption ๐Ÿ’ช

-> sha256 for Key and iv encryption -> openssl for session encryption - method used : AES-256-CBC -> BCRYPT for csrf_token encryption as this is one way encryption algorithm and we just need to verify the token not decrypt it

CSRF protection methology ๐ŸŽ“

-> We get the token from csrf_token.php which is giving me the token plus putting the same token in cookie . -> We get the token pnly if we visit the index.php that means a attacker has to visit this -> if not then the token wont be valid -> Considering a situation if somehow the attacker get a valid token ,then he/she will be using that int the request header in a remote form but this wont be validated as your cookie will be having different token from this -> You can surely add or contribute in this project to validate the cookie token and header token more precisely ๐Ÿ˜ƒ

Contributers Are Always Welcome

csrf-token-php-manual's People

Contributors

anikethsaha 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.