Ultraviolet icon indicating copy to clipboard operation
Ultraviolet copied to clipboard

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

Open itschasa opened this issue 11 months ago • 9 comments

will always get stuck on this page:

image

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

itschasa avatar Mar 20 '24 20:03 itschasa

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

Percslol avatar Apr 20 '24 00:04 Percslol

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

itschasa avatar Apr 20 '24 21:04 itschasa

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.

madeline-yana avatar Apr 25 '24 15:04 madeline-yana

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 avatar Apr 25 '24 15:04 itschasa

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 avatar Apr 26 '24 00:04 Percslol

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

image

Percslol avatar Apr 26 '24 00:04 Percslol

image

Percslol avatar Apr 26 '24 00:04 Percslol

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 avatar Apr 27 '24 23:04 itschasa

overriding the origin might need to be changed

https://github.com/titaniumnetwork-dev/Ultraviolet/blob/1d38959da170abb1c195187100aef5134967e023/src/client/message.js#L105

itschasa avatar May 07 '24 06:05 itschasa