daniel-brown-ws-test / verademo

A deliberately insecure Java web application
MIT License
0 stars 0 forks source link

CVE-2021-40690 (High) detected in xmlsec-2.0.5.jar #22

Open mend-bolt-for-github[bot] opened 2 years ago

mend-bolt-for-github[bot] commented 2 years ago

CVE-2021-40690 - High Severity Vulnerability

Vulnerable Library - xmlsec-2.0.5.jar

Apache XML Security for Java supports XML-Signature Syntax and Processing, W3C Recommendation 12 February 2002, and XML Encryption Syntax and Processing, W3C Recommendation 10 December 2002. As of version 1.4, the library supports the standard Java API JSR-105: XML Digital Signature APIs.

Path to dependency file: verademo\app\pom.xml

Path to vulnerable library: C:\Users\DanielBrown\.m2\repository\org\apache\santuario\xmlsec\2.0.5\xmlsec-2.0.5.jar

Dependency Hierarchy: - keycloak-saml-core-2.5.5.Final.jar (Root Library) - :x: **xmlsec-2.0.5.jar** (Vulnerable Library)

Found in HEAD commit: 93ec43e511ee189f3bf2254c555dfd88253afa89

Found in base branch: main

Vulnerability Details

All versions of Apache Santuario - XML Security for Java prior to 2.2.3 and 2.1.7 are vulnerable to an issue where the "secureValidation" property is not passed correctly when creating a KeyInfo from a KeyInfoReference element. This allows an attacker to abuse an XPath Transform to extract any local .xml files in a RetrievalMethod element.

Publish Date: 2021-09-19

URL: CVE-2021-40690

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: High - Integrity Impact: None - Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-40690

Release Date: 2021-09-19

Fix Resolution: org.apache.santuario:xmlsec:2.1.7, 2.2.3

dev-mend-for-github-com[bot] commented 2 years ago

:heavy_check_mark: This issue was automatically closed by WhiteSource because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the WhiteSource inventory.

whitesource-app-bolt-danbrown[bot] commented 2 years ago

:information_source: This issue was automatically re-opened by WhiteSource because the vulnerable library in the specific branch(es) has been detected in the WhiteSource inventory.