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

XML Export corrupted? #1940

Open
takigama opened this issue Oct 16, 2024 · 0 comments
Open

XML Export corrupted? #1940

takigama opened this issue Oct 16, 2024 · 0 comments

Comments

@takigama
Copy link

sysPass Version
3.2

Describe the question
XML Export corrupted?

Screenshots

Platform (please complete the following information):
Chrome

Additional context
I'm trying to export all my data from syspass and having a few issues.

I've done an XML Export and tried to download it, I end up with a file that's called something like "sysPass_export-....tar.gz", but the file itself isn't a tar.gz file:

$ file sysPass_export-5d38e6a7e45ecf7ea9270398e69bce0dd29b70ba.tar.gz
sysPass_export-5d38e6a7e45ecf7ea9270398e69bce0dd29b70ba.tar.gz: data
$ tar tfz sysPass_export-5d38e6a7e45ecf7ea9270398e69bce0dd29b70ba.tar.gz

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

Looking at the syspass instance running in docker, the file exists on the backup volume and that is a tar gz:

$ file /tmp/sysPass_export-5d38e6a7e45ecf7ea9270398e69bce0dd29b70ba.tar.gz
/tmp/sysPass_export-5d38e6a7e45ecf7ea9270398e69bce0dd29b70ba.tar.gz: gzip compressed data, from Unix, original size modulo 2^32 422912

and contains an XML file:
$ tar tfz sysPass_export-5d38e6a7e45ecf7ea9270398e69bce0dd29b70ba.tar.gz
sysPass_export-5d38e6a7e45ecf7ea9270398e69bce0dd29b70ba.xml

The file size itself is identical:
$ ls -alrt sysPass_export-5d38e6a7e45ecf7ea9270398e69bce0dd29b70ba.tar.gz
-rw-r--r-- 1 root root 217606 Oct 16 14:02 sysPass_export-5d38e6a7e45ecf7ea9270398e69bce0dd29b70ba.tar.gz
$ ls -lart sysPass_export-5d38e6a7e45ecf7ea9270398e69bce0dd29b70ba.tar.gz
-rw-r--r-- 1 takigama takigama 217606 Oct 16 14:02 sysPass_export-5d38e6a7e45ecf7ea9270398e69bce0dd29b70ba.tar.gz

So I'm not sure what's going on with it, but none of the files work with any of the syspass decrypters (including un-tar-gz'ing the file to an XML, this output is from the syspass-decrypter.phar):

[info] initialize
[info] Reading XML file "./sysPass_export-5d38e6a7e45ecf7ea9270398e69bce0dd29b70ba.xml"
[info] checkFile
[info] readXMLFile
[info] Encrypted XML detected
[info] Processing encrypted data
[error] Ciphertext has invalid hex encoding.
....
[error] Error decrypting XML data

Using any other file or set of passwords that I know, results in:
[error] Wrong encryption password
or
[error] File type not allowed

So I'm not sure what's happening with the export or whether the syspass decrypters are just dated?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant