Khalil Shreateh specializes in cybersecurity, particularly as a "white hat" hacker. He focuses on identifying and reporting security vulnerabilities in software and online platforms, with notable expertise in web application security. His most prominent work includes discovering a critical flaw in Facebook's system in 2013. Additionally, he develops free social media tools and browser extensions, contributing to digital security and user accessibility.

Get Rid of Ads!


Subscribe now for only $3 a month and enjoy an ad-free experience.

Contact us at khalil@khalil-shreateh.com

 

 

Lepton CMS 7.4.0 Cross Site Scripting / Code Execution

=============================================================================================================================================
| # Lepton CMS 7.4.0 Cross Site Scripting / Code Execution

=============================================================================================================================================
| # 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)|
===================================================================================================

Social Media Share