Page 1 of 1

Disable access to localhost/OpenKM/services/*

PostPosted:Wed Dec 01, 2021 6:27 am
by moealiassaad
Hello,

We have performed a pentest to openkm app, and there were two issues that need to be fixed related to webservices page.

The first issue: lack of authentication to access the url www.url.com/OpenKM/services. The recommended mitigation action was to either setup authentication on this page or disable it.
May you guide us please on how to perform one of these two actions?

The second issue: technical information disclosure, also on /OpenKM/services/* and /OpenKM/services/rest/swagger.json.
The mitigation action proposed for this one is either define customized error messages, or generate exceptions at the code level and not send these info to the client browser.
Do you have any recommendation to perform this action?

Thanks in advance

Re: Disable access to localhost/OpenKM/services/*

PostPosted:Sat Dec 04, 2021 9:21 am
by jllort
OpenKM CE comes with REST services and the old SOAP services ( I think in the near, middle future we will remove SOAP, because for us is a deprecated technology ). Anyway, because you wish to build a jar SOAP client it is a good idea do not to have these resources authenticated. If compare with API, for example, OpenKM/rest/* these are authenticated.

The reason is what I explained before, to facilitate the build of the SOAP client.

Re: Disable access to localhost/OpenKM/services/*

PostPosted:Tue Dec 21, 2021 4:21 am
by moealiassaad
but what if i dont want to use SOAP? i only use REST API from services, may I disable that page (OpenKM/services) or authenticate it? if so, could you give me some indications on how to do that?
Thanks

Re: Disable access to localhost/OpenKM/services/*

PostPosted:Mon Dec 27, 2021 8:53 am
by jllort
Should modify the source code and remove unwished web services.