Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 751727 (CVE-2020-24303) - <www-apps/grafana-bin-7.1.3: query XSS vunerability (CVE-2020-24303)
Summary: <www-apps/grafana-bin-7.1.3: query XSS vunerability (CVE-2020-24303)
Status: RESOLVED FIXED
Alias: CVE-2020-24303
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal trivial (vote)
Assignee: Gentoo Security
URL: https://github.com/grafana/grafana/pu...
Whiteboard: ~4 [noglsa]
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-29 09:58 UTC by filip ambroz
Modified: 2020-11-01 22:36 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description filip ambroz 2020-10-29 09:58:11 UTC
Grafana before 7.1.0-beta 1 allows XSS via a query alias for the ElasticSearch datasource.

The problem is caused by the bs-typeahead directive which evals the select options passed to it. We are using an old version of ng-strap which allows only an array of strings to be passed as available options. The alias in Elastic and TestData query editor allows providing special characters, so, for instance, specifying alias as <img src onerror="alert(document.cookie)"> creates a possible XSS attack vector.

Links
-----
https://nvd.nist.gov/vuln/detail/CVE-2020-24303
https://github.com/grafana/grafana/blob/master/CHANGELOG.md#710-beta-1-2020-07-01

Reproducible: Always
Comment 1 Thomas Deutschmann (RETIRED) gentoo-dev 2020-11-01 22:36:02 UTC
Repository is clean, all done!