Login token in URL allows anyone to impersonate a user

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Login token in URL allows anyone to impersonate a user

Re: Login token in URL allows anyone to impersonate a user

by joedf » 19 Jan 2024, 10:37

@lexikos Thanks for moving this. I will have a look immediately. And you're correct it's part of a security feature apparently. It looks like this is a default behaviour if cookies are disabled/disallowed, but could be mitigated with IP address validation.
@tank FYI. Here's what I'm looking at currently.
https://www.phpbb.com/community/viewtopic.php?t=2549911
https://www.phpbb.com/support/docs/en/3.2/kb/article/fixing-incorrect-cookie-settings

EDIT: I've turned on Session IP Validation, and changed cookies to expire after 30 days, but you'll notice an sid in the url when just logging in. Otherwise, you shouldn't see while browsing the forums if the cookies are working correctly.

Re: Login token in URL allows anyone to impersonate a user

by lexikos » 19 Jan 2024, 06:25

Given that the original post was about an issue that clearly already has a Bug Report topic, I have moved this topic to Forum Issues to deal with the login token issue.

I would assume that the SID appearing in a URL is explicitly not "cookie token bs", but a mechanism intended to permit logins without cookies.

In order for someone who is not Qriist to post as Qriist, Qriist must have shared a URL containing the SID. But what were the conditions that caused the SID to be present in the first place?

Re: Keyboard Hook being removed in 64-bit AHK

by Qriist » 11 Jan 2024, 13:07

Sooo REAL Qriist here. Apparently the forum url includes a sid token that just logs people in as you on other systems. Could we, like, nuke that feature so this doesn't happen again?

image.png
image.png (199.99 KiB) Viewed 1375 times
image.png
image.png (218.05 KiB) Viewed 1375 times

Login token in URL allows anyone to impersonate a user

by Qriist » 11 Jan 2024, 12:53

[Topic moved from Bug Reports and renamed by lexikos.]

Same issue as this post viewtopic.php?f=14&t=82158
I'm using 64-bit AHK on 64-bit Windows 10.

Link to discord thread, for extra context:
https://discord.com/channels/115993023636176902/1195022953516118106/1195022953516118106

EDIT: thanks to login token shenanigans, the above message was posted by alfinete, not me. See below.

Top