Added more mitigations for XXE
This commit is contained in:
parent
e9ad20cb30
commit
36ad73c800
@ -19,3 +19,11 @@ xif.setProperty(XMLInputFactory.SUPPORT_DTD, true);
|
||||
----
|
||||
|
||||
For more information about configuration, see https://www.owasp.org/index.php/XML_External_Entity_(XXE)_Prevention_Cheat_Sheet
|
||||
|
||||
|
||||
==== Validate
|
||||
|
||||
Implement proper validation for the Content-type and Accept header do not simply rely on the framework to handle
|
||||
the incoming request. Also if the client specifies a proper accept header return with a `406/Not Acceptable.
|
||||
|
||||
`
|
Loading…
x
Reference in New Issue
Block a user