CVE-2019-20627 (published 2020-03-23T17:15Z)

AutoUpdater.cs in AutoUpdater.NET before 1.5.8 allows XXE.

Severity: HIGH
CVSS v2 base score: 7.5 (AV:N/AC:L/Au:N/C:P/I:P/A:P)
CVSS v3 base score: 9.8, CRITICAL (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)

Weakness information:
cwe_id: CWE-611
cwe_name: Improper Restriction of XML External Entity Reference
description: The product processes an XML document that can contain XML entities with URIs that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output.
extended_description: 
            XML documents optionally contain a Document Type Definition (DTD), which, among other features, enables the definition of XML entities. It is possible to define an entity by providing a substitution string in the form of a URI. The XML parser can access the contents of this URI and embed these contents back into the XML document for further processing.
            By submitting an XML file that defines an external entity with a file:// URI, an attacker can cause the processing application to read the contents of a local file. For example, a URI such as "file:///c:/winnt/win.ini" designates (in Windows) the file C:\Winnt\win.ini, or file:///etc/passwd designates the password file in Unix-based systems. Using URIs with other schemes such as http://, the attacker can force the application to make outgoing requests to servers that the attacker cannot reach directly, which can be used to bypass firewall restrictions or hide the source of attacks such as port scanning.
            Once the content of the URI is read, it is fed back into the application that is processing the XML. This application may echo back the data (e.g. in an error message), thereby exposing the file contents.
         
         

Fix information:
repo_url: https://github.com/ravibpatel/AutoUpdater.NET
commit_details: repo_url: https://github.com/ravibpatel/AutoUpdater.NET
author: Ravi Patel
author_date: 2019-10-31 11:32:24+05:30
msg: Fixed an XML external entity (XXE) vulnerability.
repository: repo_url: https://github.com/ravibpatel/AutoUpdater.NET
repo_name: ravibpatel/AutoUpdater.NET
description: AutoUpdater.NET is a class library that allows .NET developers to easily add auto update functionality to their classic desktop application projects.
repo_language: C#
owner: ravibpatel
file_changes: filename: AutoUpdater.cs
change_type: ModificationType.MODIFY
diff: @@ -462,8 +462,7 @@ namespace AutoUpdaterDotNET
                     }
                     else
                     {
-                        XmlDocument receivedAppCastDocument = new XmlDocument();
-
+                        XmlDocument receivedAppCastDocument = new XmlDocument {XmlResolver = null};
                         try
                         {
                             receivedAppCastDocument.Load(appCastStream);

programming_language: C#
filename: AssemblyInfo.cs
change_type: ModificationType.MODIFY
diff: @@ -32,6 +32,6 @@ using System.Resources;
 // You can specify all the values or you can default the Build and Revision Numbers 
 // by using the '*' as shown below:
 // [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.5.7.0")]
-[assembly: AssemblyFileVersion("1.5.7.0")]
+[assembly: AssemblyVersion("1.5.8.0")]
+[assembly: AssemblyFileVersion("1.5.8.0")]
 [assembly: NeutralResourcesLanguageAttribute("en")]

programming_language: C#
filename: Autoupdater.NET.Official.nuspec
change_type: ModificationType.MODIFY
diff: @@ -2,7 +2,7 @@
 <package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
     <metadata>
         <id>Autoupdater.NET.Official</id>
-        <version>1.5.7</version>
+        <version>1.5.8</version>
         <title>AutoUpdater.NET</title>
         <authors>RBSoft</authors>
         <owners>RBSoft</owners>

programming_language: Markdown
filename: appveyor.yml
change_type: ModificationType.MODIFY
diff: @@ -1,6 +1,6 @@
-version: 1.5.7.{build}
+version: 1.5.8.{build}
 environment:
-  my_version: 1.5.7
+  my_version: 1.5.8
   my_secret:
     secure: vbPRaZLQYpGPr4BrZZ4p6TofpSZMud+FKtlpqjgO8aA=
 skip_branch_with_pr: true

programming_language: Batchfile