News for hackers. Stuff that matters.
Re:Short session expiration does not help security by actuallyalys on Friday August 18, 2023 @12:19PM (#37177869)
The main place I see short session expirations is on banking and financial apps, which seems defensible to me for a couple of reasons:

1) They're used by a wide variety of people, including people who may not own a computer or mobile device, or who may not have a backup device to use when their personal device breaks. This group is probably shrinking—more and more people have smartphones and the remaining people who don't have smartphones are probably also the people without bank accounts—but arguably you want to cater to this group, since they may already be a bigger target for scams.

2) They're very appealing to opportunistic attackers.

3) They're used by people in stressful or unusual circumstances, e.g., when traveling, if they need to make a large emergency payment, or if they're afraid of being scammed.

4) Most sessions aren't very long anyway: checking a balance, seeing whether your paycheck came in, making a single transfer or payment, etc. There are definitely exceptions—15-minute timeouts are very annoying when doing taxes, for example—but it seems like the annoyance in these situations is potentially worth the security benefits.

That being said, I don't know if short session expiration is the best solution in 2023. As the article points out, major corporations like Google don't use short sessions, even though their services are used for a variety of sensitive things and they're huge targets. But as briHass pointed out in another comment, they also provide tools to see which sessions are open and use a variety of techniques to detect sessions being misused. I suspect that's the actual best solution if avoiding session stealing is that big of a concern.

