Should AnonRateThrottle work on a per-subnet basis for IPv6? #7845
Replies: 1 comment 1 reply
-
I don't know enough about this to form a judgement, as too if we ought to be matching on a subnet basis for IPv6 or not, or what the implications are. If a users IPv6 address stays constant unless there's deliberate intervention (Your "change IPv6 in subnet" step) then we might be perfectly happy with things as they are. I wouldn't class this as security, but then I think we need to do a better job of documenting application-level throttling as absolutely definitively not being a security feature. It's a useful business feature. (Ensure that the majority of your customers abide within particular limits.) Is there any other prior art for us to base our decisions here against? |
Beta Was this translation helpful? Give feedback.
-
Checklist
master
branch of Django REST framework.Steps to reproduce
Expected behavior
Block IPv6 subnets instead of IPv6 address.
Actual behavior
With IPv6 also the ip only is used. As customer you get from your internet provider a complete subnet /64.
This means you can create 2^64 IPv6 addresses and use them.
So with ipv6 rate limiting does not work as suggested.
Impact
Security: AnonRateThrottle is used to protect login or authentication API.
Beta Was this translation helpful? Give feedback.
All reactions