Coder Social home page Coder Social logo

detroitenglish / pw-pwnage-cfworker Goto Github PK

View Code? Open in Web Editor NEW
150.0 150.0 13.0 842 KB

Deploy a Cloudflare Worker to sanely score users' new passwords with zxcvbn AND check for matches against haveibeenpwned's 10+ billion breached accounts

Home Page: https://pw-pwnage-protection.glitch.me/

License: MIT License

JavaScript 83.58% Shell 16.42%
cloudflare cloudflare-workers haveibeenpwned passwords security serverless zxcvbn

pw-pwnage-cfworker's People

Contributors

detroitenglish avatar smidgedy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pw-pwnage-cfworker's Issues

Delay and debounce API calls for security?

I notice that in the demo you are checking the API with every keystroke above 5 characters. I think the API should only be called after the minimum number of characters is reached, and only after the typing is finished (so debounce to .3s or so).

I'd suggest 8 for the minimum number of characters to check, as that's the absolute low end of password length among all the security standards and recommendations I've ever read. It seems that there just isn't any such thing as a secure 6-character password.

As for the debounce: AFAIK k-anon protects against disclosing passwords by transmitting only a portion of the hash; but if you transmit that portion on each keystroke, wouldn't that be pretty easy for a bad actor (e.g. MITM, Evil Troy Hunt, etc.) to reconstruct? Even starting with five characters, that's still only tens of billions of possibilities for the most common characters, which means it would be possible for an attacker to start out with a sha1 hashes for all common combos of 5 characters, and then add a character and compare each subsequent hash. I'm not sure about this, but that is why I'm thinking that debouncing is desirable / necessary.

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.