mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-04 12:42:43 +01:00
8a4bf38655
Summary: See <https://hackerone.com/reports/435648>. We currently use 80-bit TOTP keys. The RFC suggests 128 as a minimum and recommends 160. The math suggests that doing the hashing for an 80-bit key is hard (slightly beyond the reach of a highly motivated state actor, today) but there's no reason not to use 160 bits instead to put this completely out of reach. See some additional discussion on the HackerOne report about enormous key sizes, number of required observations, etc. Test Plan: Added a new 160-bit TOTP factor to Google Authenticator without issue. Reviewers: amckinley Reviewed By: amckinley Differential Revision: https://secure.phabricator.com/D19792 |
||
---|---|---|
.. | ||
__tests__ | ||
PhabricatorAuthFactor.php | ||
PhabricatorAuthTOTPKeyTemporaryTokenType.php | ||
PhabricatorTOTPAuthFactor.php |