POC详情: 73b77a0b2e82ec36c01ca05c95fc5814997c5375

来源
关联漏洞
标题: Metabase 路径遍历漏洞 (CVE-2021-41277)
描述:Metabase是美国Metabase公司的一个开源数据分析平台。 Metabase 中存在路径遍历漏洞,该漏洞源于产品的 admin->settings->maps->custom maps->add a map 操作缺少权限验证。攻击者可通过该漏洞获得敏感信息。
介绍
# CVE-2021-41277

## Usage

### 1. show help info

```bash
~/CVE-2021-41277
❯ go run main.go -h                     
Usage of main:
  -f string
        File containing list of targets to verfity
  -o string
        File to write output to (optional)
  -s    Show VulnInfo output
  -t int
        Number of concurrent goroutines for resolving (default 10)
  -u string
        Target to verfity CVE-2021-41277
  -v    Show Verbose output
```

### 2. show vuln info

```bash
~/CVE-2021-41277
❯ go run main.go -s 
[INF] VulnInfo:
{
  "Name": "Metabase sensitive information leakage",
  "VulID": "CVE-2021-41277",
  "Version": "1.0",
  "Author": "z3",
  "VulDate": "2021-11-20",
  "References": [
    "https://nosec.org/home/detail/4909.html",
    "https://www.freebuf.com/vuls/306858.html"
  ],
  "AppName": "metabase",
  "AppPowerLink": "https://www.metabase.com/",
  "AppVersion": "metabase version \u003c 0.40.5 and metabase version \u003e= 1.0.0, \u003c 1.40.5",
  "VulType": "INFORMATION DISCLOSURE",
  "Description": "Metabase is an open source data analytics platform. In affected versions a security issue has been discovered with the custom GeoJSON map (`admin-\u003esettings-\u003emaps-\u003ecustom maps-\u003eadd a map`) support and potential local file inclusion (including environment variables). URLs were not validated prior to being loaded. This issue is fixed in a new maintenance release (0.40.5 and 1.40.5), and any subsequent release after that. If you\u0026#8217;re unable to upgrade immediately, you can mitigate this by including rules in your reverse proxy or load balancer or WAF to provide a validation filter before the application.",
  "Category": "REMOTE",
  "Dork": {
    "Fofa": "app=\"metabase\"",
    "Quake": "",
    "Zoomeye": "",
    "Shodan": ""
  }
}%  
```

### 3. execute detect

```bash
cat test.txt | go run main.go -t 20 -v
```
文件快照

[4.0K] /data/pocs/73b77a0b2e82ec36c01ca05c95fc5814997c5375 ├── [ 501] go.mod ├── [4.3K] go.sum ├── [8.2K] main.go └── [1.8K] README.md 0 directories, 4 files
神龙机器人已为您缓存
备注
    1. 建议优先通过来源进行访问。
    2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
    3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。