I was testing WildFly 8.1 across XXE vulnerability and I've found pretty annoying thing. JAXB by default uses secure parsing and respect entityExpansionLimit
property (default to 64k). Since it works in Spring MVC in RestEasy it's being ignored (no problem to crash server with big expansion).
Does anyone know if it's possible to secure WildFly/RestEasy across XXE? I've found only support for XML External Entity protection (resteasy.document.expand.entity.references=false
)