Skip links
Picture of Vahagn Vardanian

Vahagn Vardanian

Co-founder and CTO of RedRays

Disabling invoker servlet, SAP security note 1445998

SAP Note 1445998

SAP security note 1445998, "Disabling Invoker Servlet". Below are the symptom, SAP recommended solution, reason and prerequisites, and references.

Description

Symptom

  • You want to disable the default servlet mapping /servlet/*.
  • Servlets can be accessed anonymously via different paths regardless of security constraints defined in the web.xml. Servlets that are not declared in the web.xml at all can also be accessed successfully.

Solution

The Invoker Servlet has been disabled by default in version 7.20 (in the patch levels described in the SP Patch Level section) and in the initial shipment of version 7.30 of the Engine. For these versions, apply the following steps:

  • Upgrade to the latest version of SAP Java Engine. Refer to the SP Patch Level section of this SAP Note for details.
  • Identify whether any requested scenarios rely on the Invoker Servlet.

For all other versions, additionally:

  • Disable the vulnerable feature by setting the EnableInvokerServletGlobally property of the servlet_jsp service on the server nodes to false.

Refer to the attached PDF for detailed identification and mitigation steps.

Reason and prerequisites

A vulnerable feature in the Web Container allows invocation of special URLs that cause servlet execution. This method does not obey the rules defined in the web.xml.

References

Full note on SAP: SAP Support Launchpad note 1445998

Detailed exploitation and proof-of-concept material for this note is maintained in the RedRays Security Platform. For access, contact [email protected].

Explore More