Article comment storage XSS in cherry-toto/jizhicms


Reported on

Mar 31st 2022


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
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
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



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