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

Burp stops in phase 2 when encountering crazy filename #912

Open
kepi opened this issue Dec 9, 2022 · 6 comments
Open

Burp stops in phase 2 when encountering crazy filename #912

kepi opened this issue Dec 9, 2022 · 6 comments

Comments

@kepi
Copy link

kepi commented Dec 9, 2022

Hi,

we encountered problem with backup of one server, which was unclear on client side:

2022-12-06 23:00:16 +0100: burp[1584526] Phase 2 begin (send backup data)

fmfm2022-12-06 23:00:28 +0100: burp[1584526] main socket 4: Got network write error
2022-12-06 23:00:28 +0100: burp[1584526] main socket 4: network write problem in asfd_do_write_ssl: 5 - 104=Connection reset by peer
2022-12-06 23:00:28 +0100: burp[1584526] This is probably caused by the peer exiting.
2022-12-06 23:00:28 +0100: burp[1584526] Please check the peer's logs.

On server side, problem is immediately clear:

2022-12-05 00:45:26 +0100: burp[19233] End phase1 (read previous file system scan)
2022-12-05 00:45:28 +0100: burp[19233] could not mkdir /zhedo/burp/somepath/working/data.tmp/t/somepathonserver/.next/server/pages/employees/123/<p>Jsem kreativní a podporuji kreativitu </<p>Jsem kreativní a podporuji kreativitu </<p>Jsem kreativní a podporuji kreativitu </<p>Jsem kreativní a podporuj
i kreativitu </<p>Jsem kreativní a podporuji kreativitu </<p>Jsem kreativní a podporuji kreativitu </<p>Jsem kreativní a podporuji kreativitu </<p>Jsem kreativní a podporuj2022-12-05 00:45:28 +0100: burp[19233] build path failed2022-12-05 00:45:28 +0100: burp[19233] error in start_to_receive_new_file
2022-12-05 00:45:28 +0100: burp[19233] End phase2 (receive file data)
2022-12-05 00:45:28 +0100: burp[19233] error in backup phase 2

The totally crazy name of file on client has been \<p\>Jsem\ kreativní\ a\ podporuji\ kreativitu \<.

We fixed this with client on their side, but just wanted to report the problem as, at least from log, it looks like it has some trable with parsing one of characters and created a loop or something?

It would be also great, if in such case backup will continue with skipping problematic file instead of exiting as whole.

Thanks

@grke
Copy link
Owner

grke commented Dec 11, 2022 via email

@crysman
Copy link

crysman commented Dec 11, 2022

I'm one of these affected by this behavior, it would be great if you changed the app so it would not terminate upon such an error ("crazy filename") and just skipped it (and log what has been skipped) instead.

Although the dir name is kind of "crazy", it is still a valid filename (at least on ext4 fs):
image

therefore, a backup should not terminate on it, because it effectively makes all the additional backups incomplete :(

@grke
Copy link
Owner

grke commented Dec 12, 2022 via email

@dehnli
Copy link

dehnli commented Feb 11, 2023

With the ability to skip backups with long file names, it would probably be more correct to implement (if it possible) some mechanism that would allow burp to backup files with long names. Something like shorten it

@grke
Copy link
Owner

grke commented Feb 14, 2023

Burp already does shorten file names that it thinks are too long.
Something else is probably happening here, which I haven't had time to look at yet.

@grke
Copy link
Owner

grke commented Feb 14, 2023

It's probably something to do with the backslashes getting treated as components in the path and being converted to forward slashes.

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

4 participants