MojoAuth (@MojoAuth) header
MojoAuth (@MojoAuth) profile picture

Your reliable & simplified #passwordless solution provider. Prevent #credentialstuffing & password attacks. Give your users the best login experience

Joined February 2021
Photo by MojoAuth (@MojoAuth)Photo by MojoAuth (@MojoAuth)Photo by MojoAuth (@MojoAuth)Photo by MojoAuth (@MojoAuth)Photo by MojoAuth (@MojoAuth)Photo by MojoAuth (@MojoAuth)Photo by MojoAuth (@MojoAuth)Photo by MojoAuth (@MojoAuth)Photo by MojoAuth (@MojoAuth)Photo by MojoAuth (@MojoAuth)
⚙️ MojoAuth = 1 API for Email, SMS, WhatsApp & Authenticator OTPs. ⏱ Integrate in hours, not months. 🌍 Global delivery <3s. 👉 Build faster: mojoauth.com #OTP #Security #SaaS
1
3
221
"No account with that email." Your login error is a user lookup API for attackers. Same message, same status, same response time, account or not. Does yours leak? #security #appsec
1
11
OWASP's Authentication Cheat Sheet: return a generic message like "Invalid username or password" whether or not the account exists, and keep the response time the same, for example by running the password hash even when there's no user. Check password reset and sign-up too
1
User clicks Log out. The app deletes the token from the browser. The server still accepts it for 59 more minutes. What should logout have done on the server? #security #jwt
1
22
A rate limit and a lockout. A 6-digit code has 1,000,000 options, and many servers accept 2–3 codes at a time for clock drift, so unlimited guesses get through fast. Also reject a code that was already used.
7
A silent number check, part by part: the operator's token, tied to the line the number the user typed (or a hash) back: one boolean No name, no location. #identity #api
14
This login checks the password correctly and still hands the user's session to an attacker. What should happen to the session ID first? Answer in the next image. #websecurity #nodejs
39
Silent auth's villain isn't old phones. It's Wi-Fi. Route before you call: no mobile data path, straight to the fallback. #mobile #authentication
14
Scenario. SMS code: 6 taps and a wait. Silent check over mobile data: 0 taps. On Wi-Fi, the silent lane becomes the SMS lane. Where do your users lose time? #ux #mobile
19
Limit: 100 logins/min. 100 at 0:59. Window resets. 100 more at 1:00. 200 in 2 seconds, all allowed. How do you rate-limit login? #security #api
13
Fine at 10 logins/s, broken at 10,000: → sessions in the main DB → fixed-window rate limits → JWKS fetched per verify → instant retries → scaling on CPU What would you add? #systemdesign #sre
14
Myth: a code sent over WhatsApp can't be phished. Encrypted channel, human reader. A fake page asks, the user types it. NIST SP 800-63B-4: OTP and out-of-band codes are not phishing-resistant. #security #passkeys
19
Scenario: user taps Resend twice. Two texts arrive, out of order. They type the first one. Your backend only keeps the newest code. Do they get in? #ux #backend
12
verifySignature(doc) passes. Then: xpath(doc, "//saml:Attribute[@Name='email']")[0] The signature is valid. The email may not be. Where can it come from? Answer in the next image. #saml #security
1
19
From anywhere. //saml:Attribute searches the whole XML, not just the signed part. An attacker can wrap a signed assertion and add their own unsigned one (XML signature wrapping). Read values only from the element the signature covers, and use a well-tested SAML library.
10
Everything cached at deploy. Everything with a 300 s TTL. Five minutes later, every key misses in the same second and the database takes all of it. How do you stop a cache stampede? #caching #redis
1
16
Add random jitter to TTLs so keys don't expire together. Let one request refill a key while the others wait or get the old value (request coalescing, stale-while-revalidate). Refresh hot keys before they expire.
7
The fallback ladder: 1. Silent check: 0 taps, mobile data only 2. WhatsApp code: needs the app 3. SMS code: every phone, pumping risk 4. Email code: no phone at all Which rung does your login start on? #authentication #otp
1
30
Myth: silent network auth stops SIM swap. Fact: after a swap, the attacker's SIM holds the number. The check returns true, correctly. Ask the SIM Swap API separately. #identity #security
1
24
What to do with it: call SIM Swap before high-risk actions (recovery, payee changes, new device), not only at signup. If swapped is true inside your window, step up with something the attacker didn't get with the number, like a passkey.
6