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 files32

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

xinhu-cb732f46f8f1e4614c8cfbef47a0bcbde6ecce34/webmain/model/agent/custsaleModel.php

PHP · 770 bytes
<?php
class agent_custsaleClassModel extends agentModel
{
	
	public function gettotal()
	{
		$stotal	= $this->gettotalss($this->adminid);
		$titles	= '';
		return array('stotal'=>$stotal,'titles'=> $titles);
	}
	
	private function gettotalss($uid)
	{
		$to = m('custsale')->rows('`uid`='.$uid.' and `state`=0');
		return $to;
	}
	
	protected function agenttotals($uid)
	{
		return array(
			'gen' => $this->gettotalss($uid)
		);
	}
	
	protected function agentrows($rows, $rowd, $uid)
	{
		$statea = $this->flow->statearr;
		foreach($rowd as $k=>$rs){
			$state 	 = $rs['statess'];
			if($state==2){
				$rows[$k]['ishui']		=1;
			}
			$ztarr	 = $statea[$state];
			$rows[$k]['statustext']		= $ztarr[0];
			$rows[$k]['statuscolor']	= $ztarr[1];
		}
		return $rows;
	}
	
}