Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bypass 2FA/MFA with auth_admin_passkey #526

Closed
codeagencybe opened this issue Jun 20, 2023 · 3 comments
Closed

bypass 2FA/MFA with auth_admin_passkey #526

codeagencybe opened this issue Jun 20, 2023 · 3 comments
Labels
bug stale PR/Issue without recent activity, it'll be soon closed automatically.

Comments

@codeagencybe
Copy link
Member

Module

16.0/auth_admin_passkey

Describe the bug

Not sure if it's a bug or just "forgotten" but the bypass is not working if the user has 2FA/MFA enabled.

We use this module to help troubleshooting specific user issues with the best user and security experience for our client, since they don't have to share any login credentials in an insecure way.
We can just take their email/login and the auth_admin_passkey and we can get in to provide the requested support.
Or we can use it to verify any issues after upgrading modules etc...
Unless...they have 2FA/MFA enabled which also requires to enter the MFA token.

We would like to bypass this also so we don't have to ask for that MFA token. Especially when we are doing scheduled maintenance and upgrades after office times, if something breaks or we need to check, we can't since we don't have that MFA token.

To Reproduce

Affected versions: only tested v15 and v16 so far.

Steps to reproduce the behavior:

  1. go to a user and enabled 2FA/MFA
  2. try to login with the auth_admin_passkey
  3. it will show the extra security view to enter 2FA/MFA code and blocking the auth_admin flow

Expected behavior
Just bypass also 2FA/MFA or maybe have an extra system parameter to set "bypass_mfa" true/false?

Additional context
N/A

@legalsylvain
Copy link
Contributor

Hi @codeagencybe.
Thanks for reporting. Indeed, this module has been developped some years ago, when 2FA was not present in Odoo. Could you provide a PR to include that feature ?

i think we can begin simply, without parameter, and if somebody want to disable this feature for 2FA, it can be done in a second time, with a parameter.

@codeagencybe
Copy link
Member Author

Hello @legalsylvain

I have create a PR #550 to add the new option for bypassing TOTP but the checks is giving some issues and I don't know why exactly.
Can somebody check and help here or fix whatever is missing?

I have this running in a few production setups and it installed just fine and is working fine and secure.

Copy link

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug stale PR/Issue without recent activity, it'll be soon closed automatically.
Projects
None yet
Development

No branches or pull requests

2 participants