Swift : XML external entity (XXE injection)
Classification
Overview
XXE (XML eXternal Entity) attack is possible. An attacker can cause failures in the application work or gain access to sensitive data.
XML provides a mechanism to enable including third-party files’ content into the file via the entity mechanism defined in the DTD (Document Type Definitions). If an external entity is defined in the XML header, the developer is able to use its contents in XML file. Herein validation of external entities at XML parsing phase is not performed.
If the application works with the XML file received from an untrusted source (e.g., user input), an attacker is able to inject malicious or not provided by the application external entity into the XML file, and thus disrupt the functionality of the application.
DerScanner Severity Score
Check your Swift code for this vulnerability, free
Request a free pilot of DerScanner. We give you access and help with the first scan. It works in the cloud and on-premise.
Try it on your code, free
By submitting this form, I acknowledge that DerScanner may process my personal data I provided above for purposes explained above. More details about the processing.
