40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
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
|
|
shodan-query: product:"OpenSSH"
|
|
tags: javascript,ssh,misconfig,network
|
|
|
|
javascript:
|
|
- pre-condition: |
|
|
isPortOpen(Host,Port);
|
|
code: |
|
|
let m = require("nuclei/ssh");
|
|
let c = m.SSHClient();
|
|
let response = c.ConnectSSHInfoMode(Host, Port);
|
|
log(to_json(response));
|
|
|
|
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:
|
|
- "hmac-sha1"
|
|
# digest: 4a0a0047304502207dabd1e27a6662c65e99835bf6a7f9b6d74bb532fa3736e2e3d5c340e83e7b6b022100ee81a735c49f046cb81faf9f7b831849afd351ac3ad275227449fbe81342ba9b:922c64590222798bb761d5b6d8e72950 |