Chrome extension bypasses 2fa ?! #1011

Closed
opened 2026-02-04 23:37:08 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @H4R0 on GitHub (Apr 14, 2021).

Subject of the issue

Chrome Bitwarden extension is not asking for 2fa method on login anymore.

This started 2 days ago after I upgraded to bitwardenrs/server:latest

The Desktop Client as well as the Web Vault is asking for 2fa method.

How can 2fa even be bypassed ?! The Extension is LOGGED OUT not LOCKED !

Steps to reproduce

Setup 2fa with email or anything else and login using the chrome extension.

Expected behaviour

Client should ask for 2fa

Actual behaviour

Client logs in without asking for 2fa

Troubleshooting data

The container log differs for both logins.

Chrome Extension not asking for 2fa:

[2021-04-14 15:37:44.171][request][INFO] POST /api/accounts/prelogin
[2021-04-14 15:37:44.183][response][INFO] POST /api/accounts/prelogin (prelogin) => 200 OK
[2021-04-14 15:37:44.252][request][INFO] POST /identity/connect/token
[2021-04-14 15:37:44.378][bitwarden_rs::api::identity][INFO] User user@example.org logged in successfully. IP: 192.168.1.xxx
[2021-04-14 15:37:44.379][response][INFO] POST /identity/connect/token (login) => 200 OK
[2021-04-14 15:37:44.435][request][INFO] GET /api/sync
[2021-04-14 15:37:44.484][response][INFO] GET /api/sync?<data..> (sync) => 200 OK
[2021-04-14 15:37:44.492][parity_ws::io][INFO] Accepted a new tcp connection from 192.168.1.xxx:56006.

Desktop Client asking for 2fa:

[2021-04-14 15:38:11.099][request][INFO] POST /api/accounts/prelogin
[2021-04-14 15:38:11.101][response][INFO] POST /api/accounts/prelogin (prelogin) => 200 OK
[2021-04-14 15:38:11.178][request][INFO] POST /identity/connect/token
[2021-04-14 15:38:11.269][error][ERROR] 2FA token not provided
[2021-04-14 15:38:11.269][response][INFO] POST /identity/connect/token (login) => 400 Bad Request
[2021-04-14 15:38:11.330][request][INFO] POST /api/two-factor/send-email-login
[2021-04-14 15:38:11.692][response][INFO] POST /api/two-factor/send-email-login (send_email_login) => 200 OK

Originally created by @H4R0 on GitHub (Apr 14, 2021). ### Subject of the issue Chrome Bitwarden extension is not asking for 2fa method on login anymore. This started 2 days ago after I upgraded to bitwardenrs/server:latest The Desktop Client as well as the Web Vault is asking for 2fa method. How can 2fa even be bypassed ?! The Extension is LOGGED OUT not LOCKED ! * bitwarden_rs version: https://hub.docker.com/layers/bitwardenrs/server/latest/images/sha256-20dfe5e0abf10febf01510a8a97a639372b933bfcb215b6a3a46fc09246b5f77 * Install method: Docker * Clients used: https://chrome.google.com/webstore/detail/nngceckbapebfimnlniiiahkandclblb ### Steps to reproduce Setup 2fa with email or anything else and login using the chrome extension. ### Expected behaviour Client should ask for 2fa ### Actual behaviour Client logs in without asking for 2fa ### Troubleshooting data The container log differs for both logins. Chrome Extension not asking for 2fa: > [2021-04-14 15:37:44.171][request][INFO] POST /api/accounts/prelogin [2021-04-14 15:37:44.183][response][INFO] POST /api/accounts/prelogin (prelogin) => 200 OK [2021-04-14 15:37:44.252][request][INFO] POST /identity/connect/token [2021-04-14 15:37:44.378][bitwarden_rs::api::identity][INFO] User user@example.org logged in successfully. IP: 192.168.1.xxx [2021-04-14 15:37:44.379][response][INFO] POST /identity/connect/token (login) => 200 OK [2021-04-14 15:37:44.435][request][INFO] GET /api/sync [2021-04-14 15:37:44.484][response][INFO] GET /api/sync?<data..> (sync) => 200 OK [2021-04-14 15:37:44.492][parity_ws::io][INFO] Accepted a new tcp connection from 192.168.1.xxx:56006. Desktop Client asking for 2fa: > [2021-04-14 15:38:11.099][request][INFO] POST /api/accounts/prelogin [2021-04-14 15:38:11.101][response][INFO] POST /api/accounts/prelogin (prelogin) => 200 OK [2021-04-14 15:38:11.178][request][INFO] POST /identity/connect/token [2021-04-14 15:38:11.269][error][ERROR] 2FA token not provided [2021-04-14 15:38:11.269][response][INFO] POST /identity/connect/token (login) => 400 Bad Request [2021-04-14 15:38:11.330][request][INFO] POST /api/two-factor/send-email-login [2021-04-14 15:38:11.692][response][INFO] POST /api/two-factor/send-email-login (send_email_login) => 200 OK
Author
Owner

@jjlin commented on GitHub (Apr 14, 2021):

You probably enabled Remember me; see https://bitwarden.com/help/article/twostep-faqs/#q-why-is-bitwarden-not-asking-for-my-enabled-two-step-login-method.

@jjlin commented on GitHub (Apr 14, 2021): You probably enabled `Remember me`; see https://bitwarden.com/help/article/twostep-faqs/#q-why-is-bitwarden-not-asking-for-my-enabled-two-step-login-method.
Author
Owner

@H4R0 commented on GitHub (Apr 14, 2021):

Thanks a lot, must have clicked it by accident.

Settings → My Account -> Deauthorize Sessions

@H4R0 commented on GitHub (Apr 14, 2021): Thanks a lot, must have clicked it by accident. Settings → My Account -> Deauthorize Sessions
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#1011