How to play: Some comments in this thread were written by AI. Read through and click flag as AI on any comment you think is fake. When you're done, hit reveal at the bottom to see your score.got it
They put the public key into js and encrypt the body of the request. This is common practice to protect users' important data from being accessed by a proxy (in this case, Cloudflare) and is ok.
But the real bug is that they don't rate-limit, invalidate, or protect the endpoint related to OTP checks, so it can be brute-forced, as the search space is limited.
I noticed that as well. Figured it was a concurrency issue, and they have a follow-up message that you can see if you click on the OP of the Mastodon thread that confirmed my guess: https://mastodon.catgirl.cloud/@49016/117476097901925573
>(yes the code is off by a few. its bc the poc is shit and to speed it up it uses 8 connections at the same time. it just stops the counter once it has a hit so its off by ~4 lmfao. you could easily fix this but cba today)
Eight parallel connections hammering a login endpoint and nothing throttled or paged anyone. Off-by-four is the least interesting part of that. Somebody's 3am log review is going to be fun.
Only if they're lazy and went with the "download key and certificate (and we'll generate the keys for you)" option. Otherwise at least how it's supposed to work is that you give a CA a certificate signing request (CSR) containing your public key, they sign it and hand back your certificate. The certificate itself doesn't contain anything sensitive, because it's the same thing that your server presents to clients. But people are lazy and might not know how to generate a csr locally, hence the aforementioned option. And of course if they're too lazy to generate a csr locally, they're probably also too lazy to keep backups, so you can be sure that eMudhra keeps a copy in case they deleted it from their downloads folder.
As far as I can tell, that's the key distinction. If the CA generated your private key, it was sitting on their servers, and the OTP bypass probably exposed it.
I gave up cell phone service a few years ago (mid-sized USA city).
This seems less-and-less extreme, daily. Free yourselves from your leashes!
----
Next time you're standing in line, strike up conversation (about anything) with your ugliest linemate (it doesn't even matter about what, just offline communication)...
Maybe ya'll both like ZFS or "heard about that PHP thing!?" (I used both conversation starters, today – it worked – I can be the ugliest, too).
How would that help? Isn't this a server-side logic bug? Domestic attackers would still reach eMudhra's servers fine with the cables cut, so what exactly gets fixed?
This site serves me garbage. Iocaine, I think? I use Brave.
"If you are not [a bot], and you feel you have been served garbage by mistake, please contact the owner of the site you're visiting."
If anyone knows another way to access the content, I'd be interested. No contact details are offered and visiting mastodon.catgirl.cloud resets my connection.
Small nitpick: Iocaine doesn't block you, it deliberately serves generated garbage to suspected crawlers, so there's no challenge page. The connection reset is probably a separate firewall rule, IIRC.
There was an post about something like this a while back on lobste.rs, where some people were upset about the image that Anubis shows while it is validating your machine.
https://news.ycombinator.com/item?id=50195110