Exploit database

GH-593b93dbd60a5704816109414bf67dfe

aash035/cve-2023-30212

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2023-30212

4 sources

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

Repository files109
aash035/cve-2023-30212Revision 51bf3ef4c88a
Next files →

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

file/client/manage/ourphp_freightview.php

PHP · 1,800 bytes
<?php 
/*******************************************************************************
* Ourphp - CMS建站系统
* Copyright (C) 2014 ourphp.net
* 开发者:哈尔滨伟成科技有限公司
*******************************************************************************/
include 'ourphp_admin.php';
include 'ourphp_checkadmin.php';
include '../../function/ourphp_navigation.class.php';

if(isset($_GET["ourphp_cms"]) == ""){
	echo '';
}elseif ($_GET["ourphp_cms"] == "edit"){

	if (strstr($OP_Adminpower,"34")){
	
		if (!empty($_POST["sheng"])){
		$sheng = implode('|',admin_sql($_POST["sheng"]));
		}else{
		$sheng = '0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0';
		}

		plugsclass::logs('编辑运费模板',$OP_Adminname);
		$db -> update("`ourphp_freight`","`OP_Freightname` = '".admin_sql($_POST["OP_Freightname"])."',`OP_Freighttext` = '".$sheng."',`OP_Freightdefault` = '".admin_sql($_POST["OP_Freightdefault"])."',`OP_Freightweight` = '".admin_sql($_POST["OP_Freightweight"])."',`time` = '".date("Y-m-d H:i:s")."'","where id = ".intval($_GET['id']));
		$ourphp_font = 1;
		$ourphp_class = 'ourphp_freight.php?id=ourphp';
		require 'ourphp_remind.php';
		
	}else{
		
		$ourphp_font = 4;
		$ourphp_content = '权限不够,无法编辑内容!';
		$ourphp_class = 'ourphp_freight.php?id=ourphp';
		require 'ourphp_remind.php';
		
	}
			
}

$ourphp_rs = $db -> select("*","`ourphp_freight`","where `id` = ".intval($_GET['id']));
$ourphp_text=array(
	'id' => $ourphp_rs['id'],
	'title' => $ourphp_rs['OP_Freightname'],
	'text' => explode("|",$ourphp_rs['OP_Freighttext']),
	'default' => $ourphp_rs['OP_Freightdefault'],
	'weight' => $ourphp_rs['OP_Freightweight'],
);
$smarty->assign('ourphp_freight',$ourphp_text);
$smarty->display('ourphp_freightview.html');
?>