NFS Access Control Misconfiguration - Everyone Shared

漏洞信息

漏洞名称: NFS Access Control Misconfiguration - Everyone Shared

漏洞类型: 配置问题

漏洞等级: 高危

漏洞描述: 该漏洞涉及NFS(网络文件系统)的访问控制配置不当问题。NFS是一种允许不同计算机之间共享文件的协议,广泛应用于企业级服务和多用户环境中,以实现文件资源共享。当NFS的访问控制未正确配置时,未经授权的用户可能无需认证即可挂载共享目录,导致敏感文件被暴露或篡改。

漏洞的技术根源在于NFS配置文件中(如/etc/exports)的错误设置,例如使用了’all_squash’选项或允许所有主机(’*’)访问共享目录。这些配置错误使得攻击者能够绕过正常的访问控制机制,直接访问或修改共享文件。

此漏洞的安全风险较高,可能导致敏感信息泄露、数据被非法修改或删除,甚至可能被用作进一步攻击的跳板。由于漏洞利用不需要用户认证,攻击者可以相对容易地自动化攻击过程,对受影响系统造成严重影响。因此,管理员应严格检查NFS配置,确保只允许授权的主机访问共享资源,并避免使用不安全的配置选项。

产品名称: NFS

来源: https://github.com/projectdiscovery/nuclei-templates/blob/1dc5e4c5a7e3689548a72d7cb2a00b803fccc824/misconfiguration%2Flinux%2Flinux-nfs-everyone-access.yaml

类型: projectdiscovery/nuclei-templates:github issues

POC详情

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42

id: linux-nfs-everyone-access

info:
name: NFS Access Control Misconfiguration - Everyone Shared
author: songyaeji
severity: high
description: >
If access control is not properly configured on NFS, unauthorized users can mount shared directories without authentication.
This can result in exposure or tampering of sensitive files.
reference:
- https://isms.kisa.or.kr
- Cloud Vulnerability Assessment Guide(2024) by KISA
tags: linux,nfs,access-control,misconfiguration
metadata:
verified: true
os: linux
max-request: 1
classification:
cvss-metrics: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 7.8
cwe-id: CWE-284

self-contained: true

code:
- engine:
- bash
source: |
if grep -E '\(.*all_squash.*\)' /etc/exports; then
echo "[VULNERABLE] NFS allows everyone access with all_squash"
elif grep -E '\*' /etc/exports; then
echo "[VULNERABLE] NFS allows access to all (*) hosts"
else
echo "[SAFE] NFS access is restricted to specific IPs/subnets"
fi
matchers:
- type: word
part: code_1_response
words:
- "[VULNERABLE]"


NFS Access Control Misconfiguration - Everyone Shared
http://example.com/2025/07/29/github_3502893308/
作者
lianccc
发布于
2025年7月29日
许可协议