mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-02-05 00:29:40 +03:00
Import CSV from browser #1553
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @petercrowley on GitHub (Apr 1, 2023).
Subject of the issue
I am getting an error importing browser CSV files
Deployment environment
Your environment (Generated via diagnostics page)
Your environment (Generated via diagnostics page)
Config (Generated via diagnostics page)
Show Running Config
Environment settings which are overridden:
Install method: docker compose
Clients used: iOS, webVault, Firefox, Chrome, Windows
Reverse proxy and version: Traefik latest (2023/03/21 20:20:13)
MySQL/MariaDB or PostgreSQL version: SQLlite
Other relevant details:
Steps to reproduce
I used both Firefox and Chrome and had the same error on both. I exported my browser passwords as a CSV, then went to the webVault => Tools => Import Data, chose the correct format and file ( I also tried copy/paste the contents to same error) and pressed Import Data button.
Expected behaviour
I expected my CSV to be imported
Actual behaviour
Import error
<html><head> </head>There was a problem with the data you tried to import. Please resolve the errors listed below in your source file and try again.
Bad Request
Your browser sent a request that this server could not understand.
</html>Troubleshooting data
@petercrowley commented on GitHub (Apr 1, 2023):
request was going to /api/ciphers/import
@BlackDex commented on GitHub (Apr 1, 2023):
Please check the Apache HTTPd logs first. I think something is being blocked there, since that response message doesn't look like a Vaultwarden response.
@petercrowley commented on GitHub (Apr 2, 2023):
That was a good suggestion. It looks like the owasp/modsecurity-crs
container flagged the upload as a security concern. Please close the
ticket. Just FYI, here is the message from the security logs.
[security2:error] ModSecurity: Access denied with code 400 (phase 2).
Match of "eq 0" against "REQBODY_ERROR" required. [file
"/etc/modsecurity.d/modsecurity.conf"] [line "72"] [id "200002"] [msg
"Failed to parse request body."] [data "JSON parsing error: parse error:
client cancelled parse via callback return value\x0a"] [severity
"CRITICAL"] [uri "/api/ciphers/import"]
On 4/1/2023 2:16 PM, Mathijs van Veluw wrote: