Giter VIP home page Giter VIP logo

veerless's Introduction

Veerless

Bounty

A proof of concept for bi-directional two factor authentication.

The intent of this design is to mitigate the real time phishing of two-factor authentication tokens, but more generally provide assurance that you are talking to the server you spoke to on registration.

It's called Veerless, as it doesn't let you veer off course from the genuine server.

How to try it out

  1. Download the code from https://github.com/joekir/veerless follow the setup steps below.
  2. Review the code in the chrome-extension, and if you agree its non-harmful then install that. (help on how to do that)
  3. Navigate to https://veerless.josephkirwin.com/register. This endpoint will give you the t0 and server_secret to add to your chrome extension, via the "options" page in the extension's settings.
  4. Now you can login at https://veerless.josephkirwin.com/login with the user that you chose. The extension will be looking for:
  • X-Veerless-Init header from the server to begin the login transaction
  • X-Veerless-Response header from the server containing its TOTP variant, that it will verify.

If it can successfully verify the header, you shouldn't see any difference to a common 2FA login experience, except that you client TOTP will be provided in a notification. If it cannot successfully verify the header, it will cancel the request, and notify you of this.

More Fiddling

You could then try and setup your own local site, attempting to spoof the live demo ; )

  • Using the code you downloaded in step 1. With the setup steps below
  • Create a line in /etc/hosts like this (which kindof simulates a dns hijack for you)
    127.0.0.1 veerless.josephkirwin.com veerless
  • Now try authenticate in the same way as step 4. Notice the extension should now detect that this is a spoofed site.

Site Layout

  • / - this README page.
  • /login - used to complete the login flow with veerless chrome-extension assisting.
  • /register - retrieves the initial time seed (t0) for TOTP and the server secret for a given user.

Design details

Extra

This is actually an alternate design to Veerless that doesn't require the client to provide confidentiality of the server secret, only integrity.

Setup

Update the config.js file's hostname variable to your host.

npm update
npm start

The database is self provisioning.

veerless's People

Contributors

dependabot[bot] avatar joekir avatar snyk-bot avatar snyk-support avatar

Stargazers

 avatar

Watchers

 avatar

veerless's Issues

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.