News for hackers. Stuff that matters.
Re:The “security.txt” proposal reached last step in the IETF... by tareqak on Wednesday December 11, 2019 @04:32PM (#21767009)
I think it is great that this proposal is almost done getting through the process.

I also think there should be a similar file for the regular expression that expresses a site’s allowable passwords.

Re:The “security.txt” proposal reached last step in the IETF... by Someone1234 on Wednesday December 11, 2019 @04:37PM (#21767042)
If you had a machine readable definition for what is allowed within a password, wouldn't it make more sense to put that close to the password entry itself (e.g. on the input element/page)?

Having a site-wide definition seems like it would require a lot of mechanics to target specifc pages or properties that may have different rules (e.g. consumer Vs. corporate logins).

I still hope companies start following NIST guidelines and stop having password rules entirely.

Re:The “security.txt” proposal reached last step in the IETF... by lilyball on Wednesday December 11, 2019 @05:30PM (#21767478)
The input tag already has a 'pattern' attribute that is a regex that the input must match to be valid.
Re:The “security.txt” proposal reached last step in the IETF... by mjevans on Wednesday December 11, 2019 @04:40PM (#21767068)
I like the idea of a tiered approach so that this could be bolted on to legacy systems where necessary.

Website wide obviously being over-ruled by local over-rides.

Re:The “security.txt” proposal reached last step in the IETF... by mtmail on Wednesday December 11, 2019 @05:31PM (#21767493)
There's a similar proposal to allow password manager to change passwords. https://mikewest.github.io/change-password/ (https://www.kryogenix.org/days/2017/02/24/a-standard-passwor...)
Re:The “security.txt” proposal reached last step in the IETF... by prophesi on Wednesday December 11, 2019 @07:16PM (#21768205)
I was about to post that. I really hope this proposal goes through. It's still difficult to keep up with password rotation.
Re:The “security.txt” proposal reached last step in the IETF... by Avamander on Wednesday December 11, 2019 @11:17PM (#21769227)
Where is the proposal being discussed more actively? Some mailing list?
Re:The “security.txt” proposal reached last step in the IETF... by ibly31 on Wednesday December 11, 2019 @05:13PM (#21767339)
Wouldn't this just make password crackers easier? If there's a Regex of what passwords are okay, it lowers the search space.

To save (potentially rate limited) requests, the ripper software could compare the regex against a candidate password and skip it altogether.

It's like expressing in machine-readable form how many/which characters they can skip.

Re:The “security.txt” proposal reached last step in the IETF... by Johnny555 on Wednesday December 11, 2019 @06:25PM (#21767875)
Wouldn't this just make password crackers easier? If there's a Regex of what passwords are okay, it lowers the search space.

If knowing the rules for acceptable passwords makes it significantly easier to brute force passwords, that sounds like more of an argument to not have those rules in the first place since it wouldn't take an attacker long to figure them out himself even if they aren't published. Hiding the password policy is a very weak form of security through obscurity.

I guess it would make it easier to programmatically determine which websites have insecure passoword policies (like an alphanumeric passsword no more than 8 characters long), but the problem here is the password policy, not publishing the rules.

Even the NIST recommends that sites stop requiring these arbitrary password rules as they don't actually improve password security: https://www.alvaka.net/new-password-guidelines-us-federal-go...

Re:The “security.txt” proposal reached last step in the IETF... by Quekid5 on Wednesday December 11, 2019 @07:41PM (#21768333)
You're probably right theoretically, but people tend to choose really weak password if they can choose anything.

Maybe passwords should always just be auto-generated and people should be told to write them down in a... actually, nevermind that. Passwords should be a thing that's integrated in your browser/computer experience... this is something that can and should be handled by computers. You should only ever have to log into your computer and be secure from then on.

This whole insanity of point-to-point invention of secrets needs to die.

Re:The “security.txt” proposal reached last step in the IETF... by ethbro on Wednesday December 11, 2019 @07:52PM (#21768387)
> Passwords should be a thing that's integrated in your browser/computer experience... this is something that can and should be handled by computers.

I had this crazy idea, whereby computers could themselves come up with very long, random sequences of bits.

They would then use these openers (couldn't think of a better word) to authenticate to each other, secured by mathematical operations, in place of passwords.

Sadly, I've never seen it used on websites, so it must not be a good idea. /s

Re:The “security.txt” proposal reached last step in the IETF... by HorstG on Thursday December 12, 2019 @05:41AM (#21770826)
Certificate auth for http with TLS and Kerberos auth for http is specified, supported by all (major desktop) browsers.

However: The UX on the browser side is shitty as hell. Certificates display weird nagscreens, without being able to specify proper defaults like "use this cert for that site and don't bother me again". Certificate enrollment has been broken (not that the form element was ever great) by all major browsers, to be replaced by "do something in Javascript maybe, if we get around to implementing a new API some time". Oh, and no logout...

Kerberos needs a parameter at browser start or an about:config setting, is incompatible with using multiple TGTs let alone automatically selecting the right one or gasp getting a new TGT for the user from the proper KDC. The only thing that kinda works mostly is using the standard company login TGT. Oh, and logging out doesn't work...

Oh, and of course most mobile systems are broken or just unsupported.

The sorry state of browser auth is 100% on browser vendors dragging their feet on those problems that have been known for around 20 years or so. And no, webauth won't save us, it'll just be another shitshow most likely.

Re:The “security.txt” proposal reached last step in the IETF... by ethbro on Thursday December 12, 2019 @08:13AM (#21771533)
This is the reply I was honestly hoping to get.

I always felt like one of the UX blockers for key exchange was the assumption that people couldn't be expected to learn the basics, because it's too complicated.

And every attempt to ignore or hide it has just made the entire thing more complicated or confusing.

You can shoot yourself in the foot with a gun or crash your car into a wall, and yet most people manage not to do so on a daily basis.

Sometimes simplicity is a false virtue.

Re:The “security.txt” proposal reached last step in the IETF... by Quekid5 on Wednesday December 11, 2019 @08:01PM (#21768427)
I mean... it's probably beyond the imagination of man since it clearly hasn't been invented at this point.
Re:The “security.txt” proposal reached last step in the IETF... by squiggleblaz on Thursday December 12, 2019 @05:49AM (#21770847)
I guess that's the argument for diversity in tech.
Re:The “security.txt” proposal reached last step in the IETF... by ethbro on Thursday December 12, 2019 @08:15AM (#21771538)
... Dinosaur eats man. Woman inherits cryptography.
Re:The “security.txt” proposal reached last step in the IETF... by lmm on Thursday December 12, 2019 @02:03AM (#21769870)
> You're probably right theoretically, but people tend to choose really weak password if they can choose anything.

Not in my experience. If I can choose anything I'll write a decent-length phrase. If I'm forced to use numbers and symbols I'll make the shortest thing I can.

Certainly there's no reason to reject a 20+ letter all-lowercase password. Apply your capital/number/symbol rules to passwords shorter than 16 characters if you must.

Re:The “security.txt” proposal reached last step in the IETF... by Quekid5 on Friday December 20, 2019 @07:09PM (#21848551)
This is a really old-timey snipe, but...

You are not a typical computer user. The typical computer user is Karen from accounting, and Bob from HR.

Re:The “security.txt” proposal reached last step in the IETF... by hwbehrens on Wednesday December 11, 2019 @05:32PM (#21767500)
I would say in general, no. For a long time, American Express had something along the lines of `^[A-z0-9]{6,8}$`. Given a candidate string, evaluating even this extremely basic regex will take more time than comparing it against a hash table. I suppose you could flip it around and use it as a generator for an arbitrary dictionary, but then you'll run into memory limitations first.

Plus, there's always the fact that an adversary can just, you know, go find the password requirements on the website and generate a matching regex themselves.

Of course, if the regex is something like `^password$`...

Re:The “security.txt” proposal reached last step in the IETF... by Beldin on Wednesday December 11, 2019 @05:56PM (#21767674)
If you have the regex, you'd use it to generate candidate strings. Then, of course you don't have to check any more.

For a more complex regex, you could resort to a simplified version (eg, with larger search space). But the space of all random strings is way too huge to just generate random bitstrings and hope they match the regex.

Re:The “security.txt” proposal reached last step in the IETF... by thaumasiotes on Wednesday December 11, 2019 @07:59PM (#21768419)
> Wouldn't this just make password crackers easier? If there's a Regex of what passwords are okay, it lowers the search space.

In practice, this shouldn't make things easier for password crackers, because trying to crack a password by enumerating the password space is not a normal approach. (Except for rainbow tables.)

What you'd expect a password cracker to do is construct passwords according to a model of what kinds of passwords humans actually create (regardless of the formal password requirements), and guess those. You're not trying to make sure you've covered everything -- you're just trying to make high-probability guesses before you start making low-probability guesses.

Re:The “security.txt” proposal reached last step in the IETF... by sowbug on Thursday December 12, 2019 @09:53AM (#21772265)
This isn't such a bad thing. If this standard were ubiquitous, Troy Hunt could maintain a top-1000 list of easiest-to-brute-force websites according to their password-requirement declarations. One might present one's own top ranking to one's CTO to help start a conversation about eliminating voodoo security practices.

Hopefully the Top-1000 page would include an intro why the list should be empty.

Re:The “security.txt” proposal reached last step in the IETF... by leetcrew on Wednesday December 11, 2019 @08:31PM (#21768563)
for most public websites, you can reverse engineer the rules pretty easily by trying to create accounts. this can be automated pretty easily.

in any case, the only reasonable rules for passwords are probably a length requirement and possibly requiring numbers and/or symbols. knowing that a password must be at least 8 chars and include at least one number and a symbol does not reduce the search space by much.

Re:The “security.txt” proposal reached last step in the IETF... by Dylan16807 on Thursday December 12, 2019 @05:03AM (#21770670)
Any half competent brute force is going to do the simpler patterns first anyway. Knowing the exact set of special characters allowed won't make it significantly faster.

It's a lot like telling someone the exact length of your password. Okay, by knowing that it's 11 characters they can skip testing 1-10... but that only lets them skip 2% of the calculations.

Re:The “security.txt” proposal reached last step in the IETF... by boatswain on Thursday December 12, 2019 @04:29PM (#21776713)
I don't really think that would save crackers must time compared with a signing up manually to find the password requirements.
Re:The “security.txt” proposal reached last step in the IETF... by edent on Thursday December 12, 2019 @05:31AM (#21770801)
There doesn't need to be a file. The HTML5 specification allows the password input to include a validation regex.

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/in...

Re:The “security.txt” proposal reached last step in the IETF... by linsomniac on Wednesday December 11, 2019 @04:39PM (#21767059)
I love this idea, though I'm not sure I want my password manager executing arbitrary regexes it finds on the Internet.
Re:The “security.txt” proposal reached last step in the IETF... by saagarjha on Wednesday December 11, 2019 @04:56PM (#21767190)
If you restrict it to “formal” regular expressions you’ll stay out of “arbitrary code executing on a Turing machine”.
Re:The “security.txt” proposal reached last step in the IETF... by wahern on Wednesday December 11, 2019 @05:12PM (#21767329)
Regular expression engines are notoriously buggy. You definitely wouldn't want to pass random expressions to libpcre.

Web browsers are already running random expressions from the internet, but their regex implementations have proven the rule by being fodder from exploit writers. In any event, requiring a password manager to pull the engine from Firefox or Chrome wouldn't be cool. They're more likely to use libpcre or re2, but see above.

The NAPTR DNS record type uses regular expressions for domain rewriting: https://en.wikipedia.org/wiki/NAPTR_record Not many DNS libraries support that record type as it adds alot of problematic bloat.

Re:The “security.txt” proposal reached last step in the IETF... by saagarjha on Wednesday December 11, 2019 @05:18PM (#21767374)
libpcre is exactly the implementation I’m not talking about, because it supports too much. I think re2 doesn’t do backtracking, so it’s probably a better choice.
Re:The “security.txt” proposal reached last step in the IETF... by wahern on Wednesday December 11, 2019 @05:25PM (#21767434)
You can still easily blow up memory with unions, which makes it easy to lock up Linux, which notoriously performs poorly under memory pressure.
Re:The “security.txt” proposal reached last step in the IETF... by lilyball on Wednesday December 11, 2019 @05:45PM (#21767606)
A non-backtracking regex engine like re2 should be linear with respect to the regex size and can be configured with a memory budget.
Re:The “security.txt” proposal reached last step in the IETF... by wahern on Wednesday December 11, 2019 @06:01PM (#21767708)
The number of DFA states can explode exponentially. It's a real problem, especially if you're compiling untrusted expressions off the internet.

Evaluation is linear, but you're just evaluating your own password. In this scenario, it may make sense to just use a simple backtracking implementation, though as you alluded to early there aren't many simple ones around.

Re:The “security.txt” proposal reached last step in the IETF... by pjscott on Thursday December 12, 2019 @01:19AM (#21769687)
RE2, at least, will fall back to an NFA-based matcher if things get too pathological.
Re:The “security.txt” proposal reached last step in the IETF... by saagarjha on Wednesday December 11, 2019 @05:41PM (#21767568)
Just set a memory limit on the process.
Re:The “security.txt” proposal reached last step in the IETF... by daxelrod on Wednesday December 11, 2019 @07:20PM (#21768224)
Counterpoint: if you allow your browser to run JavaScript, it’s already executing arbitrary regexes it finds on the Internet.
Re:The “security.txt” proposal reached last step in the IETF... by closeparen on Wednesday December 11, 2019 @07:30PM (#21768273)
The browser is, the passwords manager is on the other end of an IPC mechanism with a hopefully small and well-defined interface.
Re:The “security.txt” proposal reached last step in the IETF... by daxelrod on Saturday December 14, 2019 @10:25AM (#21789905)
My point is that it is possible for your password manager to sandbox regex execution at least as well as your browser does.

I totally agree with your concerns about scope creep increasing the attack surface.

Re:The “security.txt” proposal reached last step in the IETF... by ben509 on Thursday December 12, 2019 @07:38AM (#21771324)
But it's not executing a match, it's creating a random password picker. That's exactly equivalent to parsing the pattern where the actions on terminals are to generate random characters.
Re:The “security.txt” proposal reached last step in the IETF... by packet_nerd on Wednesday December 11, 2019 @09:31PM (#21768800)
> I also think there should be a similar file for the regular expression that expresses a site’s allowable passwords.

I disagree. Password "complexity" requirements need to die and instead every site's password regex should be `.{12,64}` and then verify it's not in the dictionary or a list of leaked passwords.

Re:The “security.txt” proposal reached last step in the IETF... by all_blue_chucks on Wednesday December 11, 2019 @11:15PM (#21769217)
The current thinking among the security community is that sites should allow all passwords that aren't found on a wordlist, so that would be one hell of a regex.