| 제목 | eyoucms 1.7.5 Code Injection |
|---|
| 설명 | 1. **Arbitrary Command Execution via Template Management:**
- In the file `application/admin/logic/FilemanagerLogic.php`, the `editFile` function improperly handles user input, allowing for arbitrary command execution.
- The vulnerability exists due to insufficient filtering of PHP code within template files.
2. **Exploiting the Command Execution:**
- By injecting PHP code into the template management feature, an attacker can execute arbitrary commands on the server.
- The filtering mechanism can be bypassed using template syntax.
3. **Example Command Execution Payload:**
- The following payload can be used to execute the `system()` function:
```php
{if system('whoami')}{/if}
```
4. **Requesting the Vulnerable Endpoint:**
- Modify the `template/pc/index.htm` file in the backend with the payload.
5. **Verifying the Exploit:**
- If the injection is successful, visiting the affected page will execute the injected PHP code.
## |
|---|
| 원천 | ⚠️ https://note-hxlab.wetolink.com/share/bCUNxHhNN9Rn |
|---|
| 사용자 | YELEIPENG (UID 73615) |
|---|
| 제출 | 2025. 07. 17. AM 08:20 (1 년도 ago) |
|---|
| 모더레이션 | 2025. 07. 26. PM 06:33 (9 days later) |
|---|
| 상태 | 중복 |
|---|
| VulDB 항목 | 284525 [EyouCMS 1.51 FilemanagerLogic.php editFile activepath 디렉토리 순회] |
|---|
| 포인트들 | 0 |
|---|