Commit 2b3ea70
committed
Fix wrap-forwarded-remote addr security issue
Middleware function incorrectly used the first rather than last value
present in the X-Forwarded-For header. This could result in attackers
being able to spoof the :remote-addr key if this middleware was used.
Reported by Daniel Compton <desk@danielcompton.net>.1 parent d34af9f commit 2b3ea70
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
0 commit comments