You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's not a critical vulnerability, but I think it should be addressed to tighten the authentication process.
Simple Reproduction Steps
I'll use Fizzy's seed data as an example:
david@37signals.com signs-in, has a screen to write the code (and an email is sent).
jason@37signals.com signs-in, has a screen to write the code. If jason@37signals.com writes david@37signals.com's code (for whatever security breach), he's signed-in as david@37signals.com as a result.
The Riskier Scenarios
This vulnerability can allow phishing attacks - as we usually see in the realm of two-factor auth ("You got a code in your email, can you send it over?").
Not very critical - but should be addressed, IMO.
The Fix
Ensuring that the user who requests a magic link is the only one who can use it to sign-in with a session based check session[:pending_auth_email].
Hey @udiudi, I ported your PR over to our repo and added you as the co-author.
You can check the PR out here.
If you are ok with this, and the PR looks good let me know and I'll merge it.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
It's not a critical vulnerability, but I think it should be addressed to tighten the authentication process.
Simple Reproduction Steps
I'll use Fizzy's seed data as an example:
david@37signals.comsigns-in, has a screen to write the code (and an email is sent).jason@37signals.comsigns-in, has a screen to write the code. Ifjason@37signals.comwritesdavid@37signals.com's code (for whatever security breach), he's signed-in asdavid@37signals.comas a result.The Riskier Scenarios
This vulnerability can allow phishing attacks - as we usually see in the realm of two-factor auth ("You got a code in your email, can you send it over?").
Not very critical - but should be addressed, IMO.
The Fix
Ensuring that the user who requests a magic link is the only one who can use it to sign-in with a session based check
session[:pending_auth_email].Proposed PR here
All reactions