nuclei-templates/javascript/enumeration/ssh-weak-algo-supported.yaml

42 lines
1.3 KiB
YAML

id: ssh-weak-algo-supported
info:
name: SSH Weak Algorithms Supported
author: pussycat0x
severity: medium
description: |
SSH weak algorithms are outdated cryptographic methods that pose security risks. Identifying and disabling these vulnerable algorithms is crucial for enhancing the overall security of SSH connections.
reference:
- https://www.tenable.com/plugins/nessus/90317
metadata:
verified: true
max-request: 1
shodan-query: product:"OpenSSH"
tags: javascript,ssh,misconfig,network
javascript:
- pre-condition: |
isPortOpen(Host,Port);
code: |
let m = require("nuclei/ssh");
let c = m.SSHClient();
let response = c.ConnectSSHInfoMode(Host, Port);
to_json(response);
args:
Host: "{{Host}}"
Port: "22"
matchers-condition: and
matchers:
- type: word
words:
- "client_to_server_ciphers"
- "server_to_client_ciphers"
condition: and
- type: word
words:
- "arcfour"
- "arcfour128"
- "arcfour256"
condition: or
# digest: 490a00463044022000d38427c73fcaf6b8b911b83144a71c78a32e81c307bdd1616c80003338098b0220462fa8b733482a5209ab11602beca038d666995c3d9c5032097f6c44018f35da:922c64590222798bb761d5b6d8e72950