Login token in URL allows anyone to impersonate a user

Discuss issues and requests related with the forum software
Qriist
Posts: 82
Joined: 11 Sep 2016, 04:02

Login token in URL allows anyone to impersonate a user

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.
Last edited by Qriist on 11 Jan 2024, 13:16, edited 2 times in total.
Qriist
Posts: 82
Joined: 11 Sep 2016, 04:02

Re: Keyboard Hook being removed in 64-bit AHK

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 1242 times
image.png
image.png (218.05 KiB) Viewed 1242 times
lexikos
Posts: 9592
Joined: 30 Sep 2013, 04:07
Contact:

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

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?
User avatar
joedf
Posts: 8965
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

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

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.
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]

Return to “Forum Issues”

Who is online

Users browsing this forum: No registered users and 60 guests