Commit d17904be authored by Dave Cridland's avatar Dave Cridland

OF-777 CVE-2015-6973 CSRF protection (part 3)

parent d28e19d2
...@@ -200,7 +200,7 @@ ...@@ -200,7 +200,7 @@
<!-- BEGIN 'Set Message Audit Policy' --> <!-- BEGIN 'Set Message Audit Policy' -->
<form action="audit-policy.jsp" name="f"> <form action="audit-policy.jsp" name="f">
<input type="hidden" name="csrf" value="csrf"> <input type="hidden" name="csrf" value="${csrf}">
<div class="jive-contentBoxHeader"> <div class="jive-contentBoxHeader">
<fmt:message key="audit.policy.policytitle" /> <fmt:message key="audit.policy.policytitle" />
</div> </div>
......
...@@ -28,6 +28,9 @@ ...@@ -28,6 +28,9 @@
<%@ page import="java.util.Comparator" %> <%@ page import="java.util.Comparator" %>
<%@ page import="java.util.List" %> <%@ page import="java.util.List" %>
<%@ page import="org.jivesoftware.util.JiveGlobals"%> <%@ page import="org.jivesoftware.util.JiveGlobals"%>
<%@ page import="org.jivesoftware.util.StringUtils"%>
<%@ page import="org.jivesoftware.util.ParamUtils"%>
<%@ page import="org.jivesoftware.util.CookieUtils"%>
<%@ page import="java.util.Date"%> <%@ page import="java.util.Date"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
...@@ -39,6 +42,17 @@ ...@@ -39,6 +42,17 @@
<% <%
boolean downloadRequested = request.getParameter("download") != null; boolean downloadRequested = request.getParameter("download") != null;
String url = request.getParameter("url"); String url = request.getParameter("url");
Cookie csrfCookie = CookieUtils.getCookie(request, "csrf");
String csrfParam = ParamUtils.getParameter(request, "csrf");
if (downloadRequested) {
if (csrfCookie == null || csrfParam == null || !csrfCookie.getValue().equals(csrfParam)) {
downloadRequested = false;
}
}
csrfParam = StringUtils.randomString(15);
CookieUtils.setCookie(request, response, "csrf", csrfParam, -1);
pageContext.setAttribute("csrf", csrfParam);
UpdateManager updateManager = XMPPServer.getInstance().getUpdateManager(); UpdateManager updateManager = XMPPServer.getInstance().getUpdateManager();
List<AvailablePlugin> plugins = updateManager.getNotInstalledPlugins(); List<AvailablePlugin> plugins = updateManager.getNotInstalledPlugins();
......
...@@ -128,7 +128,7 @@ ...@@ -128,7 +128,7 @@
</p> </p>
<form action="chatroom-history-settings.jsp" method="post"> <form action="chatroom-history-settings.jsp" method="post">
<input type="hidden" name="csrf" value="csrf"> <input type="hidden" name="csrf" value="${csrf}">
<fieldset> <fieldset>
<legend><fmt:message key="chatroom.history.settings.policy" /></legend> <legend><fmt:message key="chatroom.history.settings.policy" /></legend>
......
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
<!-- BEGIN compression settings --> <!-- BEGIN compression settings -->
<form action="compression-settings.jsp"> <form action="compression-settings.jsp">
<input type="hidden" name="csrf" value="csrf"> <input type="hidden" name="csrf" value="${csrf}">
<div class="jive-contentBox" style="-moz-border-radius: 3px;"> <div class="jive-contentBox" style="-moz-border-radius: 3px;">
......
...@@ -180,7 +180,7 @@ ...@@ -180,7 +180,7 @@
<% } %> <% } %>
<form action="connection-managers-settings.jsp" method="post"> <form action="connection-managers-settings.jsp" method="post">
<input type="hidden" name="csrf" value="csrf"> <input type="hidden" name="csrf" value="${csrf}">
<fieldset> <fieldset>
<div> <div>
......
...@@ -295,7 +295,7 @@ ...@@ -295,7 +295,7 @@
</p> </p>
<form action="connection-settings-advanced.jsp?connectionType=${connectionType}&connectionMode=${connectionMode}" onsubmit="selectAllOptions('cipherSuitesEnabled')" method="post"> <form action="connection-settings-advanced.jsp?connectionType=${connectionType}&connectionMode=${connectionMode}" onsubmit="selectAllOptions('cipherSuitesEnabled')" method="post">
<input type="hidden" name="csrf" value="csrf"> <input type="hidden" name="csrf" value="${csrf}">
<input type="hidden" name="update" value="true" /> <input type="hidden" name="update" value="true" />
<fmt:message key="connection.advanced.settings.tcp.boxtitle" var="tcpboxtitle"/> <fmt:message key="connection.advanced.settings.tcp.boxtitle" var="tcpboxtitle"/>
......
...@@ -286,7 +286,7 @@ ...@@ -286,7 +286,7 @@
</p> </p>
<form action="connection-settings-external-components.jsp" method="post"> <form action="connection-settings-external-components.jsp" method="post">
<input type="hidden" name="csrf" value="csrf"> <input type="hidden" name="csrf" value="${csrf}">
<fmt:message key="component.settings.plaintext.boxtitle" var="plaintextboxtitle"/> <fmt:message key="component.settings.plaintext.boxtitle" var="plaintextboxtitle"/>
<admin:contentBox title="${plaintextboxtitle}"> <admin:contentBox title="${plaintextboxtitle}">
...@@ -335,7 +335,7 @@ ...@@ -335,7 +335,7 @@
<fmt:message key="component.settings.allowed" var="allowedTitle" /> <fmt:message key="component.settings.allowed" var="allowedTitle" />
<admin:contentBox title="${allowedTitle}"> <admin:contentBox title="${allowedTitle}">
<form action="connection-settings-external-components.jsp" method="post"> <form action="connection-settings-external-components.jsp" method="post">
<input type="hidden" name="csrf" value="csrf"> <input type="hidden" name="csrf" value="${csrf}">
<table cellpadding="3" cellspacing="0" border="0" width="100%" > <table cellpadding="3" cellspacing="0" border="0" width="100%" >
<tr valign="top"> <tr valign="top">
<td colspan="2"> <td colspan="2">
...@@ -409,7 +409,7 @@ ...@@ -409,7 +409,7 @@
<br/> <br/>
<form action="connection-settings-external-components.jsp" method="post"> <form action="connection-settings-external-components.jsp" method="post">
<input type="hidden" name="csrf" value="csrf"> <input type="hidden" name="csrf" value="${csrf}">
<table cellpadding="3" cellspacing="1" border="0"> <table cellpadding="3" cellspacing="1" border="0">
<tr> <tr>
<td nowrap width="1%"> <td nowrap width="1%">
...@@ -473,7 +473,7 @@ ...@@ -473,7 +473,7 @@
<br/> <br/>
<form action="connection-settings-external-components.jsp" method="post"> <form action="connection-settings-external-components.jsp" method="post">
<input type="hidden" name="csrf" value="csrf"> <input type="hidden" name="csrf" value="${csrf}">
<table cellpadding="3" cellspacing="1" border="0"> <table cellpadding="3" cellspacing="1" border="0">
<tr> <tr>
<td nowrap width="1%"> <td nowrap width="1%">
......
...@@ -140,7 +140,7 @@ ...@@ -140,7 +140,7 @@
</p> </p>
<form action="connection-settings-socket-c2s.jsp" method="post"> <form action="connection-settings-socket-c2s.jsp" method="post">
<input type="hidden" name="csrf" value="csrf"> <input type="hidden" name="csrf" value="${csrf}">
<fmt:message key="ssl.settings.client.plaintext.boxtitle" var="plaintextboxtitle"/> <fmt:message key="ssl.settings.client.plaintext.boxtitle" var="plaintextboxtitle"/>
<admin:contentBox title="${plaintextboxtitle}"> <admin:contentBox title="${plaintextboxtitle}">
......
...@@ -279,7 +279,7 @@ ...@@ -279,7 +279,7 @@
</p> </p>
<form action="connection-settings-socket-s2s.jsp" method="post"> <form action="connection-settings-socket-s2s.jsp" method="post">
<input type="hidden" name="csrf" value="csrf"> <input type="hidden" name="csrf" value="${csrf}">
<fmt:message key="server2server.settings.boxtitle" var="boxtitle"/> <fmt:message key="server2server.settings.boxtitle" var="boxtitle"/>
<admin:contentBox title="${boxtitle}"> <admin:contentBox title="${boxtitle}">
...@@ -308,7 +308,7 @@ ...@@ -308,7 +308,7 @@
<!-- BEGIN 'Idle Connection Settings' --> <!-- BEGIN 'Idle Connection Settings' -->
<form action="connection-settings-socket-s2s.jsp?closeSettings" method="post"> <form action="connection-settings-socket-s2s.jsp?closeSettings" method="post">
<input type="hidden" name="csrf" value="csrf"> <input type="hidden" name="csrf" value="${csrf}">
<fmt:message key="server2server.settings.close_settings" var="idleTitle"/> <fmt:message key="server2server.settings.close_settings" var="idleTitle"/>
<admin:contentBox title="${idleTitle}"> <admin:contentBox title="${idleTitle}">
<table cellpadding="3" cellspacing="0" border="0"> <table cellpadding="3" cellspacing="0" border="0">
...@@ -348,7 +348,7 @@ ...@@ -348,7 +348,7 @@
<fmt:message key="server2server.settings.allowed" var="allowedTitle"/> <fmt:message key="server2server.settings.allowed" var="allowedTitle"/>
<admin:contentBox title="${allowedTitle}"> <admin:contentBox title="${allowedTitle}">
<form action="connection-settings-socket-s2s.jsp" method="post"> <form action="connection-settings-socket-s2s.jsp" method="post">
<input type="hidden" name="csrf" value="csrf"> <input type="hidden" name="csrf" value="${csrf}">
<table cellpadding="3" cellspacing="0" border="0"> <table cellpadding="3" cellspacing="0" border="0">
<tr valign="top"> <tr valign="top">
<td width="1%" nowrap> <td width="1%" nowrap>
...@@ -377,7 +377,7 @@ ...@@ -377,7 +377,7 @@
</form> </form>
<form action="connection-settings-socket-s2s.jsp" method="post"> <form action="connection-settings-socket-s2s.jsp" method="post">
<input type="hidden" name="csrf" value="csrf"> <input type="hidden" name="csrf" value="${csrf}">
<table class="jive-table" cellpadding="0" cellspacing="0" border="0" width="100%"> <table class="jive-table" cellpadding="0" cellspacing="0" border="0" width="100%">
<tr> <tr>
<th width="1%">&nbsp;</th> <th width="1%">&nbsp;</th>
...@@ -469,7 +469,7 @@ ...@@ -469,7 +469,7 @@
</table> </table>
<br> <br>
<form action="connection-settings-socket-s2s.jsp" method="post"> <form action="connection-settings-socket-s2s.jsp" method="post">
<input type="hidden" name="csrf" value="csrf"> <input type="hidden" name="csrf" value="${csrf}">
<table cellpadding="3" cellspacing="1" border="0" width="100%"> <table cellpadding="3" cellspacing="1" border="0" width="100%">
<tr> <tr>
<td nowrap width="1%"> <td nowrap width="1%">
......
...@@ -128,7 +128,7 @@ else { %> ...@@ -128,7 +128,7 @@ else { %>
<!-- BEGIN 'Proxy Service' --> <!-- BEGIN 'Proxy Service' -->
<form action="file-transfer-proxy.jsp" method="post"> <form action="file-transfer-proxy.jsp" method="post">
<input type="hidden" name="csrf" value="csrf"> <input type="hidden" name="csrf" value="${csrf}">
<div class="jive-contentBoxHeader"> <div class="jive-contentBoxHeader">
<fmt:message key="filetransferproxy.settings.enabled.legend"/> <fmt:message key="filetransferproxy.settings.enabled.legend"/>
</div> </div>
......
...@@ -201,7 +201,7 @@ ...@@ -201,7 +201,7 @@
</p> </p>
<form name="f" action="group-create.jsp" method="post"> <form name="f" action="group-create.jsp" method="post">
<input type="hidden" name="csrf" value="csrf"> <input type="hidden" name="csrf" value="${csrf}">
<% if (groupName != null) { %> <% if (groupName != null) { %>
<input type="hidden" name="group" value="<%= StringUtils.escapeForXML(groupName) %>" id="existingName"> <input type="hidden" name="group" value="<%= StringUtils.escapeForXML(groupName) %>" id="existingName">
......
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
</p> </p>
<form action="group-delete.jsp"> <form action="group-delete.jsp">
<input type="hidden" name="csrf" value="csrf"> <input type="hidden" name="csrf" value="${csrf}">
<input type="hidden" name="group" value="<%= StringUtils.escapeForXML(groupName) %>"> <input type="hidden" name="group" value="<%= StringUtils.escapeForXML(groupName) %>">
<input type="submit" name="delete" value="<fmt:message key="group.delete.delete" />"> <input type="submit" name="delete" value="<fmt:message key="group.delete.delete" />">
<input type="submit" name="cancel" value="<fmt:message key="global.cancel" />"> <input type="submit" name="cancel" value="<fmt:message key="global.cancel" />">
......
...@@ -341,7 +341,7 @@ ...@@ -341,7 +341,7 @@
<div class="jive-horizontalRule"></div> <div class="jive-horizontalRule"></div>
<form name="ff" action="group-edit.jsp"> <form name="ff" action="group-edit.jsp">
<input type="hidden" name="csrf" value="csrf"> <input type="hidden" name="csrf" value="${csrf}">
<input type="hidden" name="group" value="<%= StringUtils.escapeForXML(groupName) %>"/> <input type="hidden" name="group" value="<%= StringUtils.escapeForXML(groupName) %>"/>
...@@ -496,7 +496,7 @@ ...@@ -496,7 +496,7 @@
</p> </p>
<form action="group-edit.jsp" method="post" name="f"> <form action="group-edit.jsp" method="post" name="f">
<input type="hidden" name="csrf" value="csrf"> <input type="hidden" name="csrf" value="${csrf}">
<input type="hidden" name="group" value="<%= StringUtils.escapeForXML(groupName) %>"> <input type="hidden" name="group" value="<%= StringUtils.escapeForXML(groupName) %>">
<input type="hidden" name="add" value="Add"/> <input type="hidden" name="add" value="Add"/>
<table cellpadding="3" cellspacing="1" border="0" style="margin: 0 0 8px 0;"> <table cellpadding="3" cellspacing="1" border="0" style="margin: 0 0 8px 0;">
...@@ -515,7 +515,7 @@ ...@@ -515,7 +515,7 @@
<% } %> <% } %>
<form action="group-edit.jsp" method="post" name="main"> <form action="group-edit.jsp" method="post" name="main">
<input type="hidden" name="csrf" value="csrf"> <input type="hidden" name="csrf" value="${csrf}">
<input type="hidden" name="group" value="<%= StringUtils.escapeForXML(groupName) %>"> <input type="hidden" name="group" value="<%= StringUtils.escapeForXML(groupName) %>">
<table class="jive-table" cellpadding="3" cellspacing="0" border="0" width="435"> <table class="jive-table" cellpadding="3" cellspacing="0" border="0" width="435">
<tr> <tr>
......
...@@ -157,7 +157,7 @@ ...@@ -157,7 +157,7 @@
} %> } %>
<form action="http-bind.jsp" method="post"> <form action="http-bind.jsp" method="post">
<input type="hidden" name="csrf" value="csrf"> <input type="hidden" name="csrf" value="${csrf}">
<div class="jive-contentBox" style="-moz-border-radius: 3px;"> <div class="jive-contentBox" style="-moz-border-radius: 3px;">
<table cellpadding="3" cellspacing="0" border="0"> <table cellpadding="3" cellspacing="0" border="0">
......
...@@ -121,7 +121,7 @@ ...@@ -121,7 +121,7 @@
<!-- BEGIN 'Import Private Key and Certificate' --> <!-- BEGIN 'Import Private Key and Certificate' -->
<form action="import-keystore-certificate.jsp?connectionType=${connectionType}" method="post"> <form action="import-keystore-certificate.jsp?connectionType=${connectionType}" method="post">
<input type="hidden" name="csrf" value="csrf"> <input type="hidden" name="csrf" value="${csrf}">
<c:set var="title"><fmt:message key="ssl.import.certificate.keystore.private-key.title"/></c:set> <c:set var="title"><fmt:message key="ssl.import.certificate.keystore.private-key.title"/></c:set>
<admin:contentBox title="${title}"> <admin:contentBox title="${title}">
......
...@@ -143,7 +143,7 @@ else if (updateSucess) { %> ...@@ -143,7 +143,7 @@ else if (updateSucess) { %>
<!-- BEGIN manage updates settings --> <!-- BEGIN manage updates settings -->
<form action="manage-updates.jsp" method="post"> <form action="manage-updates.jsp" method="post">
<input type="hidden" name="csrf" value="csrf"> <input type="hidden" name="csrf" value="${csrf}">
<!--<div class="jive-contentBoxHeader"> <!--<div class="jive-contentBoxHeader">
</div>--> </div>-->
......
...@@ -141,7 +141,7 @@ ...@@ -141,7 +141,7 @@
<% } %> <% } %>
<form action="media-proxy.jsp" method="post"> <form action="media-proxy.jsp" method="post">
<input type="hidden" name="csrf" value="csrf"> <input type="hidden" name="csrf" value="${csrf}">
<div class="jive-contentBoxHeader"> <div class="jive-contentBoxHeader">
<fmt:message key="mediaproxy.form.label"/> <fmt:message key="mediaproxy.form.label"/>
</div> </div>
...@@ -336,7 +336,7 @@ ...@@ -336,7 +336,7 @@
</tbody> </tbody>
</table> </table>
<form action=""> <form action="">
<input type="hidden" name="csrf" value="csrf"> <input type="hidden" name="csrf" value="${csrf}">
<input type="submit" name="stop" value="<fmt:message key="mediaproxy.summary.stopbutton" />"/> <input type="submit" name="stop" value="<fmt:message key="mediaproxy.summary.stopbutton" />"/>
</form> </form>
</div> </div>
......
...@@ -205,7 +205,7 @@ ...@@ -205,7 +205,7 @@
<!-- BEGIN 'Permission Policy' --> <!-- BEGIN 'Permission Policy' -->
<form action="muc-create-permission.jsp?save" method="post"> <form action="muc-create-permission.jsp?save" method="post">
<input type="hidden" name="csrf" value="csrf"> <input type="hidden" name="csrf" value="${csrf}">
<input type="hidden" name="mucname" value="<%= StringUtils.escapeForXML(mucname) %>" /> <input type="hidden" name="mucname" value="<%= StringUtils.escapeForXML(mucname) %>" />
<div class="jive-contentBoxHeader"> <div class="jive-contentBoxHeader">
<fmt:message key="muc.create.permission.policy" /> <fmt:message key="muc.create.permission.policy" />
...@@ -245,7 +245,7 @@ ...@@ -245,7 +245,7 @@
<% if (mucService.isRoomCreationRestricted()) { %> <% if (mucService.isRoomCreationRestricted()) { %>
<!-- BEGIN 'Allowed Users' --> <!-- BEGIN 'Allowed Users' -->
<form action="muc-create-permission.jsp?add" method="post"> <form action="muc-create-permission.jsp?add" method="post">
<input type="hidden" name="csrf" value="csrf"> <input type="hidden" name="csrf" value="${csrf}">
<input type="hidden" name="mucname" value="<%= StringUtils.escapeForXML(mucname) %>" /> <input type="hidden" name="mucname" value="<%= StringUtils.escapeForXML(mucname) %>" />
<div class="jive-contentBoxHeader"> <div class="jive-contentBoxHeader">
<fmt:message key="muc.create.permission.allowed_users" /> <fmt:message key="muc.create.permission.allowed_users" />
......
...@@ -194,7 +194,7 @@ ...@@ -194,7 +194,7 @@
<!-- BEGIN 'Default Room Settings' --> <!-- BEGIN 'Default Room Settings' -->
<form action="muc-default-settings.jsp?save" method="post"> <form action="muc-default-settings.jsp?save" method="post">
<input type="hidden" name="csrf" value="csrf"> <input type="hidden" name="csrf" value="${csrf}">
<input type="hidden" name="mucname" value="<%= StringUtils.escapeForXML(mucname) %>" /> <input type="hidden" name="mucname" value="<%= StringUtils.escapeForXML(mucname) %>" />
<div class="jive-contentBoxHeader"> <div class="jive-contentBoxHeader">
<fmt:message key="muc.default.settings.title" /> <fmt:message key="muc.default.settings.title" />
......
...@@ -147,7 +147,7 @@ ...@@ -147,7 +147,7 @@
<!-- BEGIN 'History Settings' --> <!-- BEGIN 'History Settings' -->
<form action="muc-history-settings.jsp" method="post"> <form action="muc-history-settings.jsp" method="post">
<input type="hidden" name="csrf" value="csrf"> <input type="hidden" name="csrf" value="${csrf}">
<input type="hidden" name="mucname" value="<%= StringUtils.escapeForXML(mucname) %>" /> <input type="hidden" name="mucname" value="<%= StringUtils.escapeForXML(mucname) %>" />
<div class="jive-contentBoxHeader"> <div class="jive-contentBoxHeader">
<fmt:message key="groupchat.history.settings.legend" /> <fmt:message key="groupchat.history.settings.legend" />
......
...@@ -227,7 +227,7 @@ ...@@ -227,7 +227,7 @@
<% } %> <% } %>
<form action="muc-room-affiliations.jsp?add" method="post"> <form action="muc-room-affiliations.jsp?add" method="post">
<input type="hidden" name="csrf" value="csrf"> <input type="hidden" name="csrf" value="${csrf}">
<input type="hidden" name="roomJID" value="<%= roomJID.toBareJID() %>"> <input type="hidden" name="roomJID" value="<%= roomJID.toBareJID() %>">
<fieldset> <fieldset>
......
...@@ -104,7 +104,7 @@ ...@@ -104,7 +104,7 @@
</p> </p>
<form action="muc-room-delete.jsp"> <form action="muc-room-delete.jsp">
<input type="hidden" name="csrf" value="csrf"> <input type="hidden" name="csrf" value="${csrf}">
<input type="hidden" name="roomJID" value="<%= StringUtils.escapeForXML(roomJID.toBareJID()) %>"> <input type="hidden" name="roomJID" value="<%= StringUtils.escapeForXML(roomJID.toBareJID()) %>">
<fieldset> <fieldset>
......
...@@ -458,7 +458,7 @@ ...@@ -458,7 +458,7 @@
<% if (!create) { %> <% if (!create) { %>
<input type="hidden" name="roomJID" value="<%= StringUtils.escapeForXML(roomJID.toBareJID()) %>"> <input type="hidden" name="roomJID" value="<%= StringUtils.escapeForXML(roomJID.toBareJID()) %>">
<% } %> <% } %>
<input type="hidden" name="csrf" value="csrf"> <input type="hidden" name="csrf" value="${csrf}">
<input type="hidden" name="save" value="true"> <input type="hidden" name="save" value="true">
<input type="hidden" name="create" value="<%= create %>"> <input type="hidden" name="create" value="<%= create %>">
<input type="hidden" name="roomconfig_persistentroom" value="<%= persistentRoom %>"> <input type="hidden" name="roomconfig_persistentroom" value="<%= persistentRoom %>">
......
...@@ -89,6 +89,7 @@ ...@@ -89,6 +89,7 @@
</p> </p>
<form action="muc-service-delete.jsp"> <form action="muc-service-delete.jsp">
<input type="hidden" name="csrf" value="${csrf}">
<input type="hidden" name="mucname" value="<%= StringUtils.escapeForXML(mucname) %>"> <input type="hidden" name="mucname" value="<%= StringUtils.escapeForXML(mucname) %>">
<fieldset> <fieldset>
......
...@@ -165,7 +165,7 @@ ...@@ -165,7 +165,7 @@
<!-- BEGIN 'Service Name'--> <!-- BEGIN 'Service Name'-->
<form action="muc-service-edit-form.jsp" method="post"> <form action="muc-service-edit-form.jsp" method="post">
<input type="hidden" name="csrf" value="csrf"> <input type="hidden" name="csrf" value="${csrf}">
<input type="hidden" name="save" value="true"> <input type="hidden" name="save" value="true">
<% if (!create) { %> <% if (!create) { %>
<input type="hidden" name="mucname" value="<%= StringUtils.escapeForXML(mucname) %>"> <input type="hidden" name="mucname" value="<%= StringUtils.escapeForXML(mucname) %>">
......
...@@ -176,7 +176,7 @@ ...@@ -176,7 +176,7 @@
<!-- BEGIN 'Administrators' --> <!-- BEGIN 'Administrators' -->
<form action="muc-sysadmins.jsp?add" method="post"> <form action="muc-sysadmins.jsp?add" method="post">
<input type="hidden" name="csrf" value="csrf"> <input type="hidden" name="csrf" value="${csrf}">
<input type="hidden" name="mucname" value="<%= StringUtils.escapeForXML(mucname) %>" /> <input type="hidden" name="mucname" value="<%= StringUtils.escapeForXML(mucname) %>" />
<div class="jive-contentBoxHeader"> <div class="jive-contentBoxHeader">
<fmt:message key="groupchat.admins.legend" /> <fmt:message key="groupchat.admins.legend" />
......
...@@ -200,7 +200,7 @@ ...@@ -200,7 +200,7 @@
<!-- BEGIN 'Idle User Settings' --> <!-- BEGIN 'Idle User Settings' -->
<form action="muc-tasks.jsp?kickSettings" method="post"> <form action="muc-tasks.jsp?kickSettings" method="post">
<input type="hidden" name="csrf" value="csrf"> <input type="hidden" name="csrf" value="${csrf}">
<input type="hidden" name="mucname" value="<%= StringUtils.escapeForXML(mucname) %>" /> <input type="hidden" name="mucname" value="<%= StringUtils.escapeForXML(mucname) %>" />
<div class="jive-contentBoxHeader"> <div class="jive-contentBoxHeader">
<fmt:message key="muc.tasks.user_setting" /> <fmt:message key="muc.tasks.user_setting" />
...@@ -242,7 +242,7 @@ ...@@ -242,7 +242,7 @@
<!-- BEGIN 'Conversation Logging' --> <!-- BEGIN 'Conversation Logging' -->
<form action="muc-tasks.jsp?logSettings" method="post"> <form action="muc-tasks.jsp?logSettings" method="post">
<input type="hidden" name="csrf" value="csrf"> <input type="hidden" name="csrf" value="${csrf}">
<input type="hidden" name="mucname" value="<%= StringUtils.escapeForXML(mucname) %>" /> <input type="hidden" name="mucname" value="<%= StringUtils.escapeForXML(mucname) %>" />
<div class="jive-contentBoxHeader"> <div class="jive-contentBoxHeader">
<fmt:message key="muc.tasks.conversation.logging" /> <fmt:message key="muc.tasks.conversation.logging" />
......
...@@ -211,7 +211,7 @@ ...@@ -211,7 +211,7 @@
<!-- BEGIN 'Offline Message Policy' --> <!-- BEGIN 'Offline Message Policy' -->
<form action="offline-messages.jsp"> <form action="offline-messages.jsp">
<input type="hidden" name="csrf" value="csrf"> <input type="hidden" name="csrf" value="${csrf}">
<div class="jive-contentBoxHeader"> <div class="jive-contentBoxHeader">
<fmt:message key="offline.messages.policy" /> <fmt:message key="offline.messages.policy" />
</div> </div>
......
...@@ -645,7 +645,7 @@ else if ("false".equals(request.getParameter("uploadsuccess"))) { %> ...@@ -645,7 +645,7 @@ else if ("false".equals(request.getParameter("uploadsuccess"))) { %>
<h3><fmt:message key="plugin.admin.upload_plugin" /></h3> <h3><fmt:message key="plugin.admin.upload_plugin" /></h3>
<p><fmt:message key="plugin.admin.upload_plugin.info" /></p> <p><fmt:message key="plugin.admin.upload_plugin.info" /></p>
<form action="plugin-admin.jsp?uploadplugin" enctype="multipart/form-data" method="post"> <form action="plugin-admin.jsp?uploadplugin" enctype="multipart/form-data" method="post">
<input type="hidden" name="csrf" value="csrf"> <input type="hidden" name="csrf" value="${csrf}">
<input type="file" name="uploadfile" /> <input type="file" name="uploadfile" />
<input type="submit" value="<fmt:message key="plugin.admin.upload_plugin" />" /> <input type="submit" value="<fmt:message key="plugin.admin.upload_plugin" />" />
</form> </form>
......
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
<!-- BEGIN 'Set Private Data Policy' --> <!-- BEGIN 'Set Private Data Policy' -->
<form action="private-data-settings.jsp"> <form action="private-data-settings.jsp">
<input type="hidden" name="csrf" value="csrf"> <input type="hidden" name="csrf" value="${csrf}">
<div class="jive-contentBoxHeader"> <div class="jive-contentBoxHeader">
<fmt:message key="private.data.settings.policy" /> <fmt:message key="private.data.settings.policy" />
</div> </div>
......
...@@ -151,7 +151,7 @@ ...@@ -151,7 +151,7 @@
</p> </p>
<form action="reg-settings.jsp"> <form action="reg-settings.jsp">
<input type="hidden" name="csrf" value="csrf"> <input type="hidden" name="csrf" value="${csrf}">
<% if (save) { %> <% if (save) { %>
......
...@@ -145,7 +145,7 @@ ...@@ -145,7 +145,7 @@
</c:set> </c:set>
<form action="security-certificate-store-management.jsp" method="post"> <form action="security-certificate-store-management.jsp" method="post">
<input type="hidden" name="csrf" value="csrf"> <input type="hidden" name="csrf" value="${csrf}">
<input type="hidden" name="connectionType" value="${connectionType}"/> <input type="hidden" name="connectionType" value="${connectionType}"/>
<admin:contentBox title="${title}"> <admin:contentBox title="${title}">
......
...@@ -173,7 +173,7 @@ ...@@ -173,7 +173,7 @@
<!-- BEGIN 'Issuer information form' --> <!-- BEGIN 'Issuer information form' -->
<form action="security-keystore-signing-request.jsp" method="post"> <form action="security-keystore-signing-request.jsp" method="post">
<input type="hidden" name="csrf" value="csrf"> <input type="hidden" name="csrf" value="${csrf}">
<input type="hidden" name="save" value="true"> <input type="hidden" name="save" value="true">
<input type="hidden" name="connectionType" value="${connectionType}"> <input type="hidden" name="connectionType" value="${connectionType}">
<div class="jive-contentBoxHeader"> <div class="jive-contentBoxHeader">
......
...@@ -330,7 +330,7 @@ ...@@ -330,7 +330,7 @@
<% if (isSigningPending) { %> <% if (isSigningPending) { %>
<form action="security-keystore.jsp?connectionType=${connectionType}" method="post"> <form action="security-keystore.jsp?connectionType=${connectionType}" method="post">
<input type="hidden" name="csrf" value="csrf"> <input type="hidden" name="csrf" value="${csrf}">
<input type="hidden" name="importReply" value="true"> <input type="hidden" name="importReply" value="true">
<input type="hidden" name="alias" value="${alias}"> <input type="hidden" name="alias" value="${alias}">
<tr> <tr>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment