nuclei-templates/javascript/enumeration/ssh-weakkey-exchange-algo.yaml

43 lines
1.4 KiB
YAML
Raw Normal View History

2023-11-11 17:46:31 +00:00
id: ssh-weakkey-exchange-algo
info:
name: SSH Weak Key Exchange Algorithms Enabled
author: pussycat0x
severity: low
2023-11-12 10:37:39 +00:00
description: |
SSH Weak Key Exchange Algorithms Enabled indicates that the SSH server or client is configured to allow the use of less secure key exchange methods, posing a potential security risk during the establishment of secure connections. It's crucial to update configurations to prioritize stronger key exchange algorithms.
reference:
- https://www.tenable.com/plugins/nessus/153953
metadata:
verified: true
max-request: 2
shodan-query: product:"OpenSSH"
2023-11-11 17:51:30 +00:00
tags: javascript,ssh,misconfig,network
javascript:
2023-12-01 13:18:05 +00:00
- pre-condition: |
isPortOpen(Host,Port);
code: |
let m = require("nuclei/ssh");
let c = m.SSHClient();
2023-11-12 10:37:39 +00:00
let response = c.ConnectSSHInfoMode(Host, Port);
to_json(response);
args:
Host: "{{Host}}"
Port: "22"
matchers-condition: and
matchers:
2023-11-11 17:51:30 +00:00
- type: word
words:
- "ServerKex"
2023-11-11 17:51:30 +00:00
- type: word
words:
- "diffie-hellman-group-exchange-sha1"
- "diffie-hellman-group1-sha1"
- "gss-gex-sha1"
- "gss-group1-sha1"
- "gss-group14-sha1"
- "rsa1024-sha1"
2023-11-11 17:39:46 +00:00
condition: or
# digest: 490a004630440220158abcfd14790d587272aa6b9a03f6c5dc1c36eaa73f80e92daa0e328bc3bd85022079da7003da437e683907244988ec937133eb661a5d3dc46e0f0ec711074b85bc:922c64590222798bb761d5b6d8e72950