43 lines
1.4 KiB
YAML
43 lines
1.4 KiB
YAML
id: ssh-weakkey-exchange-algo
|
|
|
|
info:
|
|
name: SSH Weak Key Exchange Algorithms Enabled
|
|
author: pussycat0x
|
|
severity: low
|
|
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: 1
|
|
shodan-query: product:"OpenSSH"
|
|
tags: javascript,ssh,misconfig,network
|
|
javascript:
|
|
- 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:
|
|
- "ServerKex"
|
|
|
|
- type: word
|
|
words:
|
|
- "diffie-hellman-group-exchange-sha1"
|
|
- "diffie-hellman-group1-sha1"
|
|
- "gss-gex-sha1"
|
|
- "gss-group1-sha1"
|
|
- "gss-group14-sha1"
|
|
- "rsa1024-sha1"
|
|
condition: or
|
|
|
|
# digest: 4a0a0047304502207c7b58e9a87c279195918cb2334ce9126f94fc31da48c940790a805a4b1836e80221008f417fc9c962cd745253a3fa25415bd82cf94512b557cc5a5d7fbbcef9513f4a:922c64590222798bb761d5b6d8e72950
|