Linux World Writable File Permission Check

漏洞信息

漏洞名称: Linux World Writable File Permission Check

漏洞类型: 配置问题

漏洞等级: 高危

漏洞描述: 该漏洞涉及Linux系统中重要文件被配置为全局可写(chmod o+w)权限的问题。Linux作为一种广泛使用的操作系统,其安全配置对于保障系统安全至关重要。特别是在企业级服务、云服务平台等场景中,Linux系统的安全性直接关系到整个业务环境的稳定和数据的安全。漏洞的根源在于系统管理员或自动化脚本错误地设置了文件的权限,使得任何用户都能修改这些重要文件。这种配置问题可能导致恶意用户随意修改系统文件,进而引发权限提升、植入系统后门或服务中断等严重后果。由于该漏洞不需要任何认证即可利用,且可以通过自动化工具批量检测和利用,因此其潜在的安全风险非常高。攻击者可以利用此漏洞轻易地破坏系统完整性,窃取敏感信息,甚至控制整个系统。

产品名称: Linux

来源: https://github.com/projectdiscovery/nuclei-templates/blob/dfc176303ffebe3d9f231045fa3abe2cf2ca9874/misconfiguration%2Flinux%2Flinux-world-writable-file-check.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

id: linux-world-writable-file-check

info:
name: Linux World Writable File Permission Check
author: songyaeji
severity: high
description: >
If important system files are configured with world writable (chmod o+w) permissions, malicious users may arbitrarily modify them, leading to privilege escalation, system backdoors, or service disruption.
reference:
- https://isms.kisa.or.kr
- Cloud Vulnerability Assessment Guide(2024) by KISA
tags: linux,local,misconfig,permission,compliance
metadata:
verified: true
os: linux
classification:
cvss-metrics: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
cvss-score: 7.8
cwe-id: CWE-732

self-contained: true

code:
- engine:
- bash
source: |
find / -type f -perm -2 ! -path "/tmp/*" -exec ls -l {} \; 2>/dev/null
matchers:
- type: regex
name: world-writable-files
part: code_1_response
regex:
- "^-..w..w..w.*"


Linux World Writable File Permission Check
http://example.com/2025/07/31/github_2677588736/
作者
lianccc
发布于
2025年7月31日
许可协议