From 7d19be12f357bbca02b43ba4041073a20e0b7df2 Mon Sep 17 00:00:00 2001 From: nnposter Date: Mon, 16 Nov 2026 18:13:37 +0000 Subject: [PATCH] Fix ASN.1 sequence encoding. Close #3307 --- CHANGELOG | 3 +++ nselib/iec61850mms.lua | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 30097a096..c0e80788c 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,8 @@ #Nmap Changelog ($Id$); -*-text-*- +o [NSE][GH#3307] ASN.1 sequence encoding in the iec61850mms library was broken. + [RyugaXhypeR] + o [NSE] The ssh2 library was conflating host key (signature) algorithms with host key types. One of the effects was that scripts, such as ssh-hostkey, were not detecting RSA keys unless the target supported legacy ssh-rsa host diff --git a/nselib/iec61850mms.lua b/nselib/iec61850mms.lua index e620e4192..dba9dbc6f 100755 --- a/nselib/iec61850mms.lua +++ b/nselib/iec61850mms.lua @@ -1111,7 +1111,7 @@ MMSEncoder = { return str end, - encodeSeq = asn1.ASN1Encoder.encodeSeq, + encodeSeq = function (...) return asn1.ASN1Encoder:encodeSeq(...) end, } MMSQueries = {