Linux Finger Service Disabled - xinetd Misconfiguration

漏洞信息

漏洞名称: Linux Finger Service Disabled - xinetd Misconfiguration

漏洞类型: 配置问题

漏洞等级: 高危

漏洞描述: 该漏洞涉及Linux系统中的xinetd服务配置问题,具体是指Finger服务未正确禁用。Finger服务若被启用,可能会向未授权的用户暴露用户信息,从而可能导致基于密码的攻击。此模板通过检查/etc/xinetd.d/finger文件中的’disable’指令来验证Finger服务是否被正确禁用。

受影响的产品:Linux xinetd是一个用于管理网络服务的守护进程,广泛用于Linux系统中。它负责监听网络请求并根据配置启动相应的服务。Finger服务是一种早期的网络服务,用于查询用户信息,但由于其设计上的安全性问题,现代系统中通常建议禁用。

漏洞解释:此漏洞属于配置问题,具体是由于xinetd配置文件中Finger服务的’disable’指令未设置为’yes’,导致服务可能被意外启用。这种配置错误可能由于管理员疏忽或自动化配置工具的错误引起。漏洞的根源在于缺乏严格的配置审核和默认安全配置。

影响分析:如果Finger服务被启用,攻击者可以利用此服务获取系统上的用户信息,如用户名、登录时间等,这些信息可能被用于进一步的攻击,如密码猜测或社会工程攻击。由于此服务通常不需要认证即可访问,因此风险较高。漏洞的利用门槛较低,攻击者可以通过网络扫描发现并利用此漏洞。

产品名称: Linux xinetd

来源: https://github.com/projectdiscovery/nuclei-templates/blob/dfc176303ffebe3d9f231045fa3abe2cf2ca9874/misconfiguration%2Flinux%2Flinux-xinetd-finger-disabled.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

id: linux-xinetd-finger-disabled

info:
name: Linux Finger Service Disabled - xinetd Misconfiguration
author: songyaeji
severity: high
description: >
If the Finger service is enabled, it may expose user information to unauthorized users,
leading to potential password-based attacks. This template checks whether the Finger
service is properly disabled by inspecting the 'disable' directive in /etc/xinetd.d/finger.
reference:
- https://isms.kisa.or.kr
- Cloud Vulnerability Assessment Guide(2024) by KISA
tags: linux,finger,xinetd,misconfiguration,local
metadata:
os: linux
category: configuration
verified: true
classification:
cvss-metrics: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
cvss-score: 5.5
cwe-id: CWE-200

self-contained: true

code:
- engine:
- bash
source: |
if [ -f /etc/xinetd.d/finger ]; then
disable_status=$(grep -i 'disable' /etc/xinetd.d/finger | grep -v '^#' | awk -F '=' '{print $2}' | xargs)
if [ "$disable_status" = "no" ]; then
echo "[VULNERABLE] Finger service is enabled (disable = no)"
else
echo "[SAFE] Finger service is disabled"
fi
else
echo "[SAFE] /etc/xinetd.d/finger does not exist"
fi

matchers:
- type: word
words:
- "[VULNERABLE] Finger service is enabled"


Linux Finger Service Disabled - xinetd Misconfiguration
http://example.com/2025/07/31/github_3726156792/
作者
lianccc
发布于
2025年7月31日
许可协议