Security: XSS can be injected in the group edit view

This commit is contained in:
Stig Lindqvist 2014-07-31 09:51:06 +12:00
parent 205754854c
commit bd5bd877fd
2 changed files with 4 additions and 1 deletions

View File

@ -56,6 +56,9 @@ class GroupSubsites extends DataExtension implements PermissionProvider {
$subsites = Subsite::accessible_sites(array('ADMIN', 'SECURITY_SUBSITE_GROUP'), true);
$subsiteMap = $subsites->map();
// Prevent XSS injection
$subsiteMap = Convert::raw2xml($subsiteMap);
// Interface is different if you have the rights to modify subsite group values on
// all subsites
if(isset($subsiteMap[0])) {