Skip to content
Snippets Groups Projects
Unverified Commit 864f0392 authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo Committed by GitHub
Browse files

Merge pull request from GHSA-mj9p-v2r8-wf8w


* Update the changelog

Signed-off-by: default avatarJaime Pérez Crespo <jaime.perez@uninett.no>

* Bump version

Signed-off-by: default avatarJaime Pérez Crespo <jaime.perez@uninett.no>

* Fix for XSS in email class

Signed-off-by: default avatarJaime Pérez Crespo <jaime.perez@uninett.no>

* Fix issue with reportId not being properly sanitized

Signed-off-by: default avatarJaime Pérez Crespo <jaime.perez@uninett.no>
parent 752cccfb
Branches
Tags v1.18.4
No related merge requests found
...@@ -274,7 +274,7 @@ pre { ...@@ -274,7 +274,7 @@ pre {
</head> </head>
<body> <body>
<div class="container" style="background: #fafafa; border: 1px solid #eee; margin: 2em; padding: .6em;"> <div class="container" style="background: #fafafa; border: 1px solid #eee; margin: 2em; padding: .6em;">
' . $this->text . ' ' . htmlspecialchars($this->text) . '
</div> </div>
</body> </body>
</html>'; </html>';
......
...@@ -17,6 +17,10 @@ $reportId = $_REQUEST['reportId']; ...@@ -17,6 +17,10 @@ $reportId = $_REQUEST['reportId'];
$email = $_REQUEST['email']; $email = $_REQUEST['email'];
$text = $_REQUEST['text']; $text = $_REQUEST['text'];
if (!preg_match('/^[0-9a-f]{8}$/', $reportId)) {
throw new \SimpleSAML\Error\Exception('Invalid reportID');
}
$data = null; $data = null;
try { try {
$session = \SimpleSAML\Session::getSessionFromRequest(); $session = \SimpleSAML\Session::getSessionFromRequest();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment