Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Openfire
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Openfire
Commits
708ef85d
Commit
708ef85d
authored
Dec 13, 2015
by
Dave Cridland
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #446 from surevine/reflected-xss
Reflected XSS Issues in Admin Console
parents
8bb250ef
c784a6f2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
connection-settings-external-components.jsp
src/web/connection-settings-external-components.jsp
+4
-3
muc-room-edit-form.jsp
src/web/muc-room-edit-form.jsp
+2
-2
No files found.
src/web/connection-settings-external-components.jsp
View file @
708ef85d
...
...
@@ -15,6 +15,7 @@
<%@ taglib
uri=
"admin"
prefix=
"admin"
%>
<%@ taglib
uri=
"http://java.sun.com/jsp/jstl/core"
prefix=
"c"
%>
<%@ taglib
uri=
"http://java.sun.com/jsp/jstl/fmt"
prefix=
"fmt"
%>
<%@ taglib
uri=
"http://java.sun.com/jsp/jstl/functions"
prefix=
"fn"
%>
<jsp:useBean
id=
"webManager"
class=
"org.jivesoftware.util.WebManager"
/>
<%
webManager
.
init
(
request
,
response
,
session
,
application
,
out
);
%>
<%
...
...
@@ -503,7 +504,7 @@
<tr
valign=
"top"
>
<td
colspan=
"2"
>
<label
for=
"defaultSecret"
><fmt:message
key=
"component.settings.defaultSecret"
/></label>
<input
type=
"text"
size=
"15"
maxlength=
"70"
name=
"defaultSecret"
id=
"defaultSecret"
value=
"${
defaultSecret
}"
/>
<input
type=
"text"
size=
"15"
maxlength=
"70"
name=
"defaultSecret"
id=
"defaultSecret"
value=
"${
fn:escapeXml(defaultSecret)
}"
/>
</td>
</tr>
...
...
@@ -574,13 +575,13 @@
<label
for=
"componentAllowedSubdomain"
><fmt:message
key=
"component.settings.subdomain"
/></label>
</td>
<td>
<input
type=
"text"
size=
"40"
name=
"subdomain"
id=
"componentAllowedSubdomain"
value=
"${
param.containsKey('componentAllowed') and not empty errors ? param[ 'subdomain' ] : ''
}"
/>
<input
type=
"text"
size=
"40"
name=
"subdomain"
id=
"componentAllowedSubdomain"
value=
"${
fn:escapeXml(param.containsKey('componentAllowed') and not empty errors ? param[ 'subdomain' ] : '')
}"
/>
</td>
<td
nowrap
width=
"1%"
>
<label
for=
"componentAllowedSecret"
><fmt:message
key=
"component.settings.secret"
/></label>
</td>
<td>
<input
type=
"text"
size=
"15"
name=
"secret"
id=
"componentAllowedSecret"
value=
"${
param.containsKey('componentAllowed') and not empty errors ? param[ 'secret' ] : ''
}"
/>
<input
type=
"text"
size=
"15"
name=
"secret"
id=
"componentAllowedSecret"
value=
"${
fn:escapeXml(param.containsKey('componentAllowed') and not empty errors ? param[ 'secret' ] : '')
}"
/>
</td>
</tr>
<tr
align=
"center"
>
...
...
src/web/muc-room-edit-form.jsp
View file @
708ef85d
...
...
@@ -525,11 +525,11 @@
</tr>
<tr>
<td><fmt:message
key=
"muc.room.edit.form.required_password"
/>
:
</td>
<td><input
type=
"password"
name=
"roomconfig_roomsecret"
<%
if
(
password
!=
null
)
{
%>
value=
"
<%=
password
%>
"
<%
}
%>></td>
<td><input
type=
"password"
name=
"roomconfig_roomsecret"
<%
if
(
password
!=
null
)
{
%>
value=
"
<%=
(
password
==
null
?
""
:
StringUtils
.
escapeForXML
(
password
))
%>
"
<%
}
%>></td>
</tr>
<tr>
<td><fmt:message
key=
"muc.room.edit.form.confirm_password"
/>
:
</td>
<td><input
type=
"password"
name=
"roomconfig_roomsecret2"
<%
if
(
confirmPassword
!=
null
)
{
%>
value=
"
<%=
confirmPassword
%>
"
<%
}
%>>
<td><input
type=
"password"
name=
"roomconfig_roomsecret2"
<%
if
(
confirmPassword
!=
null
)
{
%>
value=
"
<%=
(
confirmPassword
==
null
?
""
:
StringUtils
.
escapeForXML
(
confirmPassword
))
%>
"
<%
}
%>>
</td>
</tr>
<tr>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment