Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloudflare Turnstile fails (true domain leaked?) ("Verifying you are human" page) #121

Open
itschasa opened this issue Mar 20, 2024 · 9 comments

Comments

@itschasa
Copy link

will always get stuck on this page:

image

the captcha doesnt load, if anyone has any other results, please share.

@Percslol
Copy link
Collaborator

known bug, will keep this issue open for discussion and possible fixes

@itschasa
Copy link
Author

seems like turnstile still works whilst inside an iframe, so this could be a fixable issue, however, is likely to be a cat and mouse game with captcha providers

image

@madeline-yana
Copy link

I think this is an issue if you are deploying via a known big server provider (e.g. if the provider uses Hetzner), Cloudflare probably just blocks the IPs.

@itschasa
Copy link
Author

i see this in console when a captcha is attempted:
[Cloudflare Turnstile] Ignored message from wrong origin: https://*site with captcha*.
image

maybe turnstile is getting the actual domain of the proxy, and using that to check Message events follow the corrent origin as part of a check? (or just because it uses postMessage to do the challenge)

this might be solvable, if we can find how turnstile is getting the true domain of the proxy

@itschasa itschasa changed the title Cloudflare Turnstile will not pass when using UV ("Verifying you are human" page) Cloudflare Turnstile fails (true domain leaked?) ("Verifying you are human" page) Apr 25, 2024
@Percslol
Copy link
Collaborator

i see this in console when a captcha is attempted: [Cloudflare Turnstile] Ignored message from wrong origin: https://*site with captcha*. image

maybe turnstile is getting the actual domain of the proxy, and using that to check Message events follow the corrent origin as part of a check? (or just because it uses postMessage to do the challenge)

this might be solvable, if we can find how turnstile is getting the true domain of the proxy

yeah i just checked this, seems to be reproducible

fixing this might also solve #128

@Percslol
Copy link
Collaborator

yeah the iframe is sending the wrong location in the post message

image

@Percslol
Copy link
Collaborator

image

@itschasa
Copy link
Author

yeah the iframe is sending the wrong location in the post message

image

would this be due to a bad rewrite of the captcha's js? they are heavily obfuscated so it'd make sense

@itschasa
Copy link
Author

itschasa commented May 7, 2024

overriding the origin might need to be changed

overrideMessageOrigin() {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants