nuclei-templates/javascript/enumeration/ssh/ssh-sha1-hmac-algo.yaml

41 lines
1.1 KiB
YAML
Raw Normal View History

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
max-request: 2
2023-11-28 10:27:05 +00:00
shodan-query: product:"OpenSSH"
2024-01-14 09:21:50 +00:00
tags: enum,js,ssh,misconfig,network
2023-11-28 10:27:05 +00:00
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);
2024-02-29 08:05:22 +00:00
Export(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:
- "hmac-sha1"
# digest: 490a004630440220555730d2fe30f844967a5de01e03db7d7c9cbf38e88c55096e2d1df3cf50e963022057c74c281255ccca90f6b1ca7f58a9b84ca4dcc4fccda7085687c9c05fe8143e:922c64590222798bb761d5b6d8e72950