mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 09:05:55 +00:00
Security: XSS can be injected in the group edit view
This commit is contained in:
parent
205754854c
commit
bd5bd877fd
@ -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])) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user