Lucene search
K

📄 Lepton CMS 7.4.0 Cross Site Scripting / Code Execution

🗓️ 19 Dec 2025 00:00:00Reported by indoushkaType 
packetstorm
 packetstorm
🔗 packetstorm.news👁 128 Views

Lepton CMS 7.4.0 stores XSS that leads to PHP execution via Droplet Engine, no auth.

Code
=============================================================================================================================================
    | # Title     : LEPTON CMS 7.4.0 Stored XSS To PHP Execution (Droplet Transformation)                                                       |
    | # Author    : indoushka                                                                                                                   |
    | # Tested on : windows 11 Fr(Pro) / browser : Mozilla firefox 145.0.2 (64 bits)                                                            |
    | # Vendor    : https://www.opensourcecms.com/lepton/                                                                                       |
    =============================================================================================================================================
    
    [+] References :  https://packetstorm.news/files/id/211037/ 
    
    [+] Summary    : A vulnerability exists in LEPTON CMS which allows a stored XSS payload to escalate into PHP execution through the Droplet Engine.
    
    [+] Droplet content is evaluated using:
    
        evalDroplets($templateOutput);
    
    The vulnerable design enables content injection to lead directly to execution 
    of arbitrary PHP code. Successful exploitation does not require authenticated 
    access if an attacker can influence page content.
    
    This transformation represents a critical architectural flaw enabling privilege 
    escalation from web-injected JavaScript to backend PHP execution.
    
    -------------------------------------------------------------------------------
    Vulnerable Code:
    -------------------------------------------------------------------------------
        evalDroplets($templateOutput);
    
    Droplet contents are processed and executed as PHP without proper filtering.
    
    -------------------------------------------------------------------------------
    Proof Of Concept (PoC):
    -------------------------------------------------------------------------------
    Place the following payload in any editable content area (e.g., via CMS editor):
    
        <script>console.log('LEPTON-XSS-STORED');</script>
        [[ droplet: <?php echo "LEPTON-DROPLET-PHP-EXEC"; ?> ]]
    
    Displayed results:
    - Browser logs: "LEPTON-XSS-STORED"
    - Page renders: "LEPTON-DROPLET-PHP-EXEC"
    
    This confirms stored XSS → PHP execution transformation.
    
    -------------------------------------------------------------------------------
    Instructions To Save And Run PoC:
    -------------------------------------------------------------------------------
    1) Insert the payload into any page content via the LEPTON editor.
    2) Save the page.
    3) Visit the page in a browser.
    4) Observe:
       - Console output showing stored XSS
       - Page output showing PHP execution
    
    -------------------------------------------------------------------------------
    Impact:
    -------------------------------------------------------------------------------
    - Full backend compromise once PHP execution is abused
    - Server disclosure and potential RCE escalation
    - Malicious persistence possible via page content injection
    
    Greetings to :=====================================================================================
    jericho * Larry W. Cashdollar * LiquidWorm * Hussin-X * D4NB4R * Malvuln (John Page aka hyp3rlinx)|
    ===================================================================================================

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