Files
nuclei-templates/javascript/misconfiguration/ssh/ssh-weakkey-exchange-algo.yaml

44 lines
1.4 KiB
YAML
Raw Normal View History

2023-11-11 23:16:31 +05:30
id: ssh-weakkey-exchange-algo
info:
name: SSH Weak Key Exchange Algorithms Enabled
author: pussycat0x
severity: low
2023-11-12 16:07:39 +05:30
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"
2024-01-14 14:51:50 +05:30
tags: js,enum,ssh,misconfig,network
2024-01-04 12:16:23 +05:30
javascript:
2023-12-01 18:48:05 +05:30
- pre-condition: |
isPortOpen(Host,Port);
code: |
let m = require("nuclei/ssh");
let c = m.SSHClient();
2023-11-12 16:07:39 +05:30
let response = c.ConnectSSHInfoMode(Host, Port);
2024-02-29 13:35:22 +05:30
Export(response);
args:
Host: "{{Host}}"
Port: "22"
matchers-condition: and
matchers:
2023-11-11 23:21:30 +05:30
- type: word
words:
- "ServerKex"
2023-11-11 23:21:30 +05:30
- 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 23:09:46 +05:30
condition: or
2024-12-01 13:57:55 +00:00
# digest: 490a00463044022028dd86f6d97bb9b27a0e6fba7cc85375e0ae28a6dd27d9bd9fbb887822aa04bc02206016b4cabe1d3219394b1dd02f67f529ebc18a892ecacda0dc7291e43431d0e9:922c64590222798bb761d5b6d8e72950