Comments (6)
This is related to issue #6 dealing with distributed attacks. Not sure what the best approach would be for resolving this behavior while still handling the distributed attacks.
from django-axes.
Any ideas? cc @aclark4life
from django-axes.
@camilonova I get all the emails anyway π
from django-axes.
Should we leave this open until a solution appears?
from django-axes.
@Eggplant77 Can you send a pull request?
from django-axes.
I think there is a problem with the changes added in Issue #6
That patch prevents distributed attacks this way: there is a failed attempts counter for every IP, and there is a failures counter for every user. To avoid locking out legitimate users every time a valid login is completed, it stores (ip, user, true) in the DB.
In [108]: [ "%s %s %s %s" % (at.attempt_time, at.ip_address, at.username, at.failures) for at in models.AccessAttempt.objects.all() ]
Out[108]:
[u'2014-05-23 16:06:03.964579 10.10.10.3 usuario 2',
u'2014-05-23 16:00:43.780034 None usuario 3', <--- there is no way I can now login from 192.168.0.50
u'2014-05-23 16:00:43.608362 192.168.0.104 None 3']
The problem is this: if I am a legitimate user connecting from an IP i've never used before I get locket out. In other words: after a lockout of my user in ANY ip, I can then only login from known IP addresses. That creates a DOS in many internet apps.
from django-axes.
Related Issues (20)
- AXES_LOCKOUT_PARAMETERS not working as expected HOT 6
- Username is not present in admin detail pages HOT 4
- TransactionManagementError when writing database is not "default" HOT 2
- axes_accessattemp and axes_accessfailurelog are not recording HOT 3
- Issue templates doesn't work
- Duplicate names for tests in `AxesCoolOffTestCase`
- FEATURE REQUEST: Logging without sensitive data by default (privacy by design) HOT 3
- BUG: IP address behind proxy is not resolved correctly HOT 3
- Check and/or fix RTD PDF build HOT 3
- BUG: AXES_LOCKOUT_PARAMETERS is not working as expected based on parameter. HOT 1
- BUG: Middleware Support for Async Required to Adhere to Djangoβs Asynchronous Standards HOT 2
- Deprecated: Django-ipware is no longer maintained; move to python-ipware HOT 7
- AXES_LOCKOUT_PARAMETERS = ["username"] with email as username doesn't work HOT 4
- BUG: AXES_PASSWORD_FORM_FIELD fails to redact password field from AccessAttempt.post_data if a custom login form prefix is used. HOT 1
- BUG: Race condition using redis with cooloff enabled HOT 1
- BUG: Setting `AXES_USERNAME_FORM_FIELD` to a custom value fails to fill the username field for `AccessAttempt` HOT 3
- Block specific IP's HOT 1
- BUG: Concurrent session logout are miss-tracked HOT 2
- migrations not reversible HOT 6
- Tests: add test cases for migrations HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-axes.