Skip to content

Commit 54bd686

Browse files
committed
Harden module.php endpoint against no input
1 parent 5fa0cee commit 54bd686

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/SimpleSAML/Module.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public static function process(Request $request = null): Response
168168
$request = Request::createFromGlobals();
169169
}
170170

171-
if ($request->server->get('PATH_INFO') === '/') {
171+
if ($request->server->get('PATH_INFO') === '/' || $request->server->get('PATH_INFO') === null) {
172172
throw new Error\NotFound('No PATH_INFO to module.php');
173173
}
174174

0 commit comments

Comments
 (0)