[GH-ISSUE #3001] TOTP not working with some services #1440

Closed
opened 2026-03-03 02:09:12 +03:00 by kerem · 4 comments
Owner

Originally created by @0xab3d on GitHub (Dec 16, 2022).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/3001

Subject of the issue

TOTP not working with some services such as sucuri.net

Deployment environment

  • vaultwarden version: 1.26
  • Install method: Docker

  • Clients used: web vault and Edge extension

  • Reverse proxy and version: Sucuri SaaS

  • MySQL/MariaDB or PostgreSQL version:

  • Other relevant details:

Steps to reproduce

Edit the Sucuri entry, try to add the TOTP seed, nothing happens. Once I click save, the Edge extension just logs out. Replicated this on the web as well.

Expected behaviour

TOTP seed starts providing the 6 digit codes.

Actual behaviour

The Edge extension and the web session logs out when I save the changes.

Troubleshooting data

Originally created by @0xab3d on GitHub (Dec 16, 2022). Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/3001 <!-- # ### NOTE: Please update to the latest version of vaultwarden before reporting an issue! This saves you and us a lot of time and troubleshooting. See: * https://github.com/dani-garcia/vaultwarden/issues/1180 * https://github.com/dani-garcia/vaultwarden/wiki/Updating-the-vaultwarden-image # ### --> <!-- Please fill out the following template to make solving your problem easier and faster for us. This is only a guideline. If you think that parts are unnecessary for your issue, feel free to remove them. Remember to hide/redact personal or confidential information, such as passwords, IP addresses, and DNS names as appropriate. --> ### Subject of the issue <!-- Describe your issue here. --> TOTP not working with some services such as _sucuri.net_ ### Deployment environment <!-- ========================================================================================= Preferably, use the `Generate Support String` button on the admin page's Diagnostics tab. That will auto-generate most of the info requested in this section. ========================================================================================= --> <!-- The version number, obtained from the logs (at startup) or the admin diagnostics page --> <!-- This is NOT the version number shown on the web vault, which is versioned separately from vaultwarden --> <!-- Remember to check if your issue exists on the latest version first! --> * vaultwarden version: 1.26 <!-- How the server was installed: Docker image, OS package, built from source, etc. --> * Install method: Docker * Clients used: <!-- web vault, desktop, Android, iOS, etc. (if applicable) --> web vault and Edge extension * Reverse proxy and version: <!-- if applicable --> Sucuri SaaS * MySQL/MariaDB or PostgreSQL version: <!-- if applicable --> * Other relevant details: ### Steps to reproduce <!-- Tell us how to reproduce this issue. What parameters did you set (differently from the defaults) and how did you start vaultwarden? --> Edit the Sucuri entry, try to add the TOTP seed, nothing happens. Once I click save, the Edge extension just logs out. Replicated this on the web as well. ### Expected behaviour <!-- Tell us what you expected to happen --> TOTP seed starts providing the 6 digit codes. ### Actual behaviour <!-- Tell us what actually happened --> The Edge extension and the web session logs out when I save the changes. ### Troubleshooting data <!-- Share any log files, screenshots, or other relevant troubleshooting data -->
kerem closed this issue 2026-03-03 02:09:13 +03:00
Author
Owner

@BlackDex commented on GitHub (Dec 16, 2022):

I'm not sure how Sucuri SaaS works. Does that add an extra layer of authentication, then that could be an issue.

<!-- gh-comment-id:1355545932 --> @BlackDex commented on GitHub (Dec 16, 2022): I'm not sure how Sucuri SaaS works. Does that add an extra layer of authentication, then that could be an issue.
Author
Owner

@0xab3d commented on GitHub (Dec 16, 2022):

Hey, it is a reverse proxy (acting as WAF)

<!-- gh-comment-id:1355570240 --> @0xab3d commented on GitHub (Dec 16, 2022): Hey, it is a reverse proxy (acting as WAF)
Author
Owner

@BlackDex commented on GitHub (Dec 16, 2022):

I think the WAF is removing some headers or other items, which breaks either the client or server.

Check the logs, maybe set the log-level to debug for some more info.

<!-- gh-comment-id:1355609524 --> @BlackDex commented on GitHub (Dec 16, 2022): I think the WAF is removing some headers or other items, which breaks either the client or server. Check the logs, maybe set the log-level to debug for some more info.
Author
Owner

@0xab3d commented on GitHub (Dec 16, 2022):

You're totally right. I have checked the logs and turned out the WAF is blocking PUT methods..

<!-- gh-comment-id:1355667544 --> @0xab3d commented on GitHub (Dec 16, 2022): You're totally right. I have checked the logs and turned out the WAF is blocking PUT methods..
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vaultwarden#1440
No description provided.