Blame SOURCES/gfbgraph-Fix-CVE-2021-39358-by-forcing-TLS-certificate-valida.patch
Branch: 653b033df8491c24d01c181893f34c42a9022311
653b03
From c294b06ec0f3a0b8e3f6292de962e048bbd7774a Mon Sep 17 00:00:00 2001
653b03
From: "Douglas R. Reno" <renodr@linuxfromscratch.org>
653b03
Date: Wed, 15 Sep 2021 17:40:00 +0000
653b03
Subject: [PATCH] Fix CVE-2021-39358 by forcing TLS certificate validation.
653b03
653b03
This is similar to the fix performed in other packages. See https://gitlab.gnome.org/Teams/Releng/security/-/issues/57 for more details. Note that this is my first non-documentation commit to a GNOME package, but I'm a distributor and want to see this fixed.
653b03
653b03
Tested on Linux From Scratch 11.0 and on Debian 11.
653b03
653b03
Fixes #17
653b03
---
653b03
gfbgraph/gfbgraph-photo.c | 1 +
653b03
1 file changed, 1 insertion(+)
653b03
653b03
diff --git a/gfbgraph/gfbgraph-photo.c b/gfbgraph/gfbgraph-photo.c
653b03
index 69eb98db2576..2ebb9aaf8db1 100644
653b03
--- a/gfbgraph/gfbgraph-photo.c
653b03
+++ b/gfbgraph/gfbgraph-photo.c
653b03
@@ -422,6 +422,7 @@ gfbgraph_photo_download_default_size (GFBGraphPhoto *photo, GFBGraphAuthorizer *
653b03
653b03
session = soup_session_sync_new ();
653b03
requester = soup_requester_new ();
653b03
+ g_object_set (G_OBJECT (session), "ssl-use-system-ca-file", TRUE, NULL);
653b03
soup_session_add_feature (session, SOUP_SESSION_FEATURE (requester));
653b03
653b03
request = soup_requester_request (requester, priv->source, error);
653b03
--
653b03
2.31.1
653b03