Skip to content

teler dashboard vulnerable to DOM-based cross-site scripting (XSS)

Low severity GitHub Reviewed Published Dec 6, 2022 in teler-sh/teler • Updated Jan 31, 2023

Package

gomod teler.app (Go)

Affected versions

>= 2.0.0-rc, <= 2.0.0-rc.3
= 2.0.0-dev

Patched versions

2.0.0-rc.4
2.0.0-dev.2

Description

Description

teler prior to version <= 2.0.0-rc.4 is vulnerable to DOM-based cross-site scripting (XSS) in the teler dashboard. When teler requests messages from the event stream on the /events endpoint, the log data displayed on the dashboard are not sanitized.

Impact

This only affects authenticated users and can only be exploited based on detected threats if the log contains a DOM scripting payload. This indicates a low severity and there is no significant impact on the users.

Affected Version

This issue was introduced from version v2.0.0-rc to v2.0.0-rc.3 & v2.0.0-dev.

Patches

This vulnerability has been fixed on version v2.0.0-rc.4 & v2.0.0-dev.2.

Workarounds

Here are some workarounds to handle this case:

  • Deactivate the live event dashboard from the configuration file, or
  • Upgrade teler version to v2.0.0-rc.4 or v2.0.0-dev.2 & above.

References

References

@dwisiswant0 dwisiswant0 published to teler-sh/teler Dec 6, 2022
Published to the GitHub Advisory Database Dec 6, 2022
Reviewed Dec 6, 2022
Published by the National Vulnerability Database Dec 6, 2022
Last updated Jan 31, 2023

Severity

Low

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Local
Attack complexity
Low
Privileges required
High
User interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
Low

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:N/I:L/A:L

EPSS score

0.050%
(20th percentile)

Weaknesses

CVE ID

CVE-2022-23466

GHSA ID

GHSA-xr7p-8q82-878q

Source code

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.