Re:Short session expiration does not help security by kccqzy on Friday August 18, 2023 @02:29PM (#37180051)
> major corporations like Google don't use short sessions

Ask a Google employee. When I worked there sessions were limited to 20 hours. Beyond that full re-authentication with password + security key would be needed.

Re:Short session expiration does not help security by mynameisvlad on Friday August 18, 2023 @03:08PM (#37180591)
I’m pretty sure they mean for consumer accounts, not their own organizational logins.
Re:Short session expiration does not help security by sss111 on Friday August 18, 2023 @03:09PM (#37180605)
Why'd you leave?
Re:Short session expiration does not help security by kccqzy on Friday August 18, 2023 @03:26PM (#37180815)
Dissatisfaction with the speed at which Google does things. Smart people working very hard only to have little to show.
Re:Short session expiration does not help security by adrr on Friday August 18, 2023 @03:03PM (#37180520)
Training people to always login makes the susceptible to phishing attacks with fake logins. It becomes second nature to put in your email and password. Whats even worst is that banks won't send messages over email instead they make you sign into their "Secure" message center. Some how email is insecure but sending the same info in a physical mailing is safer. Any time you select electronic statements instead of physical mailings, they send you an email and force you back to their site to login.
Re:Short session expiration does not help security by AnthonyMouse on Friday August 18, 2023 @08:36PM (#37184113)
Not only that, they put the link to the site in the email.
Re:Short session expiration does not help security by ljm on Friday August 18, 2023 @03:27PM (#37180829)
My main bank uses username + password + (random subset of ‘memorable word but actually unencrypted password’ driven by select boxes), then 2FA on top, and it literally feels like they just slapped a bunch of things together to add extra barriers to auth in sequence.

This is the UK. Back in Latvia I would just slide my ID card into a USB reader and cryptographically sign the session with a passcode. Same as chip & pin.

Re:Short session expiration does not help security by vidarh on Friday August 18, 2023 @03:48PM (#37181135)
I'm Norwegian, but have lived in the UK since 2000, so I've seen the evolution step by step, and UK banks have pretty much just kept adding new steps every time fraud got too bad instead of rethinking things properly. It's infuriating.

Norway has a near universal electronic signature solution not quite the same as your Latvian one but sounds similar-ish (and there's a EU/EEA requirement to require mutual recognition at some point) and it feels much better (e.g. the Norwegian ones allow access to government websites as well, and can be used to sign contracts etc. - I'm assuming the Latvian one has similar options).

Re:Short session expiration does not help security by ljm on Friday August 18, 2023 @04:00PM (#37181296)
Yeah your ID in Latvia has an electronic certificate for governments, banks, etc
Re:Short session expiration does not help security by williamcotton on Friday August 18, 2023 @04:25PM (#37181612)
I’m so envious of the Baltic’s use of technology at the institutional level.

It seems literally infeasible for the United States to have state-issued PKI. It’s a meta-partisan issue: no side trusts the other to manage crypto or computer systems.

So for example instead of a public many-to-many digital publishing platform we are stuck with the whims of grown men who want to fist fight each other in the Colosseum and all because every X is convinced every Y is so despicable and corrupt that such a public system would be much worse than what we have now.

Re:Short session expiration does not help security by NavinF on Friday August 18, 2023 @05:03PM (#37182066)
tbh I can't think of many cases where I'd want state-issued PKI. I already use public key crypto secured by biometrics (faceid) to make payments, login to my bank, etc. None of that requires interacting with the state. For most normal computer use I quite like how random social media sites can't demand my identity because it'd be too expensive for them to verify it using public records.
Re:Short session expiration does not help security by labster on Friday August 18, 2023 @06:10PM (#37182821)
The USA was distrustful of national ID cards decades before the current level of hyperpartisan rancor. We just don’t the government enough to let them track us everywhere.

Not that the current climate helps. The REAL ID Act of 2005 has been delayed so many times, now to 2025. Maybe we should just repeal it instead.

Re:Short session expiration does not help security by xp84 on Friday August 18, 2023 @07:50PM (#37183713)
> We just don’t the government enough to let them track us everywhere.

That statement is both true and emblematic of the problem. Everyone is so cynical that a clean public-key, offline, certificate-based solution, with an absolute zero visibility to the government of who is doing what, would always be assumed to be part of some nefarious Illuminati/Democrat/Republican plot. Proving it to people with technical tests wouldn't prove it. They'll always be convinced.

What we need from the government is so minimal really, just to sign certificates if we prove our identity. But it'll never happen in the US due to the distrust situation.

Re:Short session expiration does not help security by jimmydorry on Friday August 18, 2023 @11:06PM (#37185073)
Because there has never been a proposal for a "clean public-key / offline / certificate-based solution". It's always a central database that also does x and y and will be available for w and z departments to do as they will with it.
Re:Short session expiration does not help security by xp84 on Monday August 21, 2023 @09:32PM (#37217525)
It doesn’t matter though, because the percentage of Americans who can understand public key crypto even in a vague way sufficient to critically read a technical analysis and judge it to be true, you could count on one hand. Nobody has proposed it because if any politicians have seen such a proposal on their desks, even if they themselves grasp it (unlikely), they know most Americans would freak out on principle.
Re:Short session expiration does not help security by mindslight on Saturday August 19, 2023 @01:29AM (#37185813)
Why are you talking in hypotheticals and abstract "distrust" ? We have already been suffering from existing central ID systems - social security numbers and drivers license numbers - with little hope for reform in sight. If there were something like the GDPR that prohibited companies from nonconsensually demanding, storing, or using these identifiers for anything but their bona fide governmental purposes, then it might make sense to talk about adding a new system. But until the government is capable of reigning in abuses of the existing systems, any new system of identification would inevitably be a gift to the surveillance companies.
Re:Short session expiration does not help security by sangnoir on Saturday August 19, 2023 @02:19AM (#37186088)
> The REAL ID Act of 2005 has been delayed so many times, now to 2025

Can one fly without a REAL-ID-compliant license or ID?

Re:Short session expiration does not help security by dgoldstein0 on Saturday August 19, 2023 @07:34AM (#37187720)
Yes, with a passport you can

... Probably not what you were trying to ask. I thought the deadline passed for using real ID for TSA but I haven't looked for that info in years

Re:Short session expiration does not help security by marcus0x62 on Saturday August 19, 2023 @08:04AM (#37187888)
The deadline has been pushed to May 7, 2025.
Re:Short session expiration does not help security by photonerd on Saturday August 19, 2023 @11:24AM (#37189690)
> We just don’t the government enough to let them track us everywhere.

Eh, that’s the pseudo-libertarian objection (which is… dumb as bricks, practically speaking) but the most common objection is one of access.

Until IDs are both free AND easy to obtain in the US (if you think they are, congrats: you’re in the lucky group) then a national id scheme will always be a non-starter.

IDs face the same problem voting has in recent years (and historically): the systems of power use limiting access as a tool to control those they don’t like.

Re:Short session expiration does not help security by AnthonyMouse on Friday August 18, 2023 @07:46PM (#37183680)
If the government wants to do something they should publish open source code that implements a sane authentication system, and then have no part of operating it whatsoever. If it's good and free people will use it voluntarily. If it isn't then you certainly don't want the same people implementing anything mandatory.
Re:Short session expiration does not help security by rkeene2 on Friday August 18, 2023 @09:19PM (#37184423)
The best part is that the US Government already did this -- it runs the second largest PKI. Second only to the Internet. It has issued more than 20 million certificates to individuals.
Re:Short session expiration does not help security by ethbr1 on Friday August 18, 2023 @09:44PM (#37184601)
Re:Short session expiration does not help security by AnthonyMouse on Friday August 18, 2023 @10:23PM (#37184856)
That's the part you don't want them to do though. Centralized PKI is bad for privacy and creates a single point of compromise. You don't want this, but for the whole population:

https://en.wikipedia.org/wiki/Office_of_Personnel_Management...

What you want is some well-reviewed code that a bank or utility company can "apt install" onto their server and get secure decentralized web authentication working in five minutes instead of leaving them to create some custom in-house contraption designed by a rotating committee of middle managers.

And they should really endeavor to break that PKI thing into smaller, independent, less centralized pieces. It's way too big as it is. There appears to be something called "Symantec" between "Federal Bridge" and "US Senate" and then another "Symantec" between "Federal Bridge" and "Naval Reactors" -- that doesn't seem great.

Re:Short session expiration does not help security by matheusmoreira on Friday August 18, 2023 @09:58PM (#37184700)
> no side trusts the other to manage crypto or computer systems

Nor should they. Too much power for governments to have. Every so often some news gets posted here about some government official who just does not give a shit about people's rights, you can actually feel the contempt when you read what they say.

Government solutions are non-solutions. We should solve these problems with ubiquitous technology or not solve them at all.

Re:Short session expiration does not help security by hahn-kev on Friday August 18, 2023 @10:59PM (#37185043)
Except our only solution to this problem today IS government provided already (ID SSN or Passport).
Re:Short session expiration does not help security by matheusmoreira on Friday August 18, 2023 @11:01PM (#37185048)
Which is dehumanizing. We are not cattle to be identified and marked.
Re:Short session expiration does not help security by raffraffraff on Saturday August 19, 2023 @01:54AM (#37185945)
Interesting. How do you identify criminals. Or for that matter, how do you identify anyone? "Just don't" or ... Some other solution?
Re:Short session expiration does not help security by duggan on Saturday August 19, 2023 @03:03AM (#37186298)
I assume their version involves another individual unaffiliated with government or private industry taking their hand, gazing meaningfully into their eyes, and tearfully proclaiming “I see you” before letting them through the border or into the bank vault or whatever.
Re:Short session expiration does not help security by photonerd on Saturday August 19, 2023 @11:25AM (#37189703)
Ah so you are the man with no name, I assume?
Re:Short session expiration does not help security by matheusmoreira on Saturday August 19, 2023 @12:29PM (#37190431)
My parents giving me a name is one thing. The state giving me a number and arresting me if I fail to produce that number to police on demand is another.
Re:Short session expiration does not help security by photonerd on Saturday August 19, 2023 @07:05PM (#37194239)
It’s funny you think there’s a difference
Re:Short session expiration does not help security by matheusmoreira on Monday August 21, 2023 @03:22AM (#37206366)
It's funny you think there isn't a difference between the humanity of your parents and some faceless governamental bureaucracy.
Re:Short session expiration does not help security by photonerd on Monday August 21, 2023 @06:41PM (#37216327)
It’s funny you think there is a separation between the two in any practical way.
Re:Short session expiration does not help security by tremon on Monday August 21, 2023 @06:40AM (#37207633)
Which one of those is problematic to you? The state giving you a number or arresting you if you refuse to identify yourself? Because you've given yourself a nice straw man to fight by conflating them.
Re:Short session expiration does not help security by photonerd on Monday August 21, 2023 @06:44PM (#37216349)
Oh he knows that, but that’s all their type has: faux-bravado against imagined threats.

Not least: they’re ignoring that simply having an identity is a traceable & trackable thing… because that would derail their paranoid fantasies where they’re a hero, fighting against a dystopian world.

Re:Short session expiration does not help security by msm_ on Sunday August 20, 2023 @02:44AM (#37196798)
But you need a way to identify people. If there's no good way to identify real people (government issued ID number), those that need them will invent bad ones (SSN, phone number, maiden name, maybe more). And companies like Google have their own identifier for you already, anyway. And you can't travel anywhere without a passport that is another identifier, anyway.

I'm impressed how much Americans dislike the idea of a mandatory government issued ID. I don't mean it in a bad way - this sounds like a very principled and idealistic stance. I just really like my government issued ID, and consider it a reasonable tradeoff.

Re:Short session expiration does not help security by matheusmoreira on Monday August 21, 2023 @03:27AM (#37206400)
I'm not american. Not only do I want the government to know nothing at all about me, I also want it to be illegal for others to develop those alternative identification methods. Those who "need" such things should have to figure out a way to avoid needing it.
Re:Short session expiration does not help security by ExoticPearTree on Monday August 21, 2023 @03:40AM (#37206488)
> I’m so envious of the Baltic’s use of technology at the institutional level.

You shouldn't. I don't know if anything changed in the last few years, but having to insert your ID into a card reader is very cumbersome from a user experience perspective. Especially since the world is moving away from having to plug stuff into computers.

Re:Short session expiration does not help security by plorntus on Friday August 18, 2023 @04:36PM (#37181753)
Spains banks (I’ve used two so far) simply use your ID number which is used in a lot of places and not considered secret and enforces a 4 digit password.

It’s an absolute joke.

Re:Short session expiration does not help security by ljm on Friday August 18, 2023 @05:01PM (#37182047)
Most banks in Spain require physical presence in the branch for 2fa
Re:Short session expiration does not help security by mooreds on Friday August 18, 2023 @05:19PM (#37182280)
You mean to set up a second factor, they require you to go into a branch?
Re:Short session expiration does not help security by deepsun on Friday August 18, 2023 @05:42PM (#37182536)
Bank Of America requires to tell them a 2FA code sent over SMS, when SMS literally says:

   <#>BofA: DO NOT share this code. We will NEVER call you or text you for it.
No, it wasn't scam, seen that process physically visiting a branch on agent's display multiple times.
Re:Short session expiration does not help security by photonerd on Saturday August 19, 2023 @11:28AM (#37189739)
My bank does that for in person visits but you key in the code on a PoS style keypad at their desk
Re:Short session expiration does not help security by illusiveman on Friday August 18, 2023 @06:06PM (#37182776)
I wondered once about this, but it kind of make sense from the point of view of usability.

Unlike any webservice, you usually have very few attempts to make a successful login before getting locked out, so even if it's four digits, the odds of a successful brute force attack are very low

Re:Short session expiration does not help security by plorntus on Friday August 18, 2023 @06:28PM (#37182983)
I suppose so, I just find it funny really that my bank has less password requirements than most (if not all) online services I use
Re:Short session expiration does not help security by jrockway on Friday August 18, 2023 @05:32PM (#37182427)
> Back in Latvia I would just slide my ID card into a USB reader and cryptographically sign the session with a passcode.

I think this is a good authentication model, but it costs money. There is the upfront cost of the physical card, and then the higher cost of lost account recovery. I think that's the turn-off to most banks; they will have to staff a call center that can verify your ID, issue a new card, and then deal with your immediate concerns because you can't access the website. Passwords + security questions are often free, "oh you don't know your password? we'll just email you another one if you remember your first elementary school's name".

At the end of the day, they are allowed to cut costs on critical infrastructure (everyone's money!!) because we have a strong victim blaming culture in the US. If your password is guessed, it's because you're bad at picking passwords, not because passwords are an intrinsically flawed technology. If your money is lost, it's because "it's really cool to have transactions that can't be reversed, you should have done your due diligence". It surprises me that everyone is OK with this.

(Incidentally, the only place where I've seen the option to use cryptographic authentication is on Vanguard. They added it right about the time we were testing security keys / U2F at Google, and they were the administrator of our 401k plans. I think Google strong-armed them into implementing it! Would love it if they did this to some banks ;)

Re:Short session expiration does not help security by ljm on Friday August 18, 2023 @06:10PM (#37182816)
You’re taking a well-known system, criticising it, and burying the fact you’re from the US well inside of that.

We’ve already solved this problem outside of America you know.

Re:Short session expiration does not help security by diroussel on Friday August 18, 2023 @06:26PM (#37182956)
In Norway, Latvia, Belgium and probably others, the card is issued by the government. So there is no cost to the bank to re-issue a lost card.
Re:Short session expiration does not help security by jrockway on Friday August 18, 2023 @09:04PM (#37184322)
Ah, that's the key. We'd never get a national ID in the US, instead ironically forcing the costly KYC onto each individual bank. (And Twitter now apparently.)
Re:Short session expiration does not help security by nickserv on Saturday August 19, 2023 @01:17AM (#37185757)
There's already a Federal ID required for banking in the US: your social security number.
Re:Short session expiration does not help security by Prickle on Sunday August 20, 2023 @09:13PM (#37204426)
Except that when it was first implemented, the government explicitly stated that the Social Security Number was not a valid ID.

https://www.npr.org/2018/03/22/596180023/how-social-security...

Due to this, it is fundamentally missing multiple levels of security. You can actually guess someone's SSN within 2 digits if you know their date of birth, and location of/hospital of birth.

Re:Short session expiration does not help security by RulerOf on Friday August 18, 2023 @08:49PM (#37184202)
> random subset of ‘memorable word but actually unencrypted password’

This annoys me so much with my bank. Their app lets you enroll your account into Face ID authentication, then still ask one of the recovery questions every time.

The UX is awful. I'm so convinced that complaining anywhere won't actually help so I don't bother.

I'd love to know what the hypothetical attack scenario is that drove that decision, but I suspect there isn't one, and the app saves the username/password in encrypted device storage.

Re:Short session expiration does not help security by jimmaswell on Friday August 18, 2023 @08:54PM (#37184240)
The more crap they shove in, the more some manager can boast about "improving security". And no one in the company wants to be the one saying no to "more security" so no one pushes back.
Re:Short session expiration does not help security by NikkiA on Saturday August 19, 2023 @04:10PM (#37192641)
My 'UK' bank recently dropped using the password completely, likely because someone pointed out to them that since you could simply reset the password via the SMS 2FA, it was essentially pointless. So now the SMS and a 5 digit PIN are all it takes. Eventually they'll figure out that the PIN can be reset via 'just an SMS' too.

'security'

Re:Short session expiration does not help security by lozenge on Sunday August 20, 2023 @05:52AM (#37197644)
I was about to tell you to switch banks, then I realised you just described my bank.

Yeah, I don't understand why none of the mobile-friendly banks are willing to build even a basic web interface for use on the big screen.

Re:Short session expiration does not help security by timtom39 on Monday August 21, 2023 @09:42AM (#37209481)
In Latvia what happens if you lose your ID?
Re:Short session expiration does not help security by dcow on Friday August 18, 2023 @04:01PM (#37181316)
To be honest I feel like biometric app unlock has largely made the need for the short tokens banking experience obsolete. I don’t want to change my credential ever 15 minutes, I just want my bank app to verify my biometrics on sensitive operations. The only real reason for short lived bearer “tokens” these days is so you can deploy them in scenarios without revocation lists.
Re:Short session expiration does not help security by rkeene2 on Friday August 18, 2023 @09:24PM (#37184471)
This is how the banking app my team built works -- on Android/iOS devices a hardware-backed keypair is generated and when a login is needed, the keychain is unlocked using local biometrics to perform a signing operation which authenticates the user.

There's a bit more to it than that because we support remote attestation, and you only get a read-only token until you've performed remote attestation (which generally happens quickly).

edit: The authentication results in a short-lived token (5m), a refresh token (20m), but can be re-authenticated with the keypair challenge at any time.

Re:Short session expiration does not help security by npunt on Friday August 18, 2023 @04:53PM (#37181969)
Health services also log you out after ~15min. Kaiser, One Medical, Epic Mychart, etc. Very annoying
Re:Short session expiration does not help security by actuallyalys on Friday August 18, 2023 @06:53PM (#37183161)
I think reasons 1 and 3 I listed for financial apps and websites apply for health services, but 2 and 4 don't, so I see why they do it, even if it's less clear-cut.
Re:Short session expiration does not help security by xp84 on Friday August 18, 2023 @07:54PM (#37183760)
Some of my highest-paranoia sites and apps are things like my dental insurance. Yeah guys, hackers are out to get me and they can't wait to impersonate me and reschedule my next cleaning for an inconvenient time!
Re:Short session expiration does not help security by cjcampbell on Friday August 18, 2023 @08:17PM (#37183987)
In my experience, a large percentage of compliance officers believe that this is a non-negotiable requirement for HIPAA compliant web apps. My reading of the Security Rule is much more pragmatic, so I would argue that there are other ways to meet this standard in many situations.
Re:Short session expiration does not help security by Fatnino on Friday August 18, 2023 @05:36PM (#37182477)
There is a class of people who feel a smartphone is too much of a distraction to carry around all the time. They will carry around a flip phone that can do basically nothing beyond calls, sms, and camera. These are otherwise perfectly normal members of society with bank accounts.

I don't know how common these people are. I happen to know a handful of them but I probably don't travel in typical circles.

Re:Short session expiration does not help security by jperras on Friday August 18, 2023 @06:01PM (#37182734)
I live in a very Hasidic Jewish neighbourhood in North America; they (almost) uniquely use flip phones instead of smart phones.

I've even seen women with cordless landline phones mounted to their shpitzel so that they can use it "hands-free", but without breaking their rules around kosher technology.

Some context:

https://www.theguardian.com/world/2022/jul/19/kosher-phone-d...

Re:Short session expiration does not help security by actuallyalys on Friday August 18, 2023 @06:42PM (#37183081)
In case it wasn't clear, I didn't meant to disparage people without phones or computers (or for that matter, people without bank accounts), just to note they are a small group of people and shrinking.
Re:Short session expiration does not help security by Fatnino on Friday August 18, 2023 @10:40PM (#37184944)
The people I brought up used to have smartphones and made a conscious decision to go back down the tech tree. So an inflow to the no smartphone group. Certainly not outweighed by the outflow so the group is still shrinking as you state.
Re:Short session expiration does not help security by wredue on Friday August 18, 2023 @07:05PM (#37183270)
I see pretty short timers in enterprise saas as well. Reason being that having a license for 400 users is much more expensive than a license for 30 users.
Re:Short session expiration does not help security by linuxdude314 on Friday August 18, 2023 @07:11PM (#37183339)
Pretty much all SaaS products charge per unique user, not active sessions, so I don’t really understand what point you’re trying to convey.
Re:Short session expiration does not help security by wredue on Saturday August 19, 2023 @01:29PM (#37191050)
Nearly all of our agreements are in active sessions. I guess your business just needs better negotiation?
Re:Short session expiration does not help security by fsckboy on Friday August 18, 2023 @07:26PM (#37183482)
> I suspect that's the actual best solution if avoiding session stealing is that big of a concern

that big of a concern for whom? Google doesn't care because Google has constructed a world where when something goes wrong, sorry, it's on you.

Your bank does care because if something goes wrong, it's frequently on them. The bank times you out to protect them more than you.

Re:Short session expiration does not help security by calderwoodra on Friday August 18, 2023 @08:28PM (#37184060)
I'll add one more: Fintech app users constantly ask for short sessions.

As the developer, I really didn't want to add it, but who cares what I want.

Re:Short session expiration does not help security by megous on Saturday August 19, 2023 @04:05AM (#37186618)
Smartphone sounds like the worst device you can use for banking.

If remotely compromised, the attecker gets everything they need. The SMS second factor, the user's password, access to user's network, and the user's behavior profile to know when to execute the attack so that they get as much time for it as possible.

Re:Short session expiration does not help security by caskstrength on Saturday August 19, 2023 @04:18AM (#37186678)
On the other hand I would assume that modern smartphones from manufacturers that care about security to some degree are much harder to compromise compared to random Windows laptops.
Re:Short session expiration does not help security by zigzag312 on Sunday August 20, 2023 @01:33PM (#37201223)
Pixel phones had exploit discovered last year where you could unlock any phone by entering the PUK code. You just replaced the SIM card with your own SIM for which you knew the PUK. Seems very easy to me.

https://9to5google.com/2022/11/10/pixel-lockscreen-unlock-bu...

Re:Short session expiration does not help security by josefx on Saturday August 19, 2023 @04:19AM (#37186687)
> but it seems like the annoyance in these situations is potentially worth the security benefits.

I would be happy if there was a way to just request a long session for that. No need to force everything into a short session just because it is a sensible default.