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 files20
zapstiko/cve-2026-116214Revision 1353951f02be
- ↑..Parent directory
- Actor.php
- Ajax.php
- Art.php
- Base.php
- Comment.php
- Gbook.php
- Index.php
- Label.php
- Map.php
- MyError.php
- Payment.php
- Plot.php
- Role.php
- Rss.php
- Search.php
- Topic.php
- User.php
- Verify.php
- Vod.php
- Website.php
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
lab/maccms/application/index/controller/Comment.php
PHP · 5,257 bytes<?php
namespace app\index\controller;
use think\Controller;
use \think\Request;
class Comment extends Base
{
public function __construct()
{
parent::__construct();
//关闭中
if($GLOBALS['config']['comment']['status'] == 0){
echo 'comment is close';
exit;
}
}
public function index()
{
if (Request()->isPost()) {
return $this->saveData();
}
$param = mac_param_url();
$this->assign('param',$param);
$this->assign('comment',$GLOBALS['config']['comment']);
return $this->label_fetch('comment/index');
}
public function ajax() {
$param = mac_param_url();
$this->assign('param',$param);
$this->assign('comment',$GLOBALS['config']['comment']);
return $this->label_fetch('comment/ajax',0,'json');
}
public function saveData() {
$param = input();
if($GLOBALS['config']['comment']['verify'] == 1){
if(!captcha_check($param['verify'])){
return ['code'=>1002,'msg'=>lang('verify_err')];
}
}
if($GLOBALS['config']['comment']['login'] ==1){
if(empty(cookie('user_id'))){
return ['code' => 1003, 'msg' =>lang('index/require_login')];
}
$res = model('User')->checkLogin();
if($res['code']>1) {
return ['code' => 1003, 'msg' => lang('index/require_login')];
}
}
if(empty($param['comment_content'])){
return ['code'=>1004,'msg'=>lang('index/require_content')];
}
$cookie = 'comment_timespan';
if(!empty(cookie($cookie))){
return ['code'=>1005,'msg'=>lang('frequently')];
}
$param['comment_content']= htmlentities(mac_filter_words($param['comment_content']));
$pattern = '/[^\x00-\x80]/';
if(!preg_match($pattern,$param['comment_content'])){
return ['code'=>1005,'msg'=>lang('index/require_cn')];
}
if(!in_array($param['comment_mid'],['1','2','3','8','9','11'])){
return ['code'=>1006,'msg'=>lang('index/mid_err')];
}
if(empty(cookie('user_id'))){
$param['comment_name'] = lang('controller/visitor');
}
else{
$param['comment_name'] = cookie('user_name');
$param['user_id'] = intval(cookie('user_id'));
}
$param['comment_name'] = htmlentities($param['comment_name']);
$param['comment_rid'] = intval($param['comment_rid']);
$param['comment_pid'] = intval($param['comment_pid']);
if($GLOBALS['config']['comment']['audit'] ==1){
$param['comment_status'] = 0;
}
$ip = sprintf('%u',ip2long(request()->ip()));
if($ip>2147483647){
$ip=0;
}
$param['comment_ip'] = $ip;
$res = model('Comment')->saveData($param);
if($res['code']>1){
return $res;
}
else{
cookie($cookie, 't', $GLOBALS['config']['comment']['timespan']);
if($GLOBALS['config']['comment']['audit'] ==1){
$res['msg'] = lang('index/thanks_msg_audit');
}
else{
$res['msg'] = lang('index/thanks_msg');
}
return $res;
}
}
public function report()
{
$param = input();
$id = intval($param['id']);
if(empty($id) ) {
return json(['code'=>1001,'msg'=>lang('param_err')]);
}
$cookie = 'comment-report-' . $id;
if(!empty(cookie($cookie))){
return json(['code'=>1002,'msg'=>lang('index/haved')]);
}
$where = [];
$where['comment_id'] = $id;
model('comment')->where($where)->setInc('comment_report');
cookie($cookie, 't', $GLOBALS['config']['comment']['timespan']);
return json(['code'=>1,'msg'=>lang('opt_ok')]);
}
public function digg()
{
$param = input();
$id = intval($param['id']);
$type = $param['type'];
if(empty($id) || empty($type) ) {
return json(['code'=>1001,'msg'=>lang('param_err')]);
}
$pre = 'comment';
$where = [];
$where[$pre.'_id'] = $id;
$field = $pre.'_up,'.$pre.'_down';
$model = model($pre);
if($type) {
$cookie = $pre . '-digg-' . $id;
if(!empty(cookie($cookie))){
return json(['code'=>1002,'msg'=>lang('index/haved')]);
}
if ($type == 'up') {
$model->where($where)->setInc($pre . '_up');
} elseif ($type == 'down') {
$model->where($where)->setInc($pre . '_down');
}
cookie($cookie, 't', $GLOBALS['config']['comment']['timespan']);
}
$res = $model->infoData($where,$field);
if($res['code']>1) {
return json($res);
}
$info = $res['info'];
if ($info) {
$data = $info;
}
else{
$data[$pre.'_up'] = 0;
$data[$pre.'_down'] = 0;
}
return json(['code'=>1,'msg'=>lang('opt_ok'),'data'=>$data]);
}
}