From fcb8bfcf8b947eafbadbd0d629951bba87a1e7fa Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Tue, 8 Jun 2021 12:12:23 +0200 Subject: [PATCH] Admin: Add config disable_webservices In order to block access to v2.php/registration.soap.php webservices. --- documentation/security.html | 9 +++++++++ main/inc/lib/api.lib.php | 9 +++++++++ main/install/configuration.dist.php | 3 +++ main/webservices/access_url.php | 3 +++ main/webservices/additional_webservices.php | 2 ++ main/webservices/api/v2.php | 2 ++ main/webservices/cm_webservice.php | 6 +++--- main/webservices/courses_list.rest.php | 2 ++ main/webservices/courses_list.soap.php | 3 +++ main/webservices/gradebook.php | 2 ++ main/webservices/lp.php | 2 ++ main/webservices/registration.soap.php | 6 +++--- main/webservices/soap.php | 4 +--- main/webservices/user_import/service.php | 2 ++ main/webservices/webservice.php | 7 ++++--- 15 files changed, 50 insertions(+), 12 deletions(-) diff --git a/documentation/security.html b/documentation/security.html index 0b641f9cb3..1036fd50b2 100755 --- a/documentation/security.html +++ b/documentation/security.html @@ -25,6 +25,7 @@
  • Restricting files permissions
  • HTTP Headers Security
  • Direct web access to files
  • +
  • Disable webservices
  • 1. Disclosing server info

    @@ -195,6 +196,14 @@ This will prevent direct access to your settings and make it seem totally the sa information in images, CSS or JavaScript files, you will need to update these rules to suit your needs.

    + +

    Disable webservices

    +

    + In order to disable webservices add the configuration below: +

    +    $_configuration['disable_webservices'] = true;
    +    
    +

    Authors