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
jwt.verify(token, publicKey) checks the signature. Not the algorithm, not the issuer, not the audience. Pin algorithms: ["RS256"]. Check iss and aud. Does your verify call? #jwt #security
14
"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
18
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 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
40
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
Replying to @MojoAuth @name
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
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
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
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
A perfect copy of your login page asks for the second factor. A) SMS code B) Authenticator app code C) Push approval D) Passkey Which one can't be relayed in real time? #mfa #passkeys
1
23