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]"