Skip to content
Snippets Groups Projects
Commit 9cf6f757 authored by Boy Baukema's avatar Boy Baukema
Browse files

Make sure metadata-converter.php requires an admin user

Depending on server configuration this may be used in a Denial Of Service attack by tying up all webserver workers with large POST bodies.
parent c5cacf54
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
require_once('../_include.php'); require_once('../_include.php');
/* Make sure that the user has admin access rights. */
SimpleSAML_Utilities::requireAdmin();
$config = SimpleSAML_Configuration::getInstance(); $config = SimpleSAML_Configuration::getInstance();
if(array_key_exists('xmldata', $_POST)) { if(array_key_exists('xmldata', $_POST)) {
......
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