Commit graph

9 commits

Author SHA1 Message Date
Gonzalo
26476670f4
docs: update repo references after move to rack org 2020-12-25 23:51:59 -03:00
Eliot Sykes
03926e0b75
Mitigate login throttle bypasses in docs
This commit mitigates rate limit bypasses in the configuration
docs by normalizing the email throttle key. (The normalization process
used is the same as used by the Clearance gem.)

---

Often an authentication process normalizes email addresses and usernames
before look up, say by downcasing and removing any whitespace.

Throttles that do not perform the same normalization are vulnerable
to rate limit bypasses.

For example, an attacker can bypass a vulnerable throttle by using
unlimited case and whitespace variants for the same email address:

- Variant 1: `victim@example.org`
- Variant 2: `victim@example. org` (one whitespace)
- Variant 3: `victim@example.  org` (two whitespaces)
- Variant 4: `ViCtIm@eXaMpLe.org`
- etc, etc.

All of these variants resolve to the same email address, but allow
an attacker to bypass a vulnerable throttle. To mitigate, the email
throttle key should be normalized using the same logic the
authentication process uses for normalizing emails.
2020-07-28 11:33:52 +01:00
Nikolay Rys
f79759717a Feature proposal: Request instead of Env in callbacks (#419)
feat: allow easy access to the request object in the callbacks
2019-12-17 14:44:08 -03:00
Jeremy Pinnix
f0c6cb1385
Single spelling correction 2019-09-11 14:55:12 -05:00
Joe Masilotti
8ceda70f14
black/white -> block/safe 2019-07-27 09:31:22 +02:00
Gonzalo Rodriguez
306d157df3
docs: fix Basic Auth example typo 2019-03-28 12:08:48 -03:00
Marco Colli
1fa555f37c
Update advanced_configuration.md 2019-01-26 15:23:40 +01:00
Leo Arnold
b0da52a1bd Move Wiki examples into version control. Closes #324 2018-10-28 19:21:43 +01:00
Gonzalo Rodriguez
2d6ad830ac
docs: provide some advice for users willing to contribute to the project 2018-03-30 15:29:16 -03:00