Bug 2075275 - CVE-2022-24785 grafana: Moment.js: Path traversal in moment.locale [fedora-34]
Summary: CVE-2022-24785 grafana: Moment.js: Path traversal in moment.locale [fedora-34]
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: grafana
Version: 34
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Andreas Gerstmayr
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2075317 (view as bug list)
Depends On:
Blocks: CVE-2022-24785
TreeView+ depends on / blocked
 
Reported: 2022-04-13 21:57 UTC by Anten Skrabec
Modified: 2022-04-21 12:54 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-04-21 12:54:57 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Anten Skrabec 2022-04-13 21:57:11 UTC
This is an automatically created tracking bug!  It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-34.

For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.

For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs

When submitting as an update, use the fedpkg template provided in the next
comment(s).  This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.

Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.

Comment 1 Anten Skrabec 2022-04-13 21:57:13 UTC
Use the following template to for the 'fedpkg update' request to submit an
update for this issue as it contains the top-level parent bug(s) as well as
this tracking bug.  This will ensure that all associated bugs get updated
when new packages are pushed to stable.

=====

# bugfix, security, enhancement, newpackage (required)
type=security

# low, medium, high, urgent (required)
severity=medium

# testing, stable
request=testing

# Bug numbers: 1234,9876
bugs=2072009,2075275

# Description of your update
notes=Security fix for [PUT CVEs HERE]

# Enable request automation based on the stable/unstable karma thresholds
autokarma=True
stable_karma=3
unstable_karma=-3

# Automatically close bugs when this marked as stable
close_bugs=True

# Suggest that users restart after update
suggest_reboot=False

======

Additionally, you may opt to use the bodhi web interface to submit updates:

https://bodhi.fedoraproject.org/updates/new

Comment 2 Andreas Gerstmayr 2022-04-19 17:14:59 UTC
*** Bug 2075317 has been marked as a duplicate of this bug. ***

Comment 3 Andreas Gerstmayr 2022-04-21 12:54:57 UTC
Grafana runs Moment.js in the browser, therefore this vulnerability is limited to the client side and cannot be used to expose files of the server.
Grafana reads the users locale from the Accept-Language HTTP header and passes this value unsanitized to the moment.locale function (pkg/api/index.go:359, public/app/app.ts:92, packages/grafana-data/src/datetime/moment_wrapper.ts:80).

Because the vulnerable input is passed in a HTTP request header, no malicious URL can be created (reflected XSS) and the vulnerable input string cannot be persisted (stored XSS). This renders the attack surface close to zero. I'm closing this bug as WONTFIX.


Note You need to log in before you can comment on or make changes to this bug.