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

Fix Path Traversal issue #10

Closed
jxfzzzt opened this issue Jul 31, 2024 · 1 comment
Closed

Fix Path Traversal issue #10

jxfzzzt opened this issue Jul 31, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@jxfzzzt
Copy link
Contributor

jxfzzzt commented Jul 31, 2024

Describe the bug

Hello, i find a issue in src/libre_chat/router.py, there may be a path Traversal vulnerability in method upload_documents.
if the filename of a uploaded in files be /../../../../../../../test.txt (e.g., modified by Burp), it may lead to a vulnerability that allows arbitrary file writes. #9

Reproduction

filename of a uploaded in files be /../../../../../../../test.txt

Operating System

Linux, Mac, ...

Libre Chat version

0.0.6

Additional context

No response

@jxfzzzt jxfzzzt added the bug Something isn't working label Jul 31, 2024
@jxfzzzt
Copy link
Contributor Author

jxfzzzt commented Aug 27, 2024

@vemonet Could you please take a look at this issue?

@jxfzzzt jxfzzzt closed this as completed Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant