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 files50
cronus-security/xinhu-v2.3.2Revision 08599f237697
- ↑..Parent directory
- agent/
- flow/
- reimplat/
- txcloud/
- wxgzh/
- adminModel.php
- baseModel.php
- beifenModel.php
- bookModel.php
- cityModel.php
- companyModel.php
- crmModel.php
- deptModel.php
- editModel.php
- emailModel.php
- emailmModel.php
- fileModel.php
- finaModel.php
- flowModel.php
- flowbillModel.php
- flowcnameModel.php
- flowcourseModel.php
- flowtodoModel.php
- goodsModel.php
- homeitemsModel.php
- hrModel.php
- imgroupModel.php
- inputModel.php
- itemsModel.php
- kaoqinModel.php
- kqjcmdModel.php
- locationModel.php
- logModel.php
- loginModel.php
- meetModel.php
- modeModel.php
- optionModel.php
- reimModel.php
- remindModel.php
- scheduleModel.php
- sjoinModel.php
- taskModel.php
- todoModel.php
- totalsModel.php
- viewModel.php
- waichuModel.php
- whereModel.php
- worcModel.php
- wordModel.php
- workModel.php
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
xinhu-cb732f46f8f1e4614c8cfbef47a0bcbde6ecce34/webmain/model/finaModel.php
PHP · 2,821 bytes<?php
class finaClassModel extends Model
{
public function initModel()
{
$this->settable('fininfom');
}
//统计我未还款
public function totaljie($uid, $id=0)
{
$where = 'and id<>'.$id.'';
$to1 = floatval($this->getmou('sum(money)money',"`uid`='$uid' and `type`=2 and `status`=1"));
$to2 = floatval($this->getmou('sum(money)money',"`uid`='$uid' and `type`=3 and `status`<>5 $where"));
$to = $to1-$to2;
return $to;
}
public function getjkdwhere()
{
return '(select `uid` from `[Q]fininfom` where `type`=2 and `status`=1)';
}
//统计
public function totalfkd($rows, $uids)
{
$carr = $barr = array();
//借款
$hkto = $this->db->getall("select uid,sum(money)money from `[Q]fininfom` where `uid` in($uids) and `type`=2 and `status`=1 group by `uid`");
foreach($hkto as $k=>$rs)$carr[$rs['uid']] = $rs['money'];
//还的
$hkto = $this->db->getall("select uid,sum(money)money from `[Q]fininfom` where `uid` in($uids) and `type`=3 and `status`=1 group by `uid`");
foreach($hkto as $k=>$rs)$barr[$rs['uid']] = $rs['money'];
foreach($rows as $k=>$rs){
$uid = $rs['id'];
$moneyjk = floatval(arrvalue($carr, $uid, 0));
$moneyhk = floatval(arrvalue($barr, $uid, 0));
$moneyhx = $moneyjk - $moneyhk;
if($moneyjk==0)$moneyjk='';
if($moneyhk==0)$moneyhk='';
if($moneyhx==0)$moneyhx='';
$rows[$k]['moneyjk'] = $moneyjk;
$rows[$k]['moneyhk'] = $moneyhk;
$rows[$k]['moneyhx'] = $moneyhx;
}
return $rows;
}
//获取当前账套
public function getzhangtao($lx=0)
{
$dt = $this->rock->date;
$where= m('admin')->getcompanywhere(3);
if($lx==0)$where.=" and `startdt`<='$dt' and `enddt`>='$dt'";
$rows = m('finzhang')->getall("status=1 ".$where."",'*','sort, startdt desc');
$arr = array();
foreach($rows as $k=>$rs){
$arr[] = array(
'value' => $rs['id'],
'name' => $rs['name'],
'subname' => $rs['startdt'].'→'.$rs['enddt'],
);
}
return $arr;
}
//获取财务帐号
public function getaccount()
{
$where= m('admin')->getcompanywhere(3);
$rows = m('finount')->getall("status=1 ".$where."",'*','sort');
$arr = array();
foreach($rows as $k=>$rs){
$arr[] = array(
'value' => $rs['id'],
'name' => $rs['name'],
);
}
return $arr;
}
//更新财务帐号金额
public function updatemoney($accid='')
{
$where= '';
if(!isempt($accid))$where=' and `accountid`='.$accid.'';
$rows = $this->db->getall('SELECT accountid,SUM(money)money FROM `[Q]finjibook` where `status`=1 '.$where.' group by accountid');
$db = m('finount');
$ids= '0';
foreach($rows as $k=>$rs){
$db->update('`money`='.$rs['money'].'', $rs['accountid']);
$ids.=','.$rs['accountid'].'';
}
if(isempt($accid))$db->update('`money`=0', '`id` not in('.$ids.')');
}
}