Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.3:Update
kdeconnect-kde.16873
0008-Limit-the-ports-we-try-to-connect-to-to-th...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0008-Limit-the-ports-we-try-to-connect-to-to-the-port-ran.patch of Package kdeconnect-kde.16873
From 6ba5a2c7ab57c0ebf82842eb4ff67cfe2da6990b Mon Sep 17 00:00:00 2001 From: Albert Vaca Cintora <albertvaka@gmail.com> Date: Thu, 24 Sep 2020 17:18:06 +0200 Subject: [PATCH 8/9] Limit the ports we try to connect to to the port range of KDE Connect So we can't trigger connections to other services. Thanks Matthias Gerstner <mgerstner@suse.de> for reporting this. --- core/backends/lan/lanlinkprovider.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/backends/lan/lanlinkprovider.cpp b/core/backends/lan/lanlinkprovider.cpp index 4a8596ff..8e0bad0a 100644 --- a/core/backends/lan/lanlinkprovider.cpp +++ b/core/backends/lan/lanlinkprovider.cpp @@ -223,6 +223,11 @@ void LanLinkProvider::udpBroadcastReceived() } int tcpPort = receivedPacket->get<int>(QStringLiteral("tcpPort")); + if (tcpPort < MIN_TCP_PORT || tcpPort > MAX_TCP_PORT) { + qCDebug(KDECONNECT_CORE) << "TCP port outside of kdeconnect's range"; + delete receivedPacket; + continue; + } //qCDebug(KDECONNECT_CORE) << "Received Udp identity packet from" << sender << " asking for a tcp connection on port " << tcpPort; -- 2.28.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor