News for hackers. Stuff that matters.
Re:Let them paste passwords (2017) by jiggawatts on Saturday June 20, 2020 @12:12AM (#23581583)
Making password entry difficult is like attempting weight loss by eating bland food.

It's not the flavour that makes you fat.

Nonetheless, there's this perception that something delicious can't be good for a diet. People have this notion that to lose weight, there must be penance. An element of punishing oneself for past transgressions seems essential.

Security people have the same mindset. Security must be a hassle. It must be in your face. It has to be onerous. A challenge. A hurdle to get past.

I've tried, over and over, to explain to my customers that often the slickest, most hassle-free approach is the most secure. But this almost never sells.

Meanwhile, I see vendor after vendor successfully selling products that exist only to irritate users.

Re:Let them paste passwords (2017) by tialaramex on Saturday June 20, 2020 @01:06AM (#23581847)
There was a recent discussion on HN that branches into this idea about the importance of UX. I agree with you, with a twist.

What you want is that the happy path for security is zero hassle, but the unhappy paths should also drop dead with zero hassle.

This is the UX I really like for WebAuthn / U2F.

All the interactions on the happy path are very smooth. Need a second factor, tap, go. Almost frictionless. On my phone for example you tap the same fingerprint sensor that would ordinarily unlock the phone. Short of not having a second factor at all it couldn't be smoother.

But if this is actually a phishing site or you're a crook who doesn't have the hardware token, it just doesn't work. Still low friction in a sense, but low friction failure. There is no way forward, no override, no "I'm sure", nothing - it just won't work.

Re:Let them paste passwords (2017) by nine_k on Saturday June 20, 2020 @03:39AM (#23582463)
Another unhappy path is very difficult.

Your phone got stolen or smashed. Your 2FA is just not available. Welcome to the sea of hassle proving your identity.

But a little bit of hassle beforehand, in the form of printing one-time codes and storing them even in your wallet would help dramatically.

Re:Let them paste passwords (2017) by DarthGhandi on Saturday June 20, 2020 @07:03AM (#23583230)
I have Authy on my phone, a laptop and a desktop. There's also a backup stored away with all my other encrypted secrets.

I'm far more likely to lose my keys or wallet than 2fa.

Re:Let them paste passwords (2017) by monadic2 on Saturday June 20, 2020 @04:09AM (#23582563)
Proving identity is inherently not something you can solve technically, particularly without support from government.
Re:Let them paste passwords (2017) by ddrt on Saturday June 20, 2020 @10:19PM (#23589198)
Just has to abandon a Trello account because of this. They state if you lose your device for TFA you have just lost your account. Okay, bank level security for a PM tool...
Re:Let them paste passwords (2017) by davchana on Saturday June 20, 2020 @01:35PM (#23585199)
Keep the 2fa code sequences safe in a separate keepass or any password database; & you can move 2fa anytime. Even Google updated its Auth app to export all keys.
Re:Let them paste passwords (2017) by LadyCailin on Saturday June 20, 2020 @08:32PM (#23588649)
Wait, when? For iPhone? I just checked and don’t see it.
Re:Let them paste passwords (2017) by davchana on Saturday June 20, 2020 @10:40PM (#23589301)
Oh Sorry, I should had been clear; I use Android.
Re:Let them paste passwords (2017) by kohtatsu on Saturday June 20, 2020 @01:28AM (#23581935)
Aside: it'd be cool to have a tool that could find the discussion you referenced in your first sentence. I wonder if Algolia is working on something in the space of topical search.
Re:Let them paste passwords (2017) by AmericanChopper on Saturday June 20, 2020 @02:37AM (#23582235)
The security industry is a high paid specialization in an already highly paid industry, and it attracts an enormous number of complete charlatans. It’s incredibly easy to be a security charlatan, most of the people you work with won’t understand what it is you’re supposed to be doing, so they won’t know any better when you tell them to do literally anything at all. You can create an endless stream of busywork for yourself, by making an endless stream of nonsensical risk assessments, and anytime you don’t know what to do you can just say no. Anytime you’re questioned you can just say it’s best practice, and chances are some authority at some point in time said it was.

Other risk-related fields typically have at least some of the same issues. Risk avoidance is always a no-effort strategy, and the industry is full of people who rely on it entirely, because they don’t have the skills to implement actual mitigation strategies.

Re:Let them paste passwords (2017) by ownagefool on Saturday June 20, 2020 @04:31AM (#23582630)
Yeah I'm a contractor that basically works on modernising the SDLC and target platforms. Nothing fancy.

Pretty much in all circumstances the outright adversary is Enterprise Architecture or Security using governance and security to push complex standards that don't work and result making changes harder and unpatched systems.

Some of them are receptive if you communicate the issues in terms of risk, but many most in my experience are only receptive if put it in writing and you copy in their boss.

Re:Let them paste passwords (2017) by viraptor on Saturday June 20, 2020 @01:29AM (#23581937)
> Security people have the same mindset. Security must be a hassle.

It's an unhelpful generalisation. There are many jobs that could come under "Security people" and they work under different requirements.

Many will agree with you on the hassle-free experience. There's no need for the us-vs-them.

Re:Let them paste passwords (2017) by monadic2 on Saturday June 20, 2020 @04:06AM (#23582555)
Sure, but this isn’t engaging in the above poster in good faith.
Re:Let them paste passwords (2017) by viraptor on Saturday June 20, 2020 @05:55AM (#23582956)
I don't have the data on sales, so I can't comment on that. Without seeing the marketing, it's hard to tell why OP's solutions are not chosen. (I don't expect it to be as easy as "it's not difficult enough")
Re:Let them paste passwords (2017) by monadic2 on Saturday June 20, 2020 @03:11PM (#23586137)
Yea, but you could have chosen not to comment at all without detracting from the conversation. If folks around here don’t know what security folks do you have much, much, much larger concerns. Why not engage in good faith? If you can’t do that why comment at all?
Re:Let them paste passwords (2017) by viraptor on Saturday June 20, 2020 @05:48PM (#23587616)
Because "security people want to make your life harder" is as meme that needs to die. People actually believe that and if we don't call out that it's wrong and harmful, it will continue to be repeated.
Re:Let them paste passwords (2017) by monadic2 on Sunday June 21, 2020 @05:21PM (#23595517)
Well, it’s also true in many senses. You’re not going to get much of anywhere without recognizing that.
Re:Let them paste passwords (2017) by derefr on Saturday June 20, 2020 @11:35AM (#23584505)
> Making password entry difficult is like attempting weight loss by eating bland food. It's not the flavour that makes you fat.

Big side-tangent, but amusingly enough, one modern view on the etiology of metabolic syndrome is that your brain tracks satiety for different nutrient classes separately; so foods that are "tasty" in the sense of containing many different nutrient-signals (sugar, salt, fat, acid, etc.) take larger quantities of food to signal fullness (something something liver metabolism is a rate-limited queue); so if you start off hungry and eat such foods until you "feel full", you will have eaten more of them than you "should have", to the point of eventually doing excitotoxic things to your leptin receptors, inducing leptin resistance and making you feel hungry more often.

Which is to say, it's not flavor that makes you fat, but rather flavors, plural. ;)

The advice of the scientists who subscribe to this hypothesis is that you don't have to eat bland food; you just have to eat monotonous food (food only containing one primary nutrient-signal), and you'll feel full with less of it. When you sit down for a meal, eat all meat, or all bread, or all green leafy vegetables. Balance your diet by having something different each meal, not by combining foods in a single meal. Avoid foods that are themselves "combinations", like pizza. Avoid adding a secondary nutrient-signal to something to "amp up" the taste, like adding sugary+oily dressing to a mineral-y salad. Just choose foods that already taste good to you without any "amping up", and eat those, by themseleves.

This is, after all, the real "paleo diet": when animals kill prey, they eat just meat for a meal. When they find fruit, they eat just fruit for a meal. They don't bring them together to eat them all at once.

(Whatever you think of the hypothesis, studies have been done which confirm the advice: eating monotonously per meal, makes you feel full after less food intake. You hit a wall with a kind of "tired/bored of eating this, disgusted by the idea of eating more" feeling, which makes you lose the rest of your appetite. That's your body's nutrient-satiety mechanism kicking in correctly.)

Re:Let them paste passwords (2017) by nwienert on Saturday June 20, 2020 @01:47PM (#23585301)
This all sounds very interesting, but doesn’t at all match my lived experience.

I’ve dieted now a few times quite successfully while living with a chef roommate.

He cooks amazing meals. Salads with more ingredients than I’d ever bother to use, stuff like that. As a chef he really puts time into hitting many flavors (not always, but often).

I’ve never had an easier time losing weight than this last time! Down to my healthiest in years, and been super happy with how easy it’s felt.

Here’s a theory: I’m getting a lot of happiness from eating delicious food. If I eat bland things, sure over time I may adapt to it. But to be honest, getting joy out of eating is one of just two things that is an inexhaustible source of delight for humans. Trying to diet and deprive yourself of flavor is like fighting two dragons at once.

The dopamine/serotonin balance I get from a well crafted, layered meal is actually what keeps me satisfied and feeling like “I had my pleasure, I owe it to myself to accept that as enough”. A fun diet is easier to follow.

Edit: just to add. I also get a ton of happiness from cooking new and interesting things. To me, the craft of cooking also helps mentally. I get satisfaction from trying new things, being creative, pleasing my SO, etc - humans need some amount of creativity and play. By fulfilling that through cooking, you avoid seeking it in eating. I’ve noticed clearly when we make a nice meal I’m so happy at just having done something well, my dopamine is low once it’s time to eat.

Re:Let them paste passwords (2017) by derefr on Saturday June 20, 2020 @03:04PM (#23586048)
> If I eat bland things, sure over time I may adapt to it.

I think you're arguing with the GP comment, not my comment. The kind of "diet" being described in my comment above—if you even want to think of it as a diet—doesn't actually stop you from eating anything, if you count by "flavor experiences" rather than "meal experiences." It just makes you get your "flavor experiences" separately, rather than all at the same time. (Or "as separately as you can." A food with N-1 macronutrients is still going to fill you up faster than a food with N macronutrients; so just minimizing macronutrient variety per meal is fine. You don't have to strictly limit yourself to some small number. Eating a salad with dressing as your meal, is still better than eating a salad with dressing and meat in it.)

Most foods invented throughout history actually already fit this "diet." Vegetable soups, however many ingredients, still have only two or three major macronutrients. Roasted poultry only has one. Mashed potatoes only have two. A steak has one. Fruit pies have three. Nigiri sushi has three. Most authentic italian pastas have three. Even "bad for you" foods like hot dogs or mac-and-cheese only have three, if you make them from scratch.

There are two types of recipes that have high macronutrient variety: those invented throughout history to be served to nobility/royalty, that were "fancy for the sake of being fancy"; and those invented in the modern era of year-round grocery-store ingredient availability (and thus no need to work with what's in-season, freshly-harvested, before it rots.)

Sandwiches, hamburgers, American pizza, "tex-mex" tacos/burritos, and other food-court staples: nine or more macronutrients each. The kind of cheese powder found in doritos or shelf-stable mac&cheese counts for eight by itself! The average take-out order of "American Chinese food" hits almost a dozen. Most French sauces reach seven macronutrients on their own, before counting what you're putting them on. A full English breakfast has twenty macronutrients.

Some of these are capitalism at work, creating ever-greater superstimuli out of originally-simpler meals (e.g. pinche tacos; authentic regional Chinese cuisine; etc.) You can just buck that trend, and be healthier for it.

But for some of the others, the macronutrient-variety is fundamental to what the food "is." In those cases, keep in mind that most of the food experiences these foods give you, are made up of—"synthesized" from—simpler standalone food experiences, that just happen to be happening at the same time in your mouth, without really being one unified food experience. You can have the experience of eating just the "melty cheese" part of a pizza—that's raclette. You can have the experience of eating just the meat part of a hamburger—that's a hamburger steak. A loaded twice-baked potato breaks down into two separate meals: baked potatoes + sour cream, and a pasta-salad-like dish. Etc.

None of these are "less tasty" when taken separately. They're just different ways of having the same experiences. If you like, you can eat garlic bread for one meal, a Greek salad for the next, and charcuterie for a third—and you'll have "eaten a pizza" of whatever toppings you like. (Personally, I'd rather just eat a simple caprese pizza, which has ~5 macronutrients; but if you prefer the complex flavors, go ahead and have them. Just—separately.) Likewise, if you're getting American Chinese take-out, you can just eat one of the dishes you ordered per meal, rather than trying to have a little bit of all of them each meal. (Some of those dishes are, individually, pretty macronutrient-rich, but if you want those flavors, this is how to get them.)

Of course, you can have complex foods if you do it as an indulgence, the way people think of ice cream (which is actually not an indulgence under this paradigm; you'd get full on a meal of pure ice-cream quite quickly, if you were just eating from hunger, rather than stress-eating.) You'd just have to be consciously aware that your body isn't going to correctly estimate when you've had enough everything-pizza, and so you'll have to consciously limit your intake rather than relying on satiety in that case. You'll likely end up somewhat hungry after such a meal. That's fine—you'll get to feel full again soon-enough, as long as your next meal after that is a low-macronutrient-variety one.

Re:Let them paste passwords (2017) by xg15 on Saturday June 20, 2020 @05:12PM (#23587342)
> They're just different ways of having the same experiences. If you like, you can eat garlic bread for one meal, a Greek salad for the next, and charcuterie for a third—and you'll have "eaten a pizza" of whatever toppings you like.

I'd argue that the simultaneity is a new experience though. Just as playing first the low notes and then the high notes of a musical score sounds radically different than playing both scores at the same time, the taste of pizza is exactly the interaction between cheese flavour, bread and topping.

The theory about satiation sounds plausible and I can easily imagine that you will eat less by consuming only monotonous meals, but I'd disagree stating this would be the same experience are being similarly enjoyable.

Re:Let them paste passwords (2017) by nwienert on Sunday June 21, 2020 @01:12PM (#23593405)
I was explicitly claiming that I think having more variety of flavors and ingredients together makes it easier, so yea it was an example against your theory.

Also your examples fit my experience as well. A hot dog is best with some mustard, relish, maybe grilled onions. The bread has milk, sesame seeds often. The hot dog itself is seasoned with a variety of spices.

Re:Let them paste passwords (2017) by jiggawatts on Monday June 22, 2020 @08:56AM (#23599625)
a) I love that an offhand comment about password entry has spawned a sprawling thread about dieting.

and,

b) This reminds me of Penn Jillette's potato diet, and might explain why it works.

Re:Let them paste passwords (2017) by sukilot on Saturday June 20, 2020 @01:45PM (#23585283)
Bread (a refined food) will make you sick and fat before it makes you full. Maybe a very whole wheat would work OK in this system. Fruits are also a highly refined food (genetically engineering/ artificially selected for extremely high sugar.)
Re:Let them paste passwords (2017) by danlugo92 on Saturday June 20, 2020 @02:06PM (#23585475)
What's a good alternative to bread that is NOT oatmeal.
Re:Let them paste passwords (2017) by duxup on Saturday June 20, 2020 @01:14AM (#23581881)
Years ago I believe it was Microsoft that found via some method that the higher the rate of required password changes + difficult password rules...the more likely they found larger / more obvious security issues.
Re:Let them paste passwords (2017) by NewEntryHN on Saturday June 20, 2020 @08:03AM (#23583471)
Allowing password pasting has been a standard recommendation from the security community for years.
Re:Let them paste passwords (2017) by dheera on Saturday June 20, 2020 @02:17AM (#23582144)
apt-get install xclip xdotool, then put this in ~/bin/paste

    #!/bin/bash
    sleep 2.0
    xdotool type "$(xclip -o -selection clipboard)"
If a website prevents you from pasting stuff just type "paste" and then click the field and wait 2 seconds.
Re:Let them paste passwords (2017) by virgilp on Saturday June 20, 2020 @02:41AM (#23582252)
You underestimate the ingenuity of some sites.

Take this one: https://systemschimb.telekombanking.ro/login - enter a random user id, and behold the password input field:

- all characters are separated (not one password field, but 10-15 ones)

- some characters are randomly grayed-out (you're not supposed to enter all the characters of your password)

Re:Let them paste passwords (2017) by megapatch on Saturday June 20, 2020 @04:05AM (#23582551)
It is missfeatures like this which make me seriously doubt the competence of the site provider.

They then loose me as a customer, and everybody else who I can influence.

Re:Let them paste passwords (2017) by user5994461 on Saturday June 20, 2020 @09:37AM (#23583863)
Looks like a bank.

It was (is?) common practice to have a visual keyboard to enter the password in extremely sensitive applications like banking. This prevents the password from being captured by keyloggers and from being saved by the browser, because malware automatically extract and collect these, which was a very real issue with banking.

Re:Let them paste passwords (2017) by dkersten on Saturday June 20, 2020 @12:43PM (#23584881)
Wow. Even if I didn’t use a password manager, that last point would make this unusable for me. When I do use passwords, I remember them through muscle menory, and having to not type parts of it would throw me off. I would actually change banks over that.
Re:Let them paste passwords (2017) by nobatron on Saturday June 20, 2020 @04:27AM (#23582613)
This approach also means that the password must be stored as plain text. Otherwise they would only be able to compare if the password was complete.
Re:Let them paste passwords (2017) by mormegil on Saturday June 20, 2020 @05:27AM (#23582845)
Not necessarily. You could store $10 \choose 5 = 252$ hashes for each user.

We did something similar for call center caller authentication (you don't want the operator to get the whole PIN of the user, so he asked only for e.g. two characters). Not that this would be very useful, security-wise.

Re:Let them paste passwords (2017) by dmurray on Saturday June 20, 2020 @07:06AM (#23583242)
> Not necessarily. You could store $10 \choose 5 = 252$ hashes for each user.

Wouldn't this be way easier to crack if the password hashes were leaked? Once you crack one 5-letter hash, you can trivially crack the one that shares 4 characters with it, and do that repeatedly until you have all 10 characters.

You're reducing the effective search space not by a factor of 252 (8 bits of entropy, which would often be acceptable) but to its square root, losing half of the entropy.

Although it seems like security theatre, the PIN solution actually sounds more useful. The typical attack on a system protected by PINs, like bank cards, is not cracking hashes offline - it's that the attacker tries the PINs on the live system and gets locked out after a small number of failures. Assuming the bad actor can't just initiate another call and ask for the other two digits.

Re:Let them paste passwords (2017) by mormegil on Sunday June 21, 2020 @03:27AM (#23590470)
Oh, sure, the authentication itself is fairly usable for the given usecase, the hashing is security theater. I advocated not hashing those PINs, but you know, standards, auditors, etc. "Passwords must be hashed", security theater or not.
Re:Let them paste passwords (2017) by viraptor on Saturday June 20, 2020 @05:40AM (#23582887)
There are ready solutions for that too. For example https://github.com/bizley/yii2-partial-password
Re:Let them paste passwords (2017) by phit_ on Saturday June 20, 2020 @05:20AM (#23582814)
the page uses vue and its in development mode, just wow

https://i.imgur.com/87Z46vb.png

Re:Let them paste passwords (2017) by namdnay on Saturday June 20, 2020 @03:41AM (#23582467)
I like the system where you only enter parts of your password. It means that even with a key logger or hacked site, you’d need several logins to be able to scrape the password
Re:Let them paste passwords (2017) by iso1631 on Saturday June 20, 2020 @05:36AM (#23582874)
That means the password is held in plain text or reversable encryption. They should only have a salted hash of your password.

Using a shared secret in addition to a salted password is probably acceptable, although how much extra security it gives is debatable.

Re:Let them paste passwords (2017) by ithkuil on Saturday June 20, 2020 @07:04AM (#23583236)
Possibly or they could store N salted hashes, one for one of the N permutations of a mask over the password character positions. This basically splits the end user password into N passwords with smaller entropy but this can be mitigated by requiring high entropy for the original password.
Re:Let them paste passwords (2017) by iso1631 on Saturday June 20, 2020 @02:16PM (#23585584)
Making it insanely easy to brute force if you have access to the hashes

(if they ask for 2 characters, assuming a-zA-Z0-9 you're talking maybe 4k permetations, and then you know 2 characters)

A 10 character 64 symbol phrase would take 64^10, or 1e18 guesses

5 lots of 2 characters 64 symbols would take 5*64^2, or 20k guesses

Re:Let them paste passwords (2017) by ithkuil on Saturday June 20, 2020 @03:16PM (#23586203)
If the "sub" passwords are 2 char long then then they have way too less entropy. For this to that make any sense it must use a sizable subset of the full password (which must be longer than usual to accommodate for that.

And all this to protect for keyloggers. Probably a hardware token second factor is more effective.

Re:Let them paste passwords (2017) by ArgyleSound on Saturday June 20, 2020 @05:22AM (#23582823)
Yet it also suggests the password is being stored insecurely in the server.
Re:Let them paste passwords (2017) by kchr on Saturday June 20, 2020 @10:25AM (#23584120)
paste(1) is part of GNU coreutils, so maybe use a different name for your script (to avoid potential collisions).
Re:Let them paste passwords (2017) by bad_user on Saturday June 20, 2020 @11:08AM (#23584344)
There's actually a lot of scientific evidence that hyperpalatable food contributes significantly to obesity and that bland food does lead to an instantaneous drop in appetite.

It's not about any penance, you got it all wrong, this is about our brain going haywire for food high in calories.

Re:Let them paste passwords (2017) by SaltyBackendGuy on Saturday June 20, 2020 @11:23AM (#23584434)
This reminds me of a Jack LaLanne quote.

"If it tastes good, spit it out!"

It's not an absolute rule obviously. Generally products masquerading as health food that taste "good" are loaded with sugar.

Re:Let them paste passwords (2017) by m463 on Saturday June 20, 2020 @07:03AM (#23583233)
I think there should be a special, maybe one-time-use password paste buffer

It can use a different key combo, or automatically be chosen when pasting into secure fields

Re:Let them paste passwords (2017) by buu700 on Saturday June 20, 2020 @12:46AM (#23581744)
Sounds like Calvinism: https://redd.it/232qqq