Linux Root Remote Login - Security Misconfiguration

漏洞信息

漏洞名称: Linux Root Remote Login - Security Misconfiguration

漏洞类型: 配置问题

漏洞等级: 严重

漏洞描述: 该漏洞涉及Linux系统中允许通过Telnet或SSH远程登录root账户的安全配置问题。具体来说,漏洞通过检查/etc/securetty和sshd_config文件的配置,判断是否允许root账户远程登录。这种配置不当可能导致严重的安全风险,因为攻击者可以利用此漏洞直接以最高权限访问系统。

受影响产品: Linux操作系统,广泛应用于服务器、个人电脑和嵌入式设备中,作为开源操作系统,其安全性对整个系统的安全至关重要。

漏洞解释: 此漏洞属于配置问题类型,具体表现为系统错误地配置了允许root账户通过远程方式登录。这种配置违反了最小权限原则,使得攻击者可以绕过正常的认证机制,直接获取系统的最高权限。技术根源在于/etc/securetty和sshd_config文件的不当配置,未能正确限制root账户的远程访问。

影响分析: 该漏洞的利用可能导致攻击者完全控制系统,执行任意代码,访问敏感数据,甚至破坏系统服务。由于漏洞允许远程访问且无需复杂的攻击手段,其风险等级被评定为严重。攻击者可以利用此漏洞自动化地进行攻击,对系统安全构成极大威胁。因此,建议立即检查并修复相关配置,禁止root账户的远程登录,以降低安全风险。

产品名称: Linux

来源: https://github.com/projectdiscovery/nuclei-templates/blob/c2a185916eccf1d1922d4e27c37bc793293eddd0/misconfiguration%2Flinux%2Froot-remote-login.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: root-remote-login

info:
name: Linux Root Remote Login - Security Misconfiguration
author: songyaeji
severity: critical
description: >
Allowing remote access via Telnet or SSH for the root account poses a serious security risk.
This template checks the configuration of /etc/securetty and sshd_config to determine whether root login is permitted.
reference:
- https://isms.kisa.or.kr/main/csap/notice/
- Cloud Vulnerability Assessment Guide(2024) by KISA
tags: linux,ssh,root,misconfiguration,local
metadata:
verified: true
os: linux
max-request: 2
classification:
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cwe-id: CWE-306

self-contained: true
code:
- engine:
- bash
source: |
cat /etc/securetty 2>/dev/null | grep -E 'pts/[0-9]+' || echo "no-securetty"
matchers:
- type: word
part: code_1_response
words:
- "pts/"
condition: contains

- engine:
- bash
source: |
cat /etc/ssh/sshd_config 2>/dev/null | grep -E '^PermitRootLogin\s+yes' || echo "no-root-ssh"
matchers:
- type: word
part: code_2_response
words:
- "PermitRootLogin yes"


Linux Root Remote Login - Security Misconfiguration
http://example.com/2025/08/04/github_3189460454/
作者
lianccc
发布于
2025年8月4日
许可协议