KDWSS / SecurityShepherd

Web and mobile application security training platform
https://owasp.org/www-project-security-shepherd/
GNU General Public License v3.0
0 stars 0 forks source link

CVE-2022-31160 (Medium) detected in jquery-ui-1.11.4.min.js, jquery-ui-1.8.19.min.js - autoclosed #45

Closed mend-for-github-com[bot] closed 1 year ago

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

CVE-2022-31160 - Medium Severity Vulnerability

Vulnerable Libraries - jquery-ui-1.11.4.min.js, jquery-ui-1.8.19.min.js

jquery-ui-1.11.4.min.js

A curated set of user interface interactions, effects, widgets, and themes built on top of the jQuery JavaScript Library.

Library home page: https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js

Path to vulnerable library: /src/main/webapp/js/jquery-ui.min.js,/target/owaspSecurityShepherd/js/jquery-ui.min.js

Dependency Hierarchy: - :x: **jquery-ui-1.11.4.min.js** (Vulnerable Library)

jquery-ui-1.8.19.min.js

A curated set of user interface interactions, effects, widgets, and themes built on top of the jQuery JavaScript Library.

Library home page: https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.8.19/jquery-ui.min.js

Path to dependency file: /target/owaspSecurityShepherd/index.jsp

Path to vulnerable library: /target/owaspSecurityShepherd/js/jqueryUI.js,/target/owaspSecurityShepherd/js/jqueryUI.js,/src/main/webapp/js/jqueryUI.js,/src/main/webapp/js/jqueryUI.js

Dependency Hierarchy: - :x: **jquery-ui-1.8.19.min.js** (Vulnerable Library)

Found in HEAD commit: 8306342580d27fb4c237bf454ac42845520bbdee

Found in base branch: dev

Vulnerability Details

jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built on top of jQuery. Versions prior to 1.13.2 are potentially vulnerable to cross-site scripting. Initializing a checkboxradio widget on an input enclosed within a label makes that parent label contents considered as the input label. Calling `.checkboxradio( "refresh" )` on such a widget and the initial HTML contained encoded HTML entities will make them erroneously get decoded. This can lead to potentially executing JavaScript code. The bug has been patched in jQuery UI 1.13.2. To remediate the issue, someone who can change the initial HTML can wrap all the non-input contents of the `label` in a `span`.

Publish Date: 2022-07-20

URL: CVE-2022-31160

CVSS 3 Score Details (6.1)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: Required - Scope: Changed - Impact Metrics: - Confidentiality Impact: Low - Integrity Impact: Low - 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-2022-31160

Release Date: 2022-07-20

Fix Resolution: jquery-ui - 1.13.2

mend-for-github-com[bot] commented 1 year ago

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