Cloudflare captcha infinite loop

Description of the issue:

When accessing sites that have subscribed to CF’s challenge captcha Brave gets stuck in an infinite loop. Clicking the checkbox for “are you a human” results in the icon spinning for a few seconds followed by the same prompt.

How can this issue be reproduced?

  1. Unknown. When the issue occurs it prevents access to any and all websites that use CF’s captcha, but the root cause is unknown.

Expected result:

The challenge prompt should work, or not appear at all.

Brave Version( check About Brave):

Brave 1.91.180 (Official Build) (64-bit)

Additional Information:

Internet searches for infinite Cloudflare captcha loops indicated that inaccurate system clock can cause it, but mine was perfectly accurate.

F12 console log:

GET https://2captcha.com/demo/cloudflare-turnstile-challenge 403 (Forbidden)
normal?lang=auto:1 Request for the Private Access Token challenge.
normal?lang=auto:1  GET https://brunhild.challenges.cloudflare.com/cdn-cgi/challenge-platform/h/g/i/a14a9bd9df54387b/VyEtUFKTvCUkAUsKDVjZBeHY8IF9f5yZYCyK0ybDNEM-1782963414-1.2.1.1-XIh1ejZf2pfhRJbPg_ckDqTDyjN_esG7oguV6IyHxoV0guhm9xg5te9DSxY3LPT6 net::ERR_NAME_NOT_RESOLVED

I thought the issue was ERR_NAME_NOT_RESOLVED which implies that something is wrong with DNS.

Tried changing Brave’s DNS settings (which I had not messed with in months) to use the OS, use 1.1.1.1, use Google, and even disabled secure DNS. I did all of these in an incognito window with no extensions and with Brave shields disabled. No effect.

Checked in Firefox. Firefox worked fine.

Tried clearing all cache and cookies. No dice.

I tried resetting Brave back to defaults which did nothing. I installed Brave as a flatpak. The flatpak worked fine.

It was not my PC, router, or ISP. It was Brave; specifically it was the installation I had from my package manager. I reverted to the prior version with sudo dnf downgrade brave-browser. Same problem. I removed and re-installed with the package manager. Same problem!

At this point I started digging and found that a bunch of files are left behind when removing the package from the system. Mostly in ~/.cache/ and ~/.config/. I was going to just rm the leftover files but I had a thought that if the problem persists while these files persist, then maybe the problem is one of these files.

Through the process of elimination (deleting files with Brave closed, checking, then restoring them from a copy) I found the culprit: ~/.config/BraveSoftware/Brave-Browser/Local\ State. Deleting this Local State file (with Brave closed) solved the problem.

AFAICT the Local State file holds browser settings. I consider this a bug because I cannot see how any change made to the browser’s settings could break CF’s captcha challenge. Hopefully those with more knowledge can weigh in.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.