The Authentication Flow Was Secure. I Just Had to Look Deeper.
I’ve been stuck on this target for months. Then I found something I didn’t expect. This is a well-known company with a pretty solid authentication system. I initially focused on the obvious attack surface: the OTP verification itself. When logging in with an email, the application sends an OTP to the user's email. Brute-forcing the OTP doesn't seem practical because the verification endpoint is properly rate-limited. After a few invalid attempts, the ss-token gets rate-limited and you have to wait. So I stopped looking at the OTP endpoint. I went one step backwards. The first step of the flow is simply submitting the email address. The server responds with an ss-token. That token is then
…