Cross-site scripting in jQuery - CVE-2020-7656

 

Cross-site scripting in jQuery - CVE-2020-7656

Published: May 25, 2020


Vulnerability identifier: #VU28228
CSH Severity: Medium
CVSS v4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]
CVE-ID: CVE-2020-7656
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The disclosed vulnerability allows a remote attacker to perform cross-site scripting (XSS) attacks.

The vulnerability exists due to insufficient sanitization of user-supplied data within the load() function. A remote attacker can pass specially crafted HTML code to the application and execute it in browser in security context of the affected website.

Successful exploitation of this vulnerability may allow a remote attacker to steal potentially sensitive information, change appearance of the web page, perform phishing and drive-by-download attacks.

PoC:

index.html:

<html>
<head>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.8.3/jquery.js"></script>
</head>
<body>
    <div id="mydiv"></div>
    <script>
        $("#mydiv").load('inject.html #himom');
    </script>
</body>
</html>

inject.html:

<div id="himom"><script>alert('Arbitrary Code Execution');</script ></div>

Affected software

jQuery
AMQ Interconnect
WebSphere eXtreme Scale
Tenable Nessus
IBM Cloud Pak for Business Automation
QRadar User Behavior Analytics
IBM Maximo Asset Management
qpid-dispatch (Red Hat package)
pcs (Red Hat package)
Tivoli Network Manager IP Edition
IBM Aspera Shares
IBM Aspera Console
MobileFirst Platform
Juniper Secure Analytics (JSA)
PeopleSoft Enterprise PeopleTools
IBM Storage Scale System
IBM Qradar SIEM
IBM Cognos Controller
IBM InfoSphere Information Server

How to mitigate CVE-2020-7656

Install update from vendor's website.

jQuery - update to 1.9.0
AMQ Interconnect - update to 1.9.0
qpid-dispatch (Red Hat package) - addressed in versions 1.13.0-3.el6_10, 1.13.0-3.el7, 1.13.0-3.el8
Tivoli Network Manager IP Edition - update to 4.2.0.20
Juniper Secure Analytics (JSA) - update to 7.5.0 UP8 IF03
WebSphere eXtreme Scale - update to 8.6.1.5 PH53340
Tenable Nessus - update to 10.5.0
IBM Cloud Pak for Business Automation - update to 20.0.2 ifix 001
pcs (Red Hat package) - update to 0.10.10-4.el8
IBM Aspera Shares - update to 1.9.15
IBM Aspera Console - update to 3.4.2
QRadar User Behavior Analytics - update to 4.1.9
IBM Storage Scale System - addressed in versions 5.2.0.0, 6.1.9.2
IBM Qradar SIEM - update to 7.5.0 Update Pack 8 IF01
IBM Maximo Asset Management - update to 7.6.1.2.37
MobileFirst Platform - update to 8.0.0.0-MFPF-IF202304111626
IBM Cognos Controller - addressed in versions 10.4.1.0.15, 10.4.2.0.2
IBM InfoSphere Information Server - update to 11.7.1.4 Service pack 1

External References

Related Security Bulletins