Add callCheck to testremote.php
Without CSRF check this file might be tricked into requesting itself which would result in an endless loop and thus potentially ending in a Denial of Service.
This commit is contained in:
parent
92bc1b44d5
commit
4270188252
|
@ -6,6 +6,7 @@
|
|||
* See the COPYING-README file.
|
||||
*/
|
||||
|
||||
OCP\JSON::callCheck();
|
||||
OCP\JSON::checkAppEnabled('files_sharing');
|
||||
|
||||
$remote = $_GET['remote'];
|
||||
|
|
Loading…
Reference in New Issue