Use session-based approach for viewing recovery codes? #228
jeremyevans
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Rodauth's current implementation for viewing recovery codes works as follows:
This approach was reported to me as a security issue a while back. However, I'm not sure whether this is an actual security issue worth fixing, and would like input from the community. I probably should have asked for input back when I received the disclosure, but better late than never.
Here's an edited version of the disclosure I received:
Here was the proposed patch:
I had forgotten about this, until I was going through old email looking for something else. However, I think it's worth discussing whether this is a security issue at all, and if so, whether it is worth fixing. The attack vector seems to be that:
I'm not sure how step 4 is accomplished, and why switching to a session-based approach would prevent it. Does anyone have more information in this area? I'm open to switching to a session-based approach if that's what users would prefer, but don't want to make changes if this is really a false alarm.
Beta Was this translation helpful? Give feedback.
All reactions