9 ms·
Safari Password Generation
- dzmien 9y agoFor a clever intern, or at least one who knows a little python, it probably wasn't that bad. Or maybe I am missing something.
- deedubaya 9y agoPassword restrictions are the worst. Office365 doesn't support passwords > 16 characters in length. WTF.
- Spooky23 9y agoI think has something to do with older Outlook clients and how they pass credentials. You can bypass the limit with ADFS.
- gruez 9y agoserious question: what's the issue? 16 characters alphanumeric = 95 bits of entropy, which is enough for most purposes.
- YSFEJ4SWJUVU6 9y agoWith password generation, nothing really. If you want to choose the password yourself, it limits your options (for no good reason for the user).
- mediumdeviation 9y agoYes - for instance it makes the Correct Horse Battery Stapler passphrase strategy[1] difficult to apply, because now you can only pick words up to ~4 letters long. [1]: https://xkcd.com/936/ https://xkcd.com/936/
- jwilk 9y agoRight. Human-memorable passwords have low entropy density, likely less than 2 bits per character. 32 bits of entropy doesn't sound very appealing.
- exikyut 9y agoA long passphrase can be easier to remember than a 5h0rt 5tr1ng. On the mental side, it can take more internal *pointers to remember the latter than the former.
- psergeant 9y agoA common reason to limit the length of a password — and doubly so to a power of 2 — is that they’re being stored or passed around as plaintext
- shakna 9y ago95bits of entropy for a computer, but for an actual user? Humans are bad at remembering most things. The more entropy there is, the more difficult it tends to be for us to remember. The way for increasing password entropy, whilst lowering the human bound, tends to be by utilising things humans find easy to remember, but computers find difficult to randomly/brute-force solve. That usually requires a longer password. You can sort-of bypass the human memory problem by using password managers, but they have their own set of problems (mostly usability), and assuming people actually use them is an assumption too far in most cases.
- JohnStrangeII 9y agoIt's a restriction without any reason other than decreasing security. (Unless they plan to store plaintext passwords, which should be prohibited by law.)
- deedubaya 9y agoI use a password manager with auto-generated password length "turned up to 11" (64 characters). It probably doesn't matter, but I am decreasing the secruity of my password because of their limitation.
- deleted 9y ago[deleted]
- scrollaway 9y agoPaypal passwords are 20 characters max. Also Paypal doesn't support any form of secure OTP. Also, Paypal forces security questions on the user. In other news, my Hearthstone account has better security than my money.
- shawnz 9y agoI've been locked out of my Hearthstone account for the last few weeks because I lost my 2fa authenticator and they've refused to remove it due to my driver's license being expired.
- scrollaway 9y agoBTW, Battle.net Authenticators look nonstandard at first glance, but they are actually 8-digit TOTP. I wrote a Python library and command line utility which can create new Battle.net authenticators as well as generate codes and QR URIs: https://github.com/jleclanche/python-bna https://github.com/jleclanche/python-bna See the README for usage :) This should help you to have a backup next time you get locked out!
- stryk 9y agoThis just saved my ass. I only play Diablo 3 occasionally, but Blizzard doesn't offer their client on Windows Phone, which would have been great to know prior to switching over from Android. Fortunately I didn't have the same issues getting it taken off of my account as the parent comment , but I was stuck using SMS as a 2FA after that, which is no beuno. I just used your python script, imported the 'secret' into Microsoft Authenticator via the generated QR code, and now it is working just as if I was using one of their auth dongle doohickies. Fantastic, thank you sir/madam!
- scrollaway 9y agoGlad it helped!
- ZoFreX 9y ago
- jsjohnst 9y agoUp until about 2010, Amex Corporate Card website required passwords at minimum 6, but not more than 8, with minimum one upper/one lower/one number each, and zero anything else (aka no punctuation or non-basic ascii letter).
- maddyboo 9y agoCan someone post the .plist?
- exikyut 9y agoUnfortunately, Safari itself is closed source, only WebKit is open. :( Googling the filename of course returns no results. I am VERY curious how 1Password were confident they'd be able to get anywhere with getting a copy of this. I have no info suggesting they'd have a problem with it, of course, and time will tell if it works out.
- zwily 9y agoThe plist is probably just stored within the Safari bundle, and 1password could look there at runtime.
- pvg 9y agoWhy would 1Password need a copy of this? They just need to implement a similar feature for their own Safari extension.
- alphabettsy 9y agoSaving time..
- js2 9y agoUnder 10.12.6 running Safari 11.0.3 (12604.5.6.1.1), no file named WBSAutoFillQuirks.plist exists anywhere on the file system. The closest named file I found is WBSPasswordGenerationRequirementsByDomain.plist which is found under /System/Library/StagedFrameworks/Safari/SafariShared.framework/Versions/A/Resources/ I've posted its contents here - https://pastebin.com/iPY6gLSC https://pastebin.com/iPY6gLSC There's a separately named WBSFormAutoFillKeywords.plist.
- sgillen 9y agoI think putting in the effort and basically hard coding many popular solutions is an underutilized strategy in dealing with these sorts of things. Many times I see programmers try to come up with a general solutions which becomes a much more difficult sort of problem.
- gumby 9y ago> Many times I see programmers try to come up with a general solutions which becomes a much more difficult sort of problem. Ouch, are you looking at me? I just chopped out a fragile "general case" implementation of something today and replaced it with something that robustly gets the job done for the small number of cases we have. I was the writer of that fragle cruft a couple of months ago.
- twhb 9y agoThe problem is getting hardcoded values updated as websites change. This is where it’s useful to be Apple: if your website breaks 1Password then that’s 1Password’s problem; if your website breaks iPhones then that’s your problem.
- dewey 9y agoIt’s not exactly breaking them. You’d just have to adjust the pre filled values with something that fits the requirements of the site which is something most people are already used to anyway.
- st3fan 9y agoIf you have ever used Safari's password generation feature, you know that is pretty much impossible.
- niftich 9y agoHand-harvesting data is a perfectly legitimate solution, although it comes with a steep initial cost and an ongoing maintenance cost. However, this enables the data to be curated and validated. For this, they wanted to accurately capture the exact rules each site uses, which makes sense to do out-of-band -- ahead of time, and validated by humans -- than to try to discover from the site dynamically, especially because the latter solution, in a world without sites making their own requirements available in a programmatically readable format, would have been complex and brittle. In a program, this sort of data may be hard-coded directly in the code, or dynamically loaded from config files. That's largely an implementation detail.
- cratermoon 9y agoDoes Apple maintain this and update it when the websites change their requirements?
- sashk 9y agoGreat. As long they attempt to keep these rules up-to-date. Recently, saw strange thing -- I was allowed to have password with lengths between 16 and 128 characters, but my password manager 1Password supports only... 60 or 64 characters. Oh well, wish that this would be a problem, not other way around. Still kills me that my health records are behind 12 characters password, and my bank think 16 character password is enough.
- jsjohnst 9y agoI have several 100+ character passwords stored in 1Password.
- ben-schaaf 9y agoI wish my bank allowed 16 character passwords!
- CGamesPlay 9y agoThis probably isn't mostly about password generation rules, but rather about how to fill the forms, e.g. what's the user name field named, etc. (Otherwise why would it be called "AutofillQuirks" and not "PasswordRequirements"?)
- izuchukwu 9y agoGood point, but in the photo, the expanded dictionary property in the property list is “PasswordGenerationRequirements,” so it’s most likely all of the above.
- defap 9y agoOverall the file does appear to contain various autofill quirks, but the expanded dictionary in the screenshot is literally named “PasswordGenerationRequirements”. It’s definitely about password generation rules.
- orf 9y agoInteresting, but there are only 48 sites in this list, which is really tiny. Perhaps they will continue to expand it in the future.
- osteele 9y agoSomeday maybe the web will catch up with: “Memorized secrets SHALL be at least 8 characters in length if chosen by the subscriber. Memorized secrets chosen randomly by the CSP or verifier SHALL be at least 6 characters in length and MAY be entirely numeric. […] No other complexity requirements for memorized secrets SHOULD be imposed.” — 5.1.1.1 Memorized Secret Authenticators, NIST Special Publication 800-63B: Digital Identity Guidelines Authentication and Lifecycle Management https://pages.nist.gov/sp800-63b.html https://pages.nist.gov/sp800-63b.html
- orf 9y ago> Memorized secrets chosen randomly by the CSP or verifier SHALL be at least 6 characters in length and MAY be entirely numeric. Is that really secure? I mean, 6 numbers is not exactly a very strong secret.
- Terribledactyl 9y agoIt's fine if you can invalidate the secret after some finite number of tries and block a particular actor from attacking many accounts. And there's no leaking cross sites if someone obtains and breaks the salted hash db.
- jlgaddis 9y agoIt is for something like a CAC PIN.
- jlgaddis 9y agoWorking link: https://pages.nist.gov/800-63-3/sp800-63b.html https://pages.nist.gov/800-63-3/sp800-63b.html
- scoates 9y agoapple.com: PasswordGenerationDisallowed Hmmmm.
- revelation 9y agoThey probably turned it off after an increase in support requests when people inevitably at one point don't have the "wallet" around. Of course they don't care for other sites support load enough to look at their 50 entries long list of special cases and think "are we doing this wrong".
- comex 9y agoMakes sense if you consider that the keychain is typically backed up to iCloud, under your Apple ID. So if you generate your Apple ID password through Safari and then lose your device, you’re going to have a chicken and egg problem…
- sjwright 9y agoYour Apple ID password is effectively your master password for your keychain. The whole point of a master password is for it to be stored in the brain of the end user.
- RGS1811 9y agoThe most disturbing thing about iCloud Keychain is that you can get access to all of your stored passwords just by unlocking a device linked to your Apple ID. Not just the ability to log in with them, the actual plaintext.
- falcolas 9y agoUrm, if you have the ability to log in with a password to a website, you require the plain text password. Keychain also prompts for your user password before allowing plaintext access, not just the fact you're logged in. Not sure what else is expected in this case, you'd get the same behavior from most other password managers.
- RGS1811 9y agoKeychain doesn't prompt for your user password on iOS. Just your unlock code. That's what bothers me.
- jsjohnst 9y agoDon’t use a basic unlock code then. I use an XKCD style passcode to unlock mine.
- nextstep 9y agoBut iOS won’t reveal the plaintext password from the keychain to the user (it will only autocomplete forms).
- lotsofpulp 9y agoIt will if you go to settings->accounts and passwords.
- hrktb 9y agoyou still get a password or touch if prompt before showing the passwords.
- firefoxd 9y agoWouldn't it make more sense to have this information in the website's manifest? This way we don't have to wait for a manual update and it doesn't have to be limited to Safari
- comex 9y agoIf you know what you’re doing, you shouldn’t put a maximum on the length or character set of passwords, and you should accept any password that has some reasonable amount of entropy rather than putting in arbitrary restrictions like “must have 1 number and 1 symbol”. This is for the sake of users who want to supply their own passwords, but as a side effect, it means Safari’s default password generation algorithm should work fine. If you don’t know what you’re doing, you probably wouldn’t know how to put information in a manifest anyway…
- egypturnash 9y agoIt would make sense, sure. Good luck getting every bank/utility/store/etc to update the system they set up ten years ago and haven’t updated since to broadcast that information. You’ll probably have to get a law passed. Until then, this way works.
- Antrikshy 9y agoWell, yes, but standards are kinda hard to incite.
- cal5k 9y agoSounds like we need a standard for setting standards to make this easier!
- rocqua 9y agoConsider a site that still enforces rules like: 8-12 characters, ASCII only, at least one lowecase, uppercase and number. Does that seem like the kind of site that will take action to help users with password managers? Personally, I wouldn't expect that kind of site to be quite up-to-date with the newest security practices.
- tptacek 9y agoI wonder how many sites reject random A-Z, a-z, 0-9, and -.
- saagarjha 9y agoIn my experience, the number of websites doing this has gone down significantly. Of the passwords I have, only around 2-3% are "specialty" passwords generated through Keychain Access rather than Safari.
- m3kw9 9y agoI always thought curation creates value
- mojuba 9y agoI think the Web could come up with a robots.txt-like standard where all the requirements for passwords, usernames, maybe even form field names etc. would be published in a parseable form.
- SquareWheel 9y agoThe "pattern" attribute on an <input> can do that using regex.
- Bromskloss 9y agoI like Hacker News' policy of "it's up to you to be in the know and generate your password securely". (I mean HN doesn't impose any restrictions, as I remember it.)
- nly 9y agoThis. Imposing no restrictions is generally the best option for most websites, which should focus on things like rate limiting, secure hashing, and 2FA before getting user-hostile wrt passwords.
- chrismorgan 9y agoThe HN audience is mostly not completely incompetent in password matters. But by and large, people have been trained into terrible habits concerning passwords, and they have no idea how to make a halfway decent password. I tend to think a good baseline for most sites is to use zxcvbn and reject passwords with score 0 (which means, guessing is expected to take less than 1,000 attempts). That way you’re not being particularly onerous, but you are at least blocking useless passwords. Still, there’s a space in some services for allowing no password. NewsBlur allows a zero-character password, for example, and that’s fine. I’d much prefer a thing to allow no password if possible, deny useless passwords and allow anything else (with hints about weaknesses), than have rules about character classes and mandatory inclusions.
- Bromskloss 9y agoIs there a way (for a non-MacOS user) to have a look at this database? I seem to remember that there was a website that collected password requirements, but i can't find it.
- scarlac 9y agoI don't know if this is a complete list, but a search returned this page: https://codegists.com/snippet/xml/wbsautofillquirksplist_saagarjha_xml https://codegists.com/snippet/xml/wbsautofillquirksplist_saa...
- bjornstar 9y agoThis is coming from the same company that doesn't allow you to put a space in your AppleID password? The irony is thick.
- rrdharan 9y agoI have spaces in my AppleID password. Four of them in fact.
- blattimwind 9y agoA reader's exercise: Can you determine how many bits of apparent entropy in his password rrdharan has disclosed in this post?
- rocqua 9y agoIf you presume rrdharan generated his password as a string of random alphanumeric characters and round that to there being 64 of those, he revealed $32 / n pick 4$ bits of entropy. Where $n pick 4$ is the number of combinations of length 4 drawn from n. That only works if you presume his password was generated as a string of random bits though. If the password was generated as a dice-ware password [1] with 5 characters this reveals roughly 2 bits of entropy. For we know he doesn't use -, _ or nothing as his word-separator. Those 2 bits aren't included in the calculation that states his diceware password has about 65 bits of entropy though. (5 words from a list of 8000) 65 bits feels like plenty to me. [1] http://world.std.com/~reinhold/diceware.html http://world.std.com/~reinhold/diceware.html
- bjornstar 9y agoFrom https://support.apple.com/en-us/HT201355 https://support.apple.com/en-us/HT201355 Learn more about passwords and your Apple ID When you create a new password, keep the following in mind: Your new Apple ID password must contain at least eight characters, a number, an uppercase letter, and a lowercase letter. You can't use spaces, the same character three times in a row, your Apple ID, or a password you've used in the last year. Learn more about password requirements and how to keep your Apple ID secure. FaceTime is not available in all countries or regions. Published Date: Oct 20, 2017
- barneybooroo 9y agoAll this time I thought they were using an amazing heuristic to infer password requirements from the page
- blattimwind 9y agoThis looks to me like something you could (literally) throw up on Github as a JSON file, so that it's easily updated by people and usable to other applications.
- draw_down 9y agoPlists are more or less just fancy JSON files, so, sure.
- andy_ppp 9y agoWhat is the desired requirements for passwords these days then? No passwords just a magic link or some open but difficult to hack standard (12+ characters?). I’ve always liked the idea of using a predefined sentence structure and having lots of choices to increase entropy, e.g. The magic butterfly flapped faithfully. Article adjective noun verb adverb. No one does this of course.
- chrismorgan 9y agoIn Topicbox, we use emailed codes/magic links by default, but you can set a password and use that if you prefer (and if you want 2FA, you must use a password). We then use zxcvbn for password strength detection, denying weak passwords (those where it is estimated to take less than 10⁶ attempts to guess). I believe this is working well for us. In FastMail, it’s much the same but without emailed codes as an option, because it is your email account that you’re trying to log in to. I think we support almost arbitrary lengths and arbitrary Unicode in both now. (And note that due to how the fancier password hashing algorithms like bcrypt work, supporting beyond ~72 characters without loss of entropy actually tends to take deliberate design; and if you get it wrong, it can be a DoS vector—Django had such a problem a few years back, where you could feed it a 1MB password and keep it occupied hashing it for ages.) I have wondered before how secure a single astral plane Unicode code point would be as a password. I haven’t investigated the question at all.
- andy_ppp 9y agoThis is excellent advice and zxcvbn [1] looks awesome. [1] https://github.com/dropbox/zxcvbn https://github.com/dropbox/zxcvbn
- citrusui 9y agoAlternate link if Twitter is blocked behind your corp firewall, etc: https://archive.is/Uzssa https://archive.is/Uzssa
- baddox 9y agoI wonder who has the best-maintained list of these password requirements for popular websites. Probably some group that does black-hat brute forcing of passwords.
- kaunglay 9y agokaung lay