This vulnerability is potentially used
```
org.owasp.webgoat.sql_injection.advanced.SqlInjectionChallenge (Application)
-> org.postgresql.jdbc.PgConnection (Extension)
-> org.postgresql.core.ConnectionFactory (Extension)
-> org.hibernate.bytecode.internal.javassist.BytecodeProviderImpl (Extension)
...
-> org.hibernate.tool.enhance.EnhancementTask (Extension)
-> org.apache.tools.ant.Project (Extension)
-> ❌ org.apache.tools.ant.util.FileUtils (Vulnerable Component)
```
### Vulnerability Details
As mitigation for CVE-2020-1945 Apache Ant 1.10.8 changed the permissions of temporary files it created so that only the current user was allowed to access them. Unfortunately the fixcrlf task deleted the temporary file and created a new one without said protection, effectively nullifying the effort. This would still allow an attacker to inject modified source files into the build process.
This vulnerability is potentially used
```
org.owasp.webgoat.sql_injection.advanced.SqlInjectionChallenge (Application)
-> org.postgresql.jdbc.PgConnection (Extension)
-> org.postgresql.core.ConnectionFactory (Extension)
-> org.hibernate.bytecode.internal.javassist.BytecodeProviderImpl (Extension)
...
-> org.hibernate.tool.enhance.EnhancementTask (Extension)
-> org.apache.tools.ant.Project (Extension)
-> ❌ org.apache.tools.ant.util.FileUtils (Vulnerable Component)
```
### Vulnerability Details
Apache Ant 1.1 to 1.9.14 and 1.10.0 to 1.10.7 uses the default temporary directory identified by the Java system property java.io.tmpdir for several tasks and may thus leak sensitive information. The fixcrlf and replaceregexp tasks also copy files from the temporary directory back into the build tree allowing an attacker to inject modified source files into the build process.
When reading a specially crafted TAR archive an Apache Ant build can be made to allocate large amounts of memory that finally leads to an out of memory error, even for small inputs. This can be used to disrupt builds using Apache Ant. Apache Ant prior to 1.9.16 and 1.10.11 were affected.
This vulnerability is potentially used
```
org.owasp.webgoat.sql_injection.advanced.SqlInjectionChallenge (Application)
-> org.owasp.webgoat.users.UserTrackerRepository (Extension)
-> org.springframework.data.domain.Sort (Extension)
-> org.hibernate.tool.enhance.EnhancementTask$1 (Extension)
...
-> org.apache.tools.ant.RuntimeConfigurable (Extension)
-> org.apache.tools.ant.taskdefs.Untar (Extension)
-> ❌ org.apache.tools.tar.TarInputStream (Vulnerable Component)
```
### Vulnerability Details
When reading a specially crafted ZIP archive, or a derived formats, an Apache Ant build can be made to allocate large amounts of memory that leads to an out of memory error, even for small inputs. This can be used to disrupt builds using Apache Ant. Commonly used derived formats from ZIP archives are for instance JAR files and many office files. Apache Ant prior to 1.9.16 and 1.10.11 were affected.
This vulnerability is potentially used
```
org.owasp.webgoat.sql_injection.advanced.SqlInjectionChallenge (Application)
-> org.hibernate.dialect.AbstractHANADialect$MaterializedBlob (Extension)
-> org.hibernate.dialect.AbstractHANADialect (Extension)
-> org.hibernate.tool.enhance.EnhancementTask (Extension)
...
-> org.apache.tools.ant.taskdefs.AntStructure (Extension)
-> org.apache.tools.ant.taskdefs.Tar$TarCompressionMethod (Extension)
-> ❌ org.apache.tools.bzip2.CBZip2OutputStream (Vulnerable Component)
```
### Vulnerability Details
Algorithmic complexity vulnerability in the sorting algorithms in bzip2 compressing stream (BZip2CompressorOutputStream) in Apache Commons Compress before 1.4.1 allows remote attackers to cause a denial of service (CPU consumption) via a file with many repeating inputs.
Vulnerable Library - ant-1.6.2.jar
Path to dependency file: /webgoat-lessons/vulnerable-components/pom.xml
Path to vulnerable library: /home/wss-scanner/.m2/repository/ant/ant/1.6.2/ant-1.6.2.jar
Found in HEAD commit: fbca9ba603e60373d9b92714517262109b92e2bc
Vulnerabilities
**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation
Details
CVE-2020-11979
### Vulnerable Library - ant-1.6.2.jarPath to dependency file: /webgoat-lessons/vulnerable-components/pom.xml
Path to vulnerable library: /home/wss-scanner/.m2/repository/ant/ant/1.6.2/ant-1.6.2.jar
Dependency Hierarchy: - :x: **ant-1.6.2.jar** (Vulnerable Library)
Found in HEAD commit: fbca9ba603e60373d9b92714517262109b92e2bc
Found in base branch: master
### Reachability AnalysisThis vulnerability is potentially used ``` org.owasp.webgoat.sql_injection.advanced.SqlInjectionChallenge (Application) -> org.postgresql.jdbc.PgConnection (Extension) -> org.postgresql.core.ConnectionFactory (Extension) -> org.hibernate.bytecode.internal.javassist.BytecodeProviderImpl (Extension) ... -> org.hibernate.tool.enhance.EnhancementTask (Extension) -> org.apache.tools.ant.Project (Extension) -> ❌ org.apache.tools.ant.util.FileUtils (Vulnerable Component) ```
### Vulnerability DetailsAs mitigation for CVE-2020-1945 Apache Ant 1.10.8 changed the permissions of temporary files it created so that only the current user was allowed to access them. Unfortunately the fixcrlf task deleted the temporary file and created a new one without said protection, effectively nullifying the effort. This would still allow an attacker to inject modified source files into the build process.
Publish Date: 2020-10-01
URL: CVE-2020-11979
### CVSS 3 Score Details (7.5)Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: High - Availability Impact: None
For more information on CVSS3 Scores, click here. ### Suggested FixType: Upgrade version
Origin: https://ant.apache.org/security.html
Release Date: 2020-10-01
Fix Resolution: org.apache.ant:ant:1.10.9
In order to enable automatic remediation, please create workflow rules
CVE-2020-1945
### Vulnerable Library - ant-1.6.2.jarPath to dependency file: /webgoat-lessons/vulnerable-components/pom.xml
Path to vulnerable library: /home/wss-scanner/.m2/repository/ant/ant/1.6.2/ant-1.6.2.jar
Dependency Hierarchy: - :x: **ant-1.6.2.jar** (Vulnerable Library)
Found in HEAD commit: fbca9ba603e60373d9b92714517262109b92e2bc
Found in base branch: master
### Reachability AnalysisThis vulnerability is potentially used ``` org.owasp.webgoat.sql_injection.advanced.SqlInjectionChallenge (Application) -> org.postgresql.jdbc.PgConnection (Extension) -> org.postgresql.core.ConnectionFactory (Extension) -> org.hibernate.bytecode.internal.javassist.BytecodeProviderImpl (Extension) ... -> org.hibernate.tool.enhance.EnhancementTask (Extension) -> org.apache.tools.ant.Project (Extension) -> ❌ org.apache.tools.ant.util.FileUtils (Vulnerable Component) ```
### Vulnerability DetailsApache Ant 1.1 to 1.9.14 and 1.10.0 to 1.10.7 uses the default temporary directory identified by the Java system property java.io.tmpdir for several tasks and may thus leak sensitive information. The fixcrlf and replaceregexp tasks also copy files from the temporary directory back into the build tree allowing an attacker to inject modified source files into the build process.
Publish Date: 2020-05-14
URL: CVE-2020-1945
### CVSS 3 Score Details (6.3)Base Score Metrics: - Exploitability Metrics: - Attack Vector: Local - Attack Complexity: High - Privileges Required: Low - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: High - Integrity Impact: High - Availability Impact: None
For more information on CVSS3 Scores, click here. ### Suggested FixType: Upgrade version
Origin: https://ant.apache.org/security.html
Release Date: 2020-05-14
Fix Resolution: org.apache.ant:ant:1.9.15,1.10.8
In order to enable automatic remediation, please create workflow rules
CVE-2021-36373
### Vulnerable Library - ant-1.6.2.jarPath to dependency file: /webgoat-lessons/vulnerable-components/pom.xml
Path to vulnerable library: /home/wss-scanner/.m2/repository/ant/ant/1.6.2/ant-1.6.2.jar
Dependency Hierarchy: - :x: **ant-1.6.2.jar** (Vulnerable Library)
Found in HEAD commit: fbca9ba603e60373d9b92714517262109b92e2bc
Found in base branch: master
### Reachability AnalysisThe vulnerable code is not reachable.
### Vulnerability DetailsWhen reading a specially crafted TAR archive an Apache Ant build can be made to allocate large amounts of memory that finally leads to an out of memory error, even for small inputs. This can be used to disrupt builds using Apache Ant. Apache Ant prior to 1.9.16 and 1.10.11 were affected.
Publish Date: 2021-07-14
URL: CVE-2021-36373
### CVSS 3 Score Details (5.5)Base Score Metrics: - Exploitability Metrics: - Attack Vector: Local - Attack Complexity: Low - Privileges Required: None - User Interaction: Required - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: None - Availability Impact: High
For more information on CVSS3 Scores, click here. ### Suggested FixType: Upgrade version
Origin: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-36373
Release Date: 2021-07-14
Fix Resolution: org.apache.ant:ant:1.9.16,1.10.11
In order to enable automatic remediation, please create workflow rules
CVE-2021-36374
### Vulnerable Library - ant-1.6.2.jarPath to dependency file: /webgoat-lessons/vulnerable-components/pom.xml
Path to vulnerable library: /home/wss-scanner/.m2/repository/ant/ant/1.6.2/ant-1.6.2.jar
Dependency Hierarchy: - :x: **ant-1.6.2.jar** (Vulnerable Library)
Found in HEAD commit: fbca9ba603e60373d9b92714517262109b92e2bc
Found in base branch: master
### Reachability AnalysisThis vulnerability is potentially used ``` org.owasp.webgoat.sql_injection.advanced.SqlInjectionChallenge (Application) -> org.owasp.webgoat.users.UserTrackerRepository (Extension) -> org.springframework.data.domain.Sort (Extension) -> org.hibernate.tool.enhance.EnhancementTask$1 (Extension) ... -> org.apache.tools.ant.RuntimeConfigurable (Extension) -> org.apache.tools.ant.taskdefs.Untar (Extension) -> ❌ org.apache.tools.tar.TarInputStream (Vulnerable Component) ```
### Vulnerability DetailsWhen reading a specially crafted ZIP archive, or a derived formats, an Apache Ant build can be made to allocate large amounts of memory that leads to an out of memory error, even for small inputs. This can be used to disrupt builds using Apache Ant. Commonly used derived formats from ZIP archives are for instance JAR files and many office files. Apache Ant prior to 1.9.16 and 1.10.11 were affected.
Publish Date: 2021-07-14
URL: CVE-2021-36374
### CVSS 3 Score Details (5.5)Base Score Metrics: - Exploitability Metrics: - Attack Vector: Local - Attack Complexity: Low - Privileges Required: None - User Interaction: Required - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: None - Availability Impact: High
For more information on CVSS3 Scores, click here. ### Suggested FixType: Upgrade version
Origin: https://ant.apache.org/security.html
Release Date: 2021-07-14
Fix Resolution: org.apache.ant:ant:1.9.16,1.10.11
In order to enable automatic remediation, please create workflow rules
CVE-2012-2098
### Vulnerable Library - ant-1.6.2.jarPath to dependency file: /webgoat-lessons/vulnerable-components/pom.xml
Path to vulnerable library: /home/wss-scanner/.m2/repository/ant/ant/1.6.2/ant-1.6.2.jar
Dependency Hierarchy: - :x: **ant-1.6.2.jar** (Vulnerable Library)
Found in HEAD commit: fbca9ba603e60373d9b92714517262109b92e2bc
Found in base branch: master
### Reachability AnalysisThis vulnerability is potentially used ``` org.owasp.webgoat.sql_injection.advanced.SqlInjectionChallenge (Application) -> org.hibernate.dialect.AbstractHANADialect$MaterializedBlob (Extension) -> org.hibernate.dialect.AbstractHANADialect (Extension) -> org.hibernate.tool.enhance.EnhancementTask (Extension) ... -> org.apache.tools.ant.taskdefs.AntStructure (Extension) -> org.apache.tools.ant.taskdefs.Tar$TarCompressionMethod (Extension) -> ❌ org.apache.tools.bzip2.CBZip2OutputStream (Vulnerable Component) ```
### Vulnerability DetailsAlgorithmic complexity vulnerability in the sorting algorithms in bzip2 compressing stream (BZip2CompressorOutputStream) in Apache Commons Compress before 1.4.1 allows remote attackers to cause a denial of service (CPU consumption) via a file with many repeating inputs.
Publish Date: 2012-06-29
URL: CVE-2012-2098
### CVSS 3 Score Details (5.3)Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: None - Availability Impact: Low
For more information on CVSS3 Scores, click here. ### Suggested FixType: Upgrade version
Origin: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-2098
Release Date: 2012-06-29
Fix Resolution: org.apache.ant:ant:1.8.4,org.apache.commons:commons-compress:1.4.1
In order to enable automatic remediation, please create workflow rules
In order to enable automatic remediation for this issue, please create workflow rules