Exploit databaseDownload repository ZIP
GH-066dffbe2334b8891942069745b5a44c
365807072/gdr
Sources for CVE-2019-6713
12 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files2
365807072/gdrRevision 45d5bdb279df
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
app/user/validate/FavoriteValidate.php
PHP · 1,800 bytes<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2019 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: Powerless < [email protected]>
// +----------------------------------------------------------------------
namespace app\user\validate;
use think\Validate;
class FavoriteValidate extends Validate
{
protected $rule = [
'id' => 'require',
'title' => 'require|checkTitle',
'table' => 'require',
'url' => 'require|checkUrl',
];
protected $message = [
'id.require' => '收藏内容ID不能为空!',
'title.require' => '收藏内容标题不能为空!',
'table.require' => '收藏内容所在表不能为空!',
'url.require' => '收藏内容链接不能为空!',
'url.checkUrl' => '收藏内容链接格式不正确!'
];
protected $scene = [
];
// 验证url 格式
protected function checkUrl($value, $rule, $data)
{
$url = json_decode(base64_decode($value), true);
if (!empty($url['action'])) {
return true;
}
return '收藏内容链接格式不正确!';
}
// 验证url 格式
protected function checkTitle($value, $rule, $data)
{
if (base64_decode($value)!==false) {
return true;
}
return '收藏内容标题格式不正确!';
}
}