Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User Sessions are bound to IP #113

Open
marvinside opened this issue Feb 24, 2017 · 6 comments
Open

User Sessions are bound to IP #113

marvinside opened this issue Feb 24, 2017 · 6 comments

Comments

@marvinside
Copy link
Collaborator

File: controllers/basectrl.go
Line: 28 - SESSION_IP = "ip"

It is not a good idea to bind sessions to an IP.
If the user is on a mobile network, it is likely that his IP will change if he canges cellphone-cells.
(For example: a user is on the public transportation and tries to do a reservation. He will be logged out again and again, because his phone is constantly getting a new IP because of location changes.)

@caringdeveloper
Copy link
Collaborator

Good point. Let's change this behavior after we done our first baby steps 👶

@psilva261
Copy link
Contributor

Sounds very reasonable to increase convenience 🇰🇵

@DatanoiseTV
Copy link
Contributor

For security reasons it makes sense to bind the session to things like the remote address, but for user convenience it doesn't ;)

@marvinside
Copy link
Collaborator Author

Dann aber auch im richtigem Kontext: OWASP/phpsec#84 (comment)
Es muss die Position der IP ausgewertet werden.

@DatanoiseTV
Copy link
Contributor

DatanoiseTV commented Mar 10, 2017

So kann man es auch machen, wobei GeoIP auch oft unbrauchbare Ergebnisse liefert, was dann wieder zu einer schlechten User Experience führen kann.

Eine andere Möglichkeit wäre z.B. auf die ersten beiden zwei Octets des Subnetzes der IP des Nutzers zu matchen. Allerdings ist das wieder ein Problem, wenn der ISP Größer als /16 verteilt.

Und was natürlich noch schwierig ist: was passiert wenn Nutzer über Tor o.ä. kommen, wo "user cannot travel 1000 miles in 2 min" nicht greift?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants