Skip to content

Commit eee1b27

Browse files
authored
Patch CVE-2024-43796 in reaper (#10543)
1 parent b2015ea commit eee1b27

2 files changed

Lines changed: 30 additions & 1 deletion

File tree

SPECS/reaper/CVE-2024-43796.patch

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
From 77615000b4152081d05d16befd636c6e4274c9a4 Mon Sep 17 00:00:00 2001
2+
From: Rohit Rawat <xordux@gmail.com>
3+
Date: Wed, 25 Sep 2024 08:21:08 +0000
4+
Subject: [PATCH] CVE-2024-43796: don't render redirect values in anchor href
5+
6+
---
7+
src/ui/node_modules/express/lib/response.js | 2 +-
8+
1 file changed, 1 insertion(+), 1 deletion(-)
9+
10+
diff --git a/src/ui/node_modules/express/lib/response.js b/src/ui/node_modules/express/lib/response.js
11+
index dd7b3c82..54c0c8fa 100644
12+
--- a/src/ui/node_modules/express/lib/response.js
13+
+++ b/src/ui/node_modules/express/lib/response.js
14+
@@ -969,7 +969,7 @@ res.redirect = function redirect(url) {
15+
16+
html: function(){
17+
var u = escapeHtml(address);
18+
- body = '<p>' + statuses.message[status] + '. Redirecting to <a href="' + u + '">' + u + '</a></p>'
19+
+ body = '<p>' + statuses.message[status] + '. Redirecting to ' + u + '</p>'
20+
},
21+
22+
default: function(){
23+
--
24+
2.39.4
25+

SPECS/reaper/reaper.spec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Summary: Reaper for cassandra is a tool for running Apache Cassandra repairs against single or multi-site clusters.
77
Name: reaper
88
Version: 3.1.1
9-
Release: 11%{?dist}
9+
Release: 12%{?dist}
1010
License: ASL 2.0
1111
Vendor: Microsoft Corporation
1212
Distribution: Mariner
@@ -36,6 +36,7 @@ Patch0: CVE-2024-37890.patch
3636
Patch1: CVE-2023-42282.patch
3737
Patch2: CVE-2017-18214.patch
3838
Patch3: CVE-2024-42459.patch
39+
Patch4: CVE-2024-43796.patch
3940
BuildRequires: git
4041
BuildRequires: javapackages-tools
4142
BuildRequires: maven
@@ -172,6 +173,9 @@ fi
172173
%{_unitdir}/cassandra-%{name}.service
173174

174175
%changelog
176+
* Wed Sep 25 2024 Rohit Rawat <rohitrawat@microsoft.com> - 3.1.1-12
177+
- Patch CVE-2024-43796 in express module
178+
175179
* Tue Aug 20 2024 Cameron Baird <cameronbaird@microsoft.com> - 3.1.1-11
176180
- Introduce DER-signature-decoding-correction.patch to address CVE-2024-42459,
177181
- CVE-2024-42460, CVE-2024-42461

0 commit comments

Comments
 (0)