data-govt-nz / ckanext-security

A CKAN extension to hold various security improvements for CKAN
GNU Affero General Public License v3.0
25 stars 31 forks source link

Update/protect against 2fa brute force #38

Closed markstuart closed 3 years ago

markstuart commented 3 years ago

This work rolls the 2fa code attempts into the total count of failed attempts for brute force protection. Previously the ajax call to test the code could be made any number of times, potentially allowing a brute force attack on the 2fa code if an attacker had gained the correct username/password for an account.