目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1336

100%

CVE-2021-42669 PoC — Engineers Online Portal 代码问题漏洞

来源
关联漏洞
标题: Engineers Online Portal 代码问题漏洞 (CVE-2021-42669)
Description:Engineers Online Portal是开源的一个在线门户。是使用PHP、MySQL 数据库、HTML、CSS、Javascript、jQuery、Ajax、Bootstrap 和一些其他库开发的。 Engineers Online Portal 存在代码问题漏洞,该漏洞源于在PHP的Sourcecodester Engineers Online Portal中通过dashboard teacher. PHP存在文件上传漏洞。攻击者可利用该漏洞使用-/admin/uploads/php-websh
Description
CVE-2021-42669 - Remote code execution via unrestricted file upload vulnerability in the Engineers online portal system.
介绍
# CVE-2021-42669
CVE-2021-42669 - Remote code execution via unrestricted file upload vulnerability in the Engineers online portal system.

# Technical description:
A unrestricted file upload vulnerability exists in the Engineers Online Portal system. An attacker can leverage this vulnerability in order to get a remote code execution on the affected web server. 
Once an avatar gets uploaded it is getting uploaded to the /admin/uploads/ directory, and is accessible by all users. 
By uploading a simple php webshell the attacker can gain remote code execution on the web server. 

Affected components - 

Vulnerable page - teacher_avatar.php

# CVE-2021-42669.py usage - 
```
# Upload a simple webshell to the target machine - 
python CVE-2021-42669.py <target_ip> <target_port> <target_uri> <username> <password>
```

## Example -
```
python CVE-2021-42669.py 127.0.0.1 80 /nia_uoz_monitoring_system/ MyUserName MyPassword
```

# Proof of concept (Poc) - 

![CVE-2021-42669](https://user-images.githubusercontent.com/93016131/140194579-79107b2f-b511-435f-874c-961b4636df9c.gif)

# Refernces - 
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-42669

https://nvd.nist.gov/vuln/detail/CVE-2021-42669

# Discovered by - 
Alon Leviev(0xDeku), 22 October, 2021. 
文件快照

登录后查看神龙缓存的 POC 文件快照

登录查看
备注
    1. 建议优先通过来源进行访问。
    2. 本地 POC 快照面向订阅用户开放;当原始来源失效或无法访问时,本地镜像作为订阅权益的一部分提供。
    3. 持续抓取、验证、维护这份 POC 档案需要不少投入,因此本地快照已纳入付费订阅。您的订阅是让这份资料能继续走下去的关键,由衷感谢。 查看订阅方案 →