opencrvs / opencrvs-core

A global solution to civil registration
https://www.opencrvs.org
Other
79 stars 58 forks source link

Authentication service provides 2FA email unmasked back to the client after validating credentials #7238

Open rikukissa opened 4 days ago

rikukissa commented 4 days ago

Description

Problem: we mask the user's 2FA email address in login so that a potential attacker wouldn't know to which email the code was sent in the case of logging in with stolen credentials. This is nullified however by the fact that the masking is done client side. The attacker can easily get the information from the DevTools. As such, this is a minor security issue.

Image