Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Q: Disable REST on CF10?

Explorer ,
Nov 06, 2012 Nov 06, 2012

I've done a bit of looking -- both on-line and in the XML configuration files for Tomcat -- and come up empty: how does one completely disable handling of REST requests in CF10?

We aren't currently using it, and in a couple of recent security scans, it has come back as a potential information disclosure vulnerability because the server response includes server version information in the returned headers. I'd like to completely disable it until we actually need it. As best I can tell, HTTP requests for anything that begins with "/rest" are automatically handled as REST requests.

In wading around in the various XML configuration files, the only reference I came across that appeared relevant was in ./WEB-INF/Axis2.xml; there's a parameter in there with the following comment down around line 95:

    <!-- Following parameter will completely disable REST handling in Axis2-->

    <parameter name="disableREST" locked="false">false</parameter>

Toggling that and bouncing the server didn't have any impact on the server's response to a REST request.

We see this behavior on our dev boxes running CF10 in standalone mode with just Tomcat and on our production boxes which are Windows 2008 and IIS 7.5, if that matters -- ideally, we will need to address this for both environments.

Thanks in advance, and any guidance would be greatly appreciated.

--

/ron

775
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 14, 2013 Feb 14, 2013

Hi I am having the same problem and wondered if you had an success in disabiling the /rest dir?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 15, 2013 Feb 15, 2013
LATEST

No, we've not found a way to disable this behavior. Still interested in a resolution, however.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources