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 files22

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

xinhu-cb732f46f8f1e4614c8cfbef47a0bcbde6ecce34/webmain/task/api/reimplatAction.php

PHP · 1,663 bytes
<?php 
/**
*	作者:信呼开发团队(雨中磐石)
*	官网:http://www.rockoa.com
*	软件:信呼OA
*	REIM即使通信平台回调
*/
class reimplatClassAction extends apiAction{

	public function initAction()
	{
		$this->display= false;
	}
	
	//平台上通知过来的数据
	public function indexAction()
	{
		$body = $this->getpostdata();
		// add debug
		echo $body."<br>";
		if(!$body)return;
		$db 	 = m('reimplat:dept');
		$key 	 = $db->gethkey();
		$bodystr = $this->jm->strunlook($body, $key);
		$key   = $db->gethkey();
		// add debug
    	$test=$this->jm->strlook($body,$key);
		echo $test."<br>";
		if(!$bodystr)return;
	
		$data 	 = json_decode($bodystr, true);
		$msgtype = arrvalue($data,'msgtype');
		$msgevent= arrvalue($data,'msgevent');
		
		//用户状态改变停用
		if($msgtype=='subscribe'){
			$user 	= arrvalue($data, 'user');
			$zt 	= '0';
			if($msgevent=='yes')$zt = '1';
			if($msgevent=='stop')$zt = '2';
			$db->update('`status`='.$zt.'',"`user`='$user'");
		}
		
		//修改手机号
		if($msgtype=='editmobile'){
			$user 	= arrvalue($data, 'user');
			$mobile = arrvalue($data, 'mobile');
			$where  = "`user`='$user'";
			$upstr  = "`mobile`='$mobile'";
			$db->update($upstr, $where);
			$dbs	= m('admin');
			$dbs->update($upstr,$where);
			$uid 	= $dbs->getmou('id',$where);
			m('userinfo')->update($upstr,"`id`='$uid'");
		}
		
		//修改密码
		if($msgtype=='editpass'){
			$user = arrvalue($data, 'user');
			$pass = arrvalue($data, 'pass');
			if($pass && $user){
				$where  = "`user`='$user'";
				$mima 	= md5($pass);
				m('admin')->update("`pass`='$mima',`editpass`=`editpass`+1", $where);
			}
		}
	}
}