Linux Password Complexity Not Enforced

漏洞信息

漏洞名称: Linux Password Complexity Not Enforced

漏洞类型: 弱口令

漏洞等级: 高危

漏洞描述: 该漏洞涉及Linux系统中密码复杂性要求未强制执行的问题。具体来说,系统未对用户密码设置足够的复杂性要求,如最小长度、包含大写字母、小写字母、数字和特殊字符等,从而导致用户可能设置弱密码。这种情况使得用户账户更容易受到暴力破解和字典攻击的威胁。

受影响的产品:Linux操作系统,广泛应用于服务器、个人计算机和嵌入式设备中,是企业级服务和日常计算任务的基础。

漏洞解释:此漏洞属于弱口令类型,其技术根源在于系统配置不当,未能强制执行密码复杂性策略。具体表现为/etc/security/pwquality.conf文件中未设置或设置了较低的密码复杂性要求,或者在PAM(Pluggable Authentication Modules)配置中未正确启用pam_pwquality.so模块或未设置enforce_for_root选项。

影响分析:此漏洞可能导致严重的安全风险,攻击者可以利用弱密码更容易地通过暴力破解或字典攻击获得用户账户的访问权限,进而可能进行未授权操作、数据泄露或服务中断。由于该漏洞涉及系统级别的认证机制,其影响范围广泛,且不需要攻击者具备高权限即可尝试利用,增加了被自动化工具利用的风险。

产品名称: Linux

来源: https://github.com/projectdiscovery/nuclei-templates/blob/1dc5e4c5a7e3689548a72d7cb2a00b803fccc824/misconfiguration%2Flinux%2Fpassword-complexity-not-enforced.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
43
44
45
46
47
48
49
50
51
52
53
54
55

id: password-complexity-not-enforced

info:
name: Linux Password Complexity Not Enforced
author: songyaeji
severity: high
description: >
Password complexity requirements are not enforced on this system. This allows weak passwords,
making user accounts more susceptible to brute-force and dictionary attacks.
reference:
- https://isms.kisa.or.kr/main/csap/notice/
- Cloud Vulnerability Assessment Guide(2024) by KISA
tags: linux,local,configuration,auth,weak-password,compliance
metadata:
verified: true
os: linux
max-request: 2
classification:
cvss-metrics: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
cvss-score: 7.8
cwe-id: CWE-521

self-contained: true
code:
- engine:
- bash
source: |
cat /etc/security/pwquality.conf 2>/dev/null || true
matchers:
- type: regex
part: code_1_response
regex:
- 'minlen\s*=\s*[0-7]'
- 'dcredit\s*=\s*0'
- 'ucredit\s*=\s*0'
- 'lcredit\s*=\s*0'
- 'ocredit\s*=\s*0'
condition: or

- engine:
- bash
source: |
grep pam_pwquality.so /etc/pam.d/system-auth /etc/pam.d/common-password 2>/dev/null || true
matchers:
- type: word
part: code_2_response
words:
- "pam_pwquality.so"
- type: word
part: code_2_response
words:
- "enforce_for_root"
negative: true


Linux Password Complexity Not Enforced
http://example.com/2025/07/29/github_1130385822/
作者
lianccc
发布于
2025年7月29日
许可协议