Disable DTD and external entities support in XmlEventDecoder to prevent XXE and XML bomb attack [SPR-15797] #20352
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
Takuya Iwatsuka opened SPR-15797 and commented
An instance of XMLInputFactory in XmlEventDecoder supports DTD and external entities.
Because Jaxb2XMLDecoder uses XMLEventDecoder, this could be exploited to some kind of attack like XXE or XML Bomb.
To prevent these attacks, it should disable support DTD and external entities by setting properties of XMLInputFactory.
Affects: 5.0 RC2
Issue Links:
Referenced from: commits e4651d6
The text was updated successfully, but these errors were encountered: