2023-11-28 10:27:05 +00:00
|
|
|
id: ssh-sha1-hmac-algo
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: SSH SHA-1 HMAC Algorithms Enabled
|
|
|
|
author: pussycat0x
|
|
|
|
severity: info
|
|
|
|
description: |
|
|
|
|
The SSH server at the remote end is set up to allow the use of SHA-1 HMAC algorithms.
|
|
|
|
reference:
|
|
|
|
- https://forums.ivanti.com/s/article/How-to-disable-SSH-SHA-1-HMAC-algorithms?language=en_US
|
|
|
|
metadata:
|
|
|
|
verified: true
|
2023-12-12 11:07:52 +00:00
|
|
|
max-request: 2
|
2023-11-28 10:27:05 +00:00
|
|
|
shodan-query: product:"OpenSSH"
|
|
|
|
tags: javascript,ssh,misconfig,network
|
|
|
|
|
|
|
|
javascript:
|
2023-12-01 13:18:05 +00:00
|
|
|
- pre-condition: |
|
|
|
|
isPortOpen(Host,Port);
|
|
|
|
code: |
|
2023-11-28 10:27:05 +00:00
|
|
|
let m = require("nuclei/ssh");
|
|
|
|
let c = m.SSHClient();
|
|
|
|
let response = c.ConnectSSHInfoMode(Host, Port);
|
2023-12-02 05:57:23 +00:00
|
|
|
to_json(response);
|
2023-11-28 10:27:05 +00:00
|
|
|
|
|
|
|
args:
|
|
|
|
Host: "{{Host}}"
|
|
|
|
Port: "22"
|
|
|
|
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
words:
|
|
|
|
- "server_to_client_macs"
|
|
|
|
- "client_to_server_macs"
|
|
|
|
condition: and
|
|
|
|
|
|
|
|
- type: word
|
|
|
|
words:
|
2023-11-29 19:42:01 +00:00
|
|
|
- "hmac-sha1"
|
2023-12-02 05:59:27 +00:00
|
|
|
# digest: 490a00463044022067e4a747089283fa393daec16b26ed306fc9d02a94a149cc1b7d64224892edda0220064ebab379577ac36355028837289648d52e56e08d35fc7f4e4cdaa7ada5f98b:922c64590222798bb761d5b6d8e72950
|