Short session expiration does not help security
sjoerdlangkemper.nl
Short session expiration does not help security
1–10 of 434 posts
Re: Short session expiration does not help security
#2Re: Short session expiration does not help security
#3Phew, now I will bump session time to a week, since shorter ones were bothering me a lot. Thank you! :D
Re: Short session expiration does not help security
#4It is a lot harder to obtain valid short term tokens than it is to obtain long lived tokens. The insecurity of long term tokens is demonstrated by the many Elon Musk crypto scams found on Youtube.
I do agree that it is always a question of risk/reward. But to argue against it by saying short term tokens don't provide any added security, because a hacker can still gain access to a valid short lived token is disingenuous.
Re: Short session expiration does not help security
#5Re: Short session expiration does not help security
#6Those “sessions which never expire” do, in fact, expire. It’s just that there’s more to it than time. The author should read up on the reasoning behind primary refresh tokens and session tokens.
Re: Short session expiration does not help security
#7Re: Short session expiration does not help security
#8This one line is emblematic of the flaws in the article.
My take on the article is, “Imagine that everything else in a system is done correctly, and the system, overall, is perfectly secure. In this imaginary world, short sessions don’t help.”
One fact about security which you cannot avoid is that any one particular security feature may fail or be bypassed in some way. What are the consequences of this? Well, it means that you want multiple layers of security. Your server runs its daemons with minimal privileges so that a remote execution vulnerability needs to be combined with a privilege escalation vulnerability. You don’t think about the “right way” to secure something, but you think about multiple ways to secure something, and don’t stop securing it just because you’ve found one good option.
Short sessions are there because there are various ways that sessions could be compromised.
Re: Short session expiration does not help security
#9Re: Short session expiration does not help security
#10Someone please tell Apple, because they're the worst at expiring sessions. This (among other reasons) makes the developer experience terrible.