Merge pull request #7229 from smowton/smowton/admin/document-xxe-sanitisation-policy

Document XXE sanitisation policy
This commit is contained in:
Anders Schack-Mulligen
2021-11-25 10:55:25 +01:00
committed by GitHub

View File

@@ -27,6 +27,11 @@ If this is not possible you should disable the parsing of external general entit
This improves security but the code will still be at risk of denial of service and server side request forgery attacks.
Protection against denial of service attacks may also be implemented by setting entity expansion limits, which is done
by default in recent JDK and JRE implementations.
Because there are many different ways to disable external entity retrieval with varying support between different providers,
in this query we choose to specifically check for the <a href="https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html#java">OWASP recommended way</a>
to disable external entity retrieval for a particular parser. There may be other ways of making a particular parser safe
which deviate from these guidelines, in which case this query will continue to flag the parser as potentially dangerous.
</p>
</recommendation>