From d1bff76723f2a19a70d1ca64abaea886927615b3 Mon Sep 17 00:00:00 2001
From: "patched.codes[bot]"
<298395+patched.codes[bot]@users.noreply.github.com>
Date: Wed, 8 May 2024 21:35:26 +0800
Subject: [PATCH 1/3] Patched WebContent/static/inside_about.htm
---
WebContent/static/inside_about.htm | 14 +++-----------
1 file changed, 3 insertions(+), 11 deletions(-)
diff --git a/WebContent/static/inside_about.htm b/WebContent/static/inside_about.htm
index cd5517e..668ad0a 100644
--- a/WebContent/static/inside_about.htm
+++ b/WebContent/static/inside_about.htm
@@ -1,25 +1,17 @@
-
About Altoro Mutual
Altoro Mutual offers a broad range of commercial, private, retail and mortgage banking services to small- and middle-market businesses and individuals.
-
We pride ourselves on constantly surpassing the demands of our most loyal customers. And, we are determined to help you stay ahead of your expectations. That is our commitment to you.
-
-
-
-

+
Altoro Mutual offers a broad range of commercial, private, retail and mortgage banking services to small- and middle-market businesses and individuals.
-
-Altoro Mutual offers a broad range of commercial, private, retail and mortgage banking services to small- and middle-market businesses and individuals.
-
-
\ No newline at end of file
+
From c01a1e2bfefee993bb6e0f613acc002b0a615147 Mon Sep 17 00:00:00 2001
From: "patched.codes[bot]"
<298395+patched.codes[bot]@users.noreply.github.com>
Date: Wed, 8 May 2024 21:35:26 +0800
Subject: [PATCH 2/3] Patched WebContent/swagger/lib/marked.js
---
WebContent/swagger/lib/marked.js | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/WebContent/swagger/lib/marked.js b/WebContent/swagger/lib/marked.js
index c2a678d..db09d32 100644
--- a/WebContent/swagger/lib/marked.js
+++ b/WebContent/swagger/lib/marked.js
@@ -308,7 +308,7 @@ Lexer.prototype.token = function(src, top, bq) {
if (~item.indexOf('\n ')) {
space -= item.length;
item = !this.options.pedantic
- ? item.replace(new RegExp('^ {1,' + space + '}', 'gm'), '')
+ ? item.replace(/^ {1,' + space + '}/gm, '')
: item.replace(/^ {1,4}/gm, '');
}
@@ -1098,11 +1098,10 @@ function unescape(html) {
function replace(regex, opt) {
regex = regex.source;
opt = opt || '';
- return function self(name, val) {
- if (!name) return new RegExp(regex, opt);
- val = val.source || val;
- val = val.replace(/(^|[^\[])\^/g, '$1');
- regex = regex.replace(name, val);
+ return function self(name) {
+ if (!name) return new RegExp(regex + opt);
+ let val = (name.source || name).replace(/(^|[^\[])\^/g, '$1');
+ regex = regex.replace(new RegExp(val, 'g'), val);
return self;
};
}
From e0e0751e3fad75d1557f082fc5def8511bc9da3d Mon Sep 17 00:00:00 2001
From: "patched.codes[bot]"
<298395+patched.codes[bot]@users.noreply.github.com>
Date: Wed, 8 May 2024 21:35:26 +0800
Subject: [PATCH 3/3] Patched
src/com/ibm/security/appscan/altoromutual/servlet/SurveyServlet.java
---
.../security/appscan/altoromutual/servlet/SurveyServlet.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/com/ibm/security/appscan/altoromutual/servlet/SurveyServlet.java b/src/com/ibm/security/appscan/altoromutual/servlet/SurveyServlet.java
index 40b8984..5f15b3c 100644
--- a/src/com/ibm/security/appscan/altoromutual/servlet/SurveyServlet.java
+++ b/src/com/ibm/security/appscan/altoromutual/servlet/SurveyServlet.java
@@ -95,10 +95,10 @@ else if (step.equals("done")){
content = "Request Out of Order
"+
"It appears that you attempted to skip or repeat some areas of this survey. Please return to the start page to begin again.
";
} else {
- request.getSession().setAttribute("surveyStep", step);
+ request.getSession().setAttribute("surveyStep", sanitizeInput(step));
}
response.setContentType("text/html");
- response.getWriter().write(content);
+ response.getWriter().write(URLEncoder.encode(content, "UTF-8").replace("%0A", "").replace("%0D", ""));
response.getWriter().flush();
}