Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2021-41277 PoC — GeoJSON URL validation can expose server files and environment variables to unauthorized users

Source
Associated Vulnerability
Title:GeoJSON URL validation can expose server files and environment variables to unauthorized users (CVE-2021-41277)
Description:Metabase is an open source data analytics platform. In affected versions a security issue has been discovered with the custom GeoJSON map (`admin->settings->maps->custom maps->add 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’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.
Description
Metabase任意文件读取漏洞批量扫描工具
Readme
# CVE-2021-41277
Metabase任意文件读取漏洞批量扫描工具

影响版本:

```漏洞
metabase version < 0.40.5
metabase version >= 1.0.0, < 1.40.5
```

修复版本:

```bash
metabase version >= 0.40.5
metabase version >= 1.40.5
```

## 使用说明

```bash
usage: CVE-2021-41277.py [-h] [-u URL] [-f FILE]

CVE-2021-41277

optional arguments:
  -h, --help            show this help message and exit
  -u URL, --url URL     url like http://127.0.0.1:8080
  -f FILE, --file FILE  url file path
```

单个`url`扫描

```bash
python3 CVE-2021-41277.py -u http://172.16.0.1:8080
```

批量扫描

```bash
python3 CVE-2021-41277.py -f ./scan.txt
```

File Snapshot

[4.0K] /data/pocs/06da29ef77b87395ec81c1602cbdcc00719fbebd ├── [3.1K] CVE-2021-41277.py └── [ 663] README.md 0 directories, 2 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →