News for hackers. Stuff that matters.
Re:hCaptcha now runs on fifteen percent of the internet by jsnell on Wednesday November 25, 2020 @03:12PM (#25213741)
There's a good reason for what you're identifying as misuse.

If you show a captcha after a failed password, you need to show a one after a correct password as well. Otherwise you leak information. You can have other solutions, e.g. in a login flow that splits the username and password entry, it's advantageous to put the captcha between those two steps. But even in those solutions the display of the captcha must be independent of password correctness.

Re:hCaptcha now runs on fifteen percent of the internet by aftbit on Wednesday November 25, 2020 @03:24PM (#25213872)
There's a lot of arguments against captchas, but I do not agree with this one. You will always leak whether or not a password is correct based on how your app behaves - a correct password will grant entry to the application. If you only ask for a captcha when a user account exists but fail to ask if they use a made up username, that's an information leak.
Re:hCaptcha now runs on fifteen percent of the internet by 3np on Wednesday November 25, 2020 @07:11PM (#25215699)
The trick is to ask for captcha before validation.
Re:hCaptcha now runs on fifteen percent of the internet by renewiltord on Wednesday November 25, 2020 @03:37PM (#25214027)
> If you show a captcha after a failed password, you need to show a one after a correct password as well. Otherwise you leak information.

Presumably, if the person has entered the right username and password they're going to get access to the service at which point they'll know they entered the right one. What information exactly is leaked here?

Re:hCaptcha now runs on fifteen percent of the internet by jsnell on Wednesday November 25, 2020 @03:48PM (#25214146)
The reason you'd want a captcha on a login page is to protect against brute-forcing of some sort. For example credential stuffing or a dictionary attack.

The information the attacker is looking for is the validity of the password. If you want to use a captcha to protect against this, the outcome must be the same whether the password is valid or not. Because if you only show the captcha for failed logins, the attacker can find out that the password was incorrect without solving a captctha, which by symmetry means they can also find out if it's correct without solving one.

Re:hCaptcha now runs on fifteen percent of the internet by renewiltord on Wednesday November 25, 2020 @03:55PM (#25214194)
Usually when you Captcha on a failed attempt, you captcha every request from that IP (or other session identifier) for a period of time. Try Google Accounts for instance. They behave this way.

You don't captcha the success path because you don't need it. You captcha the pre-login flow once you have a failed attempt. It's a trip switch that is a prelude to the flow.

Re:hCaptcha now runs on fifteen percent of the internet by jsnell on Wednesday November 25, 2020 @04:16PM (#25214397)
But this entire thread is about a case where the captcha happens after password entry!

The point is that it is an entirely legit design, and kind of is the way you have to go when the username and password are entered together. As long as the captcha is shown regardless of the password validity, both the security properties and the amount of user annoyance due to having to solve unnecessary captchas is the same as if you had had to pass a captcha up front.

The example of Google Accounts is interesting, because they use split username and password entries. So there is indeed a natural point in the flow to show the captcha between the username and the password, which is what they do. But at least up to a year ago they were doing it after the password. So enter username + submit, enter password + submit, and if the login attempt was sufficiently dodgy get shown a captcha regardless of the validity of the password.

Re:hCaptcha now runs on fifteen percent of the internet by renewiltord on Wednesday November 25, 2020 @05:04PM (#25214801)
Sorry, because of how common the method I described is and how absurd the idea of showing a captcha only to give you a login failed message is, I "corrected" it before responding.
Re:hCaptcha now runs on fifteen percent of the internet by cortesoft on Wednesday November 25, 2020 @09:05PM (#25216226)
You use rate limiting to stop brute force attacks, not a captcha
Re:hCaptcha now runs on fifteen percent of the internet by aleph1 on Wednesday November 25, 2020 @03:20PM (#25213825)
That's not what's happening:

> An incorrect login says so without presenting a captcha.

Re:hCaptcha now runs on fifteen percent of the internet by jsnell on Wednesday November 25, 2020 @03:21PM (#25213840)
Thanks, I misread. Then that indeed makes no sense!