首页 php-ci框架漏洞,CodeIgniter框架内核设计缺陷可能导致任意代码执行

php-ci框架漏洞,CodeIgniter框架内核设计缺陷可能导致任意代码执行

举报
开通vip

php-ci框架漏洞,CodeIgniter框架内核设计缺陷可能导致任意代码执行  phpci框架漏洞,CodeIgniter框架内核设计缺陷可能导致任意代码执行  publicfunctionview($view,$vars=array(),$return=FALSE){return$this->_ci_load(array('_ci_view'=>$view,'_ci_vars'=>$this->_ci_object_to_array($vars),'_ci_return'=>$return));}...protectedfunction_ci_load($_ci_data){//Sett...

php-ci框架漏洞,CodeIgniter框架内核设计缺陷可能导致任意代码执行
  phpci框架漏洞,CodeIgniter框架内核设计缺陷可能导致任意代码执行  publicfunctionview($view,$vars=array(),$return=FALSE){return$this->_ci_load(array('_ci_view'=>$view,'_ci_vars'=>$this->_ci_object_to_array($vars),'_ci_return'=>$return));}...protectedfunction_ci_load($_ci_data){//Setthedefaultdatavariablesforeach(array('_ci_view','_ci_vars','_ci_path','_ci_return')as$_ci_val){$$_ci_val=isset($_ci_data[$_ci_val])?$_ci_data[$_ci_val]:FALSE;}$file_exists=FALSE;//Setthepathtotherequestedfileif(is_string($_ci_path)&&$_ci_path!==''){$_ci_x=explode('/',$_ci_path);$_ci_file=end($_ci_x);}else{$_ci_ext=pathinfo($_ci_view,PATHINFO_EXTENSION);$_ci_file=($_ci_ext==='')?$_ci_view.'.php':$_ci_view;foreach($this->_ci_view_pathsas$_ci_view_file=>$cascade){if(file_exists($_ci_view_file.$_ci_file)){$_ci_path=$_ci_view_file.$_ci_file;$file_exists=TRUE;break;}if(!$cascade){break;}}}if(!$file_exists&&!file_exists($_ci_path)){show_error('Unabletoloadtherequestedfile:'.$_ci_file);}//Thisallowsanythingloadedusing$this->load(views,files,etc.)//tobecomeaccessiblefromwithintheControllerandModelfunctions.$_ci_CI=&get_instance();foreach(get_object_vars($_ci_CI)as$_ci_key=>$_ci_var){if(!isset($this->$_ci_key)){$this->$_ci_key=&$_ci_CI->$_ci_key;}}/**Extractandcachevariables**Youcaneithersetvariablesusingthededicated$this->load->vars()*functionorviathesecondparameterofthisfunction.We'llmerge*thetwotypesandcachethemsothatviewsthatareembeddedwithin*otherviewscanhaveaccesstothesevariables.*/if(is_array($_ci_vars)){$this->_ci_cached_vars=array_merge($this->_ci_cached_vars,$_ci_vars);}extract($this->_ci_cached_vars);/**Buffertheoutput**Webuffertheoutputfortworeasons:*1.Speed.Yougetasignificantspeedboost.*2.Sothatthefinalrenderedtemplatecanbepost-processedby*theoutputclass.Whydoweneedpostprocessing?Foronething,*inordertoshowtheelapsedpageloadtime.Unlesswecan*interceptthecontentrightbeforeit'ssenttothebrowserand*thenstopthetimeritwon'tbeaccurate.*/ob_start();//IfthePHPinstallationdoesnotsupportshorttagswe'll//doalittlestringreplacement,changingtheshorttags//tostandardPHPechostatements.if(!is_php('5.4')&&!ini_get('short_open_tag')&&config_item('rewrite_short_tags')===TRUE){echoeval('?>'.preg_replace('/;*\s*\?>/',';?>',str_replace('=','$this->_ci_ob_level+1){ob_end_flush();}else{$_ci_CI->output->append_output(ob_get_contents());[@ob_end_clean](/ob_end_clean)();}return$this;} -全文完-
本文档为【php-ci框架漏洞,CodeIgniter框架内核设计缺陷可能导致任意代码执行】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
该文档来自用户分享,如有侵权行为请发邮件ishare@vip.sina.com联系网站客服,我们会及时删除。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
下载需要: 免费 已有0 人下载
最新资料
资料动态
专题动态
个人认证用户
永兴文档
暂无简介~
格式:doc
大小:21KB
软件:Word
页数:10
分类:互联网
上传时间:2023-06-21
浏览量:37