Closed ghost closed 5 years ago
Veracode Scan failed, reason: Improper Restriction of XML External Entity (CWE ID 611)
Azure DevOps pipeline task: Veracode Upload and Scan
References: CWE (https://cwe.mitre.org/data/definitions/611.html) OWASP (https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.md) WASC (https://webappsec.pbworks.com/XML-External-Entities)
Files with issue:
com/microsoft/azure/servicebus/management/
RuleDescriptionSerializer.java ManagementClientAsync.java TopicRuntimeInfoSerializer.java SubscriptionDescriptionSerializer.java NamespaceInfoSerializer.java SubscriptionRuntimeInfoSerializer.java QueueDescriptionSerializer.java TopicDescriptionSerializer.java SubscriptionDescriptionSerializer.java QueueDescriptionSerializer.java QueueRuntimeInfoSerializer.java TopicDescriptionSerializer.java RuleDescriptionSerializer.java
Veracode Scan success.
This library is required to use the Azure Service-Bus product, without the Veracode validation our the product cannot be public in a production environment.
Branch containing this code moved to the repo https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/servicebus. Please raise this issue on the new repository.
Actual Behavior
Veracode Scan failed, reason: Improper Restriction of XML External Entity (CWE ID 611)
Azure DevOps pipeline task: Veracode Upload and Scan
References: CWE (https://cwe.mitre.org/data/definitions/611.html) OWASP (https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.md) WASC (https://webappsec.pbworks.com/XML-External-Entities)
Files with issue:
com/microsoft/azure/servicebus/management/
RuleDescriptionSerializer.java ManagementClientAsync.java TopicRuntimeInfoSerializer.java SubscriptionDescriptionSerializer.java NamespaceInfoSerializer.java SubscriptionRuntimeInfoSerializer.java QueueDescriptionSerializer.java TopicDescriptionSerializer.java SubscriptionDescriptionSerializer.java QueueDescriptionSerializer.java QueueRuntimeInfoSerializer.java TopicDescriptionSerializer.java RuleDescriptionSerializer.java
Expected Behavior
Veracode Scan success.
Versions
Note:
This library is required to use the Azure Service-Bus product, without the Veracode validation our the product cannot be public in a production environment.