Exploit databaseDownload repository ZIP
GH-9a0e4face203bb2d404b8aadf03b5c5e
cronus-security/xinhu-v2.3.2
Sources for CVE-2023-1773
2 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files80
cronus-security/xinhu-v2.3.2Revision 08599f237697
- ↑..Parent directory
- assetmModel.php
- bianjianModel.php
- bookModel.php
- bookborrowModel.php
- caigouModel.php
- carmModel.php
- carmbyModel.php
- carmreseModel.php
- carmsModel.php
- carmwxModel.php
- companyModel.php
- custappyModel.php
- custfinaModel.php
- customerModel.php
- custplanModel.php
- custractModel.php
- custsaleModel.php
- custxiaoModel.php
- daibanModel.php
- dailyModel.php
- demoModel.php
- deptModel.php
- diaoboModel.php
- emailmModel.php
- finfybxModel.php
- finpiaoModel.php
- flow.php
- gongModel.php
- goodghModel.php
- goodlyModel.php
- goodsModel.php
- groupModel.php
- hrcheckModel.php
- hrkaohemModel.php
- hrmanshiModel.php
- hrpositiveModel.php
- hrredundModel.php
- hrsalarmModel.php
- hrsalaryModel.php
- hrshebaoModel.php
- hrtransferModel.php
- hrtrsalaryModel.php
- jiabanModel.php
- knowledgeModel.php
- knowtikuModel.php
- knowtraimModel.php
- kqdkjlModel.php
- kqdwModel.php
- kqerrModel.php
- kqjsnModel.php
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
xinhu-cb732f46f8f1e4614c8cfbef47a0bcbde6ecce34/webmain/model/flow/finpiaoModel.php
PHP · 2,011 bytes<?php
//发票管理
class flow_finpiaoClassModel extends flowModel
{
public $defaultorder = 'opendt,desc';
public function flowrsreplace($rs, $lx=0)
{
return $rs;
}
protected function flowbillwhere($uid, $lx)
{
$month = $this->rock->post('month');
$where = '';
if($month!=''){
$where.=" and `opendt` like '$month%'";
}
return array(
'where' => $where
);
}
//导入数据的测试显示
public function flowdaorutestdata()
{
$barr[] = array(
'type' => '收到的发票',
'ptype' => '增值税普通发票',
'kainame' => '张三',
'money' => '50',
'custname' => '销售单位',
'maicustname' => '购买单位',
'daima' => '',
'haoma' => '',
'opendt' => '2017-01-17',
'explain' => '说明',
);
$barr[] = array(
'type' => '开出去的发票',
'ptype' => '增值税普通发票',
'kainame' => '张三',
'money' => '500',
'custname' => '销售单位',
'maicustname' => '购买单位',
'daima' => '',
'haoma' => '',
'opendt' => '2017-01-17',
'explain' => '说明客户买了啥给他开了发票',
);
return $barr;
}
//导入之前处理,必须添加客户
public function flowdaorubefore($rows)
{
$inarr = array();
$crmdb = m('crm');
foreach($rows as $k=>$rs){
$arr = $rs;
$custname = $rs['custname'];
$custrs = $crmdb->getcustomer($custname);
if(!$custrs)return '行'.($k+1).'销售方名称【'.$custname.'】不存在,请先建客户档案';
$arr['custid'] = $custrs['id'];
$maicustname = $rs['maicustname'];
$custrs1 = $crmdb->getcustomer($maicustname);
if(!$custrs1)return '行'.($k+1).'购买方名称【'.$maicustname.'】不存在,请先建客户档案';
$arr['maicustid'] = $custrs1['id'];
$type = 1; //收到的发票
if(contain($rs['type'],'开出去'))$type=0;//开出去发票
$arr['type'] = $type;
$arr['status'] = 1;
$inarr[] = $arr;
}
return $inarr;
}
}