Blame SOURCES/gfbgraph-Fix-CVE-2021-39358-by-forcing-TLS-certificate-valida.patch
|
|
4e30fc |
From c294b06ec0f3a0b8e3f6292de962e048bbd7774a Mon Sep 17 00:00:00 2001
|
|
|
4e30fc |
From: "Douglas R. Reno" <renodr@linuxfromscratch.org>
|
|
|
4e30fc |
Date: Wed, 15 Sep 2021 17:40:00 +0000
|
|
|
4e30fc |
Subject: [PATCH] Fix CVE-2021-39358 by forcing TLS certificate validation.
|
|
|
4e30fc |
|
|
|
4e30fc |
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.
|
|
|
4e30fc |
|
|
|
4e30fc |
Tested on Linux From Scratch 11.0 and on Debian 11.
|
|
|
4e30fc |
|
|
|
4e30fc |
Fixes #17
|
|
|
4e30fc |
---
|
|
|
4e30fc |
gfbgraph/gfbgraph-photo.c | 1 +
|
|
|
4e30fc |
1 file changed, 1 insertion(+)
|
|
|
4e30fc |
|
|
|
4e30fc |
diff --git a/gfbgraph/gfbgraph-photo.c b/gfbgraph/gfbgraph-photo.c
|
|
|
4e30fc |
index 69eb98db2576..2ebb9aaf8db1 100644
|
|
|
4e30fc |
--- a/gfbgraph/gfbgraph-photo.c
|
|
|
4e30fc |
+++ b/gfbgraph/gfbgraph-photo.c
|
|
|
4e30fc |
@@ -422,6 +422,7 @@ gfbgraph_photo_download_default_size (GFBGraphPhoto *photo, GFBGraphAuthorizer *
|
|
|
4e30fc |
|
|
|
4e30fc |
session = soup_session_sync_new ();
|
|
|
4e30fc |
requester = soup_requester_new ();
|
|
|
4e30fc |
+ g_object_set (G_OBJECT (session), "ssl-use-system-ca-file", TRUE, NULL);
|
|
|
4e30fc |
soup_session_add_feature (session, SOUP_SESSION_FEATURE (requester));
|
|
|
4e30fc |
|
|
|
4e30fc |
request = soup_requester_request (requester, priv->source, error);
|
|
|
4e30fc |
--
|
|
|
4e30fc |
2.31.1
|
|
|
4e30fc |
|