Exploit databaseDownload repository ZIP
GH-43c28127d0ef5701fc76b7806cb0b300
405149071/thinkcmf5.1
Sources for CVE-2019-6713
12 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files2
405149071/thinkcmf5.1Revision b8d83a96c62a
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
api/shc/controller/QuestController.php
PHP · 872 bytes<?php
/**
*
* Created by thinkcmf5_1.
* User: wuzz
* Date: 2019/7/31
* Time: 7:08 AM
*/
namespace api\shc\controller;
use api\shc\model\ShcQuestAnswerModel;
use cmf\controller\RestBaseController;
class QuestController extends RestBaseController
{
// 提交答案
public function submitAnswer()
{
$request =$this ->request;
$param = $request->param();
// var_dump(json_decode($param['data'],true));
$m = new ShcQuestAnswerModel();
$m->data([
'name' => $param['name'],
'answer' => $param['data'],
'score' => $param['score'],
'desc' => $param['desc'],
'add_time' => date("Y/m/d h:i:s"),
]);
if($m->save()>0){
$this->success('处理成功!');
}else{
$this->success('处理失败!');
};
}
}