Skip to content

Commit 15ee7dc

Browse files
committed
Fix logout iframe xss
1 parent ae1076f commit 15ee7dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

workbench/logout.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
if (isset($_SESSION['oauth']['serverUrlPrefix']) && !empty($_SESSION['oauth']['serverUrlPrefix'])) {
1919
$redirectTime = 5000;
20-
$uiLogoutIFrame = "<iframe src='". $_SESSION['oauth']['serverUrlPrefix'] .
20+
$uiLogoutIFrame = "<iframe src='". htmlspecialchars($_SESSION['oauth']['serverUrlPrefix']) .
2121
"/secur/logout.jsp' width='0' height='0' style='display:none;'></iframe>\n";
2222
}
2323
} else {

0 commit comments

Comments
 (0)