Exploit databaseDownload repository ZIP
GH-f3e9aa5ff14901b11dd5d48ffe7c37ab
zapstiko/cve-2026-116214
Sources for CVE-2026-116214
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files6
zapstiko/cve-2026-116214Revision 1353951f02be
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
lab/maccms/application/common/extend/upload/Qiniu.php
PHP · 1,163 bytes<?php
namespace app\common\extend\upload;
use Qiniu\Auth;
use Qiniu\Storage\UploadManager;
class Qiniu
{
public $name = '七牛云存储';
public $ver = '1.0';
public function submit($file_path)
{
$bucket = $GLOBALS['config']['upload']['api']['qiniu']['bucket'];
$accessKey = $GLOBALS['config']['upload']['api']['qiniu']['accesskey'];
$secretKey = $GLOBALS['config']['upload']['api']['qiniu']['secretkey'];
require_once ROOT_PATH . 'extend/qiniu/autoload.php';
$auth = new Auth($accessKey, $secretKey);
$return = '{"newName":"$(key)","hash":"$(etag)","fsize":$(fsize),"bucket":"$(bucket)","oldName":"$(fname)","width":"$(imageInfo.width)","height":"$(imageInfo.height)"}';
$return = array('returnBody' => $return);
$expires = 3600;
$token = $auth->uploadToken($bucket,$file_path,$expires,$return);
$filePath = ROOT_PATH . $file_path;
$uploadMgr = new UploadManager();
$a = $uploadMgr->putFile($token, $file_path, $filePath);
@unlink($filePath);
return $GLOBALS['config']['upload']['api']['qiniu']['url'] . '/' . $file_path;
}
}