file-disable-empty-password: Disable SSH Empty Password

日期: 2025-08-01 | 影响软件: file-disable-empty-password | POC: 已公开

漏洞描述

Allowing empty passwords in SSH poses a severe security risk, enabling unauthorized access, brute-force attacks, and potential system compromise. It should always be disabled to prevent unauthorized logins.

PoC代码[已公开]

id: file-disable-empty-password

info:
  name: Disable SSH Empty Password
  author: pussycat0x
  severity: unknown
  description: |
    Allowing empty passwords in SSH poses a severe security risk, enabling unauthorized access, brute-force attacks, and potential system compromise. It should always be disabled to prevent unauthorized logins.
  remediation: |
    Set PermitEmptyPasswords no in /etc/ssh/sshd_config to disable empty password logins and restart the SSH service.
  reference:
    - https://vishalraj82.medium.com/hardening-openssh-security-37f5d634015f
    - https://docs.datadoghq.com/security/default_rules/xccdf-org-ssgproject-content-rule-sshd-disable-empty-passwords/
  metadata:
    verified: true
  tags: audit,config,file,ssh

file:
  - extensions:
      - all

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "# This is the sshd server system-wide configuration file"

      - type: word
        words:
          - "PermitEmptyPasswords no"
        negative: true
# digest: 4b0a00483046022100b68a6b67b0ed2869a552a177efc9f6f92048f5c724d25661e8d2166017121cbb022100fa9829590f091a29d2d8e8f8146958370f5fd2ed4dad9e57e6cf48f8dc6dc69b:922c64590222798bb761d5b6d8e72950