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 files92Next files →

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

xinhu-cb732f46f8f1e4614c8cfbef47a0bcbde6ecce34/webmain/flow/input/mode_carmreseAction.php

PHP · 1,010 bytes
<?php

class mode_carmreseClassAction extends inputAction{
	
	
	protected function savebefore($table, $arr, $id, $addbo){
		$msg 	 	= '';
		$startdt 	= $arr['startdt'];
		$enddt 		= $arr['enddt'];
		$carid		= $arr['carid'];
		if($startdt>=$enddt)$msg='截止时间小于开始时间,不科学啊';
		if($msg==''){
			$tj1   = "`returndt` is null and ((`startdt`<='$startdt' and `enddt`>='$startdt') or (`startdt`<='$enddt' and `enddt`>='$enddt') or (`startdt`>='$startdt' and `enddt`<='$enddt'))"; //未归还
			
			$tj2   = "`returndt` is not null and ((`startdt`<='$startdt' and `returndt`>='$startdt') or (`startdt`<='$enddt' and `returndt`>='$enddt') or (`startdt`>='$startdt' and `returndt`<='$enddt'))"; //已归还
			
			$where = "id <>'$id' and `carid` = '$carid' and `status` in(0,1) and (($tj1) or ($tj2))";
			if(m($table)->rows($where)>0)$msg='车辆该时间段已被预定了';
		}
		return array('msg'=>$msg);
	}
	
	
	protected function saveafter($table, $arr, $id, $addbo){
		
	}
	
	
}