3

We are using JBoss EAP 5.0.1 with JBoss WS 3.0.4 and we are trying to find a solution for preventing XML External Entity injection. How to fix this other than upgrading it to a higher version?

ROMANIA_engineer
  • 54,432
  • 29
  • 203
  • 199
M Asuncion
  • 31
  • 2

1 Answers1

1

To prevent entity expansion in exposed RESTEasy XML endpoints, add this to the web.xml:

<context-param> <param-name>resteasy.document.expand.entity.references</param-name> <param-value>false</param-value> </context-param>

I found this here, this issue is related to version 7.7 and 8.4 but may also work for older versions.

Martin
  • 1,274
  • 12
  • 23