pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/security/py-paramiko py-paramiko: updated to 2.8.1
details: https://anonhg.NetBSD.org/pkgsrc/rev/cea2e33815c1
branches: trunk
changeset: 770316:cea2e33815c1
user: adam <adam%pkgsrc.org@localhost>
date: Mon Nov 29 09:33:19 2021 +0000
description:
py-paramiko: updated to 2.8.1
2.8.1 2021-11-28
[Bug]: (also 908) Update PKey and subclasses to compare (__eq__) via direct field/attribute comparison instead of hashing (while retaining the existing behavior of __hash__ via a slight refactor).
Big thanks to Josh Snyder and Jun Omae for the reports, and to Josh Snyder for reproduction details & patch.
Warning
This fixes a security flaw! If you are running Paramiko on 32-bit systems with low entropy (such as any 32-bit Python 2, or a 32-bit Python 3 which is running with PYTHONHASHSEED=0) it is possible
for an attacker to craft a new keypair from an exfiltrated public key, which Paramiko would consider equal to the original key.
This could enable attacks such as, but not limited to, the following:
Paramiko server processes would incorrectly authenticate the attacker (using their generated private key) as if they were the victim. We see this as the most plausible attack using this flaw.
Paramiko client processes would incorrectly validate a connected server (when host key verification is enabled) while subjected to a man-in-the-middle attack. This impacts more users than the
server-side version, but also carries higher requirements for the attacker, namely successful DNS poisoning or other MITM techniques.
[Bug] 1257: (also 1266) Update RSA and ECDSA key decoding subroutines to correctly catch exception types thrown by modern versions of Cryptography (specifically TypeError and its internal
UnsupportedAlgorithm). These exception classes will now become SSHException instances instead of bubbling up. Thanks to Ignat Semenov for the report and @tylergarcianet for an early patch.
[Bug] 1024: Deleting items from HostKeys would incorrectly raise KeyError even for valid keys, due to a logic bug. This has been fixed. Report & patch credit: Jia Zhang.
[Bug] 985: (via 992) Fix listdir failure when server uses a locale. Now on Python 2.7 SFTPAttributes will decode abbreviated month names correctly rather than raise UnicodeDecodeError`. Patch
courtesy of Martin Packman.
diffstat:
security/py-paramiko/Makefile | 6 +++---
security/py-paramiko/distinfo | 8 ++++----
2 files changed, 7 insertions(+), 7 deletions(-)
diffs (34 lines):
diff -r d72cfc12b271 -r cea2e33815c1 security/py-paramiko/Makefile
--- a/security/py-paramiko/Makefile Mon Nov 29 09:15:06 2021 +0000
+++ b/security/py-paramiko/Makefile Mon Nov 29 09:33:19 2021 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.41 2021/10/11 09:34:52 adam Exp $
+# $NetBSD: Makefile,v 1.42 2021/11/29 09:33:19 adam Exp $
-DISTNAME= paramiko-2.8.0
+DISTNAME= paramiko-2.8.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= security python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/paramiko/}
@@ -19,7 +19,7 @@
PYTHON_VERSIONED_DEPENDENCIES= test:test
do-test:
- cd ${WRKSRC} && pytest-${PYVERSSUFFIX} tests
+ cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests
.include "../../lang/python/egg.mk"
.include "../../lang/python/versioned_dependencies.mk"
diff -r d72cfc12b271 -r cea2e33815c1 security/py-paramiko/distinfo
--- a/security/py-paramiko/distinfo Mon Nov 29 09:15:06 2021 +0000
+++ b/security/py-paramiko/distinfo Mon Nov 29 09:33:19 2021 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.27 2021/10/26 11:17:48 nia Exp $
+$NetBSD: distinfo,v 1.28 2021/11/29 09:33:19 adam Exp $
-BLAKE2s (paramiko-2.8.0.tar.gz) = bccf92abda36cf9f580ff70c3083e4c9046f1d22bdd5de21e97cb5b104ce962e
-SHA512 (paramiko-2.8.0.tar.gz) = e989c922c66606abe103a8bad581d80e04847eaa64e9c7f819a87d099658ae723009840cc24e32048c81eec01de2d72fdc859d91fd618988c9b241e17ea11af7
-Size (paramiko-2.8.0.tar.gz) = 1063170 bytes
+BLAKE2s (paramiko-2.8.1.tar.gz) = 9e888506771d21939211445998131c75d6e402f7d4c53254fa606e8c41506963
+SHA512 (paramiko-2.8.1.tar.gz) = 6514a4eb415f0745bea5640e263b2db18422b1ded933ae55dae1693ea574258e26f5629b44b585b86180cc31e27a24bfeaf7f8530599bbc5c522727aba70ec1f
+Size (paramiko-2.8.1.tar.gz) = 1057497 bytes
Home |
Main Index |
Thread Index |
Old Index