Exploit database

GH-9a0e4face203bb2d404b8aadf03b5c5e

cronus-security/xinhu-v2.3.2

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2023-1773

2 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.

Repository files80Next files →

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

xinhu-cb732f46f8f1e4614c8cfbef47a0bcbde6ecce34/webmain/model/flow/rewardModel.php

PHP · 912 bytes
<?php
class flow_rewardClassModel extends flowModel
{
	
	public function initModel(){
		$this->typearr		= array('<font color=green>奖励</font>','<font color=red>处罚</font>');
	}
	
	protected function flowcheckname($num)
	{
		if($num=='objectque'){
			return array($this->rs['objectid'], $this->rs['object']);
		}
	}
	
	public function flowsearchfields()
	{
		$arr[] = array('name'=>'申请人...','fields'=>'uid');
		$arr[] = array('name'=>'奖惩对象...','fields'=>'objectid');
		return $arr;
	}
	
	
	public function flowrsreplace($rs){
		$type 		= $rs['type'];
		$rs['type'] = $this->typearr[$type];
		return $rs;
	}
	

	protected function flowbillwhere($uid, $lx)
	{
		$key  	= $this->rock->post('key');
		$where 	= '';
		if($key!='')$where.=" and (b.udeptname like '%$key%' or b.`uname` like '%$key%' or a.`object` like '%$key%')";
		return array(
			'keywhere' => $where,
			'leftbill' => 1
		);
	}
}