2023-11-28 15:57:05 +05:30
id : ssh-diffie-hellman-logjam
info :
name : SSH Diffie-Hellman Modulus <= 1024 Bits
author : pussycat0x
severity : low
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://access.redhat.com/solutions/4278651
metadata :
verified : true
2023-12-12 11:07:52 +00:00
max-request : 2
2023-11-28 15:57:05 +05:30
shodan-query : product:"OpenSSH"
2025-10-17 14:17:02 +02:00
tags : js,enum,ssh,misconfig,network,discovery
2023-11-28 15:57:05 +05:30
javascript :
2023-12-01 18:48:05 +05:30
- pre-condition : |
isPortOpen(Host,Port);
code : |
2023-11-28 15:57:05 +05:30
let m = require("nuclei/ssh");
let c = m.SSHClient();
let response = c.ConnectSSHInfoMode(Host, Port);
2024-02-29 13:35:22 +05:30
Export(response);
2023-11-28 15:57:05 +05:30
args :
Host : "{{Host}}"
Port : "22"
matchers-condition : and
matchers :
- type : word
words :
- "kex_algorithms"
- type : word
words :
2023-11-29 19:42:01 +00:00
- "diffie-hellman-group1-sha1"
2025-10-26 16:17:34 +00:00
# digest: 4a0a004730450221008c2b3ad82250708df0d62a7258c96d484018bfc5493b1a52bd927292b45681120220617fe8d66ee1496c9b69f960cf439195fb6ad2c9d1b6ece288724fd08ec9e69a:922c64590222798bb761d5b6d8e72950