Skip to content
Snippets Groups Projects
Commit 88e1f09d authored by Olav Morken's avatar Olav Morken
Browse files

metaedit: Fix cross-site scripting.

metaedit fails to validate the userid. If a malicious user is able to
make another user log in as that user id, he will be able to run scripts
in the domain of the site.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2442 44740490-163a-0410-bde0-09ae8108e29a
parent 6828a781
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ $this->includeAtTemplateBase('includes/header.php'); ...@@ -13,7 +13,7 @@ $this->includeAtTemplateBase('includes/header.php');
echo('<h1>Metadata Registry</h1>'); echo('<h1>Metadata Registry</h1>');
echo('<p>Here you can register new SAML entities. You are successfully logged in as ' . $this->data['userid'] . '</p>'); echo('<p>Here you can register new SAML entities. You are successfully logged in as ' . htmlspecialchars($this->data['userid']) . '</p>');
echo('<h2>Your entries</h2>'); echo('<h2>Your entries</h2>');
echo('<table class="metalist" style="width: 100%">'); echo('<table class="metalist" style="width: 100%">');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